## ----------------------------------------------------------------------- ## ## Copyright 2001 H. Peter Anvin - All Rights Reserved ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation, Inc., 53 Temple Place Ste 330, ## Boston MA 02111-1307, USA; either version 2 of the License, or ## (at your option) any later version; incorporated herein by reference. ## ## ----------------------------------------------------------------------- ## ## Makefile for pngtoico ## INSTALLROOT = prefix = /usr/local bindir = $(prefix)/bin mandir = $(prefix)/man man1dir = $(mandir)/man1 CC = gcc -W -Wall CFLAGS = -O2 -fomit-frame-pointer LDFLAGS = -s LIBS = -lpng INSTALL = install INSTALL_EXEC = $(INSTALL) -c -m 755 INSTALL_DATA = $(INSTALL) -c -m 644 all: pngtoico clean: rm -f pngtoico distclean spotless: clean rm -f *~ \#* install: all mkdir -p $(INSTALLROOT)$(bindir) $(INSTALLROOT)$(man1dir) $(INSTALL_EXEC) pngtoico $(INSTALLROOT)$(bindir) $(INSTALL_DATA) pngtoico.1 $(INSTALLROOT)$(man1dir) pngtoico: pngtoico.c $(CC) $(CFLAGS) $(LDFLAGS) -o pngtoico pngtoico.c $(LIBS)