# Makefile # IcoConvert is a program which can convert Windows .ico Icon files into # PNG's. It should support all icon sizes and transparency. # Recently added is support for WinXP 32 bit color icons with alpha # transparency. Also removed is XPM icon support, since ImageMagick does # a fine job converting the PNG's output from this program into XPMs. # Chris Moates # six@mox.net ########################## ######## NOTE ############ ########################## # If you are having trouble at linking, you may have to include the # following LIBDIR directive: LIBDIR=-L/usr/local/lib CC= gcc INCLUDE= # GD 2 Support (alpha transparent PNG's, full windows XP icon support) LIBS=-lgd FLAGS=-Wall #-ggdb -DDEBUG MAJOR=2 MINOR=0 VERSION=$(MAJOR).$(MINOR) DIST=icoconvert-$(VERSION).tar.gz TAR=tar cvfzh TARX=tar xvfz SRCDIR=icoconvert-$(MAJOR).$(MINOR) DISTFILES=$(SRCDIR)/icoconvert.c \ $(SRCDIR)/icoconvert.h \ $(SRCDIR)/global.h \ $(SRCDIR)/Makefile \ $(SRCDIR)/README \ $(SRCDIR)/icoconvert \ $(SRCDIR)/icoconvert.static icoconvert : icoconvert.c icoconvert.h Makefile $(CC) $(FLAGS) icoconvert.c $(LIBS) -o icoconvert $(LIBDIR) static : icoconvert.c icoconvert.h Makefile $(CC) $(FLAGS) icoconvert.c $(LIBS) -o icoconvert.static $(LIBDIR) -static -lpng -lm -lz dist: ( cd .. ; $(TAR) $(DIST) $(DISTFILES) ; cd $(SRCDIR) )