about summary refs log tree commit diff
path: root/icon/Makefile
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2016-03-27 01:46:26 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2016-03-27 01:46:26 +0000
commitdff6b9fdfeb78fe21a66aa459ddc1d5f7e362dfa (patch)
treeb147568ccffc4cdba9e2a98de1452450ba8e55c3 /icon/Makefile
parent4ce684c4978610d1ea42be1b00f7332f3f5f337a (diff)
downloadnetpbm-mirror-dff6b9fdfeb78fe21a66aa459ddc1d5f7e362dfa.tar.gz
netpbm-mirror-dff6b9fdfeb78fe21a66aa459ddc1d5f7e362dfa.tar.xz
netpbm-mirror-dff6b9fdfeb78fe21a66aa459ddc1d5f7e362dfa.zip
Promote Advanced (10.73) to Stable
git-svn-id: http://svn.code.sf.net/p/netpbm/code/stable@2692 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'icon/Makefile')
-rw-r--r--icon/Makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/icon/Makefile b/icon/Makefile
new file mode 100644
index 00000000..95786c37
--- /dev/null
+++ b/icon/Makefile
@@ -0,0 +1,31 @@
+ifeq ($(SRCDIR)x,x)
+  SRCDIR = $(CURDIR)/..
+  BUILDDIR = $(SRCDIR)
+endif
+SUBDIR = buildtools
+VPATH = .:$(SRCDIR)/$(SUBDIR)
+include $(BUILDDIR)/config.mk
+
+.PHONY: default
+default: netpbm.o
+
+# We must not attempt to build netpbm.o if the build system does not
+# have 'windres', so our all list is empty.
+.PHONY: all
+all:
+
+include $(SRCDIR)/common.mk
+
+%.ico:%.ppm
+	ppmtowinicon $< >$@
+
+%.o:%.ico
+	echo "id ICON \"$<\"" >rc
+	$(WINDRES) --input-format rc --input rc --output-format coff \
+	   --output $@
+	rm rc
+
+distclean clean: cleanlocal
+.PHONY: cleanlocal
+cleanlocal:
+	rm -f rc