1 #This makefile should suffice on most Unix systems. For other systems, 2 #you may well need to rewrite it. 3 # 4 # If you already have gd installed, use the line below and comment out the 5 # following line 6 # GD = /path/to/gd/directory 7 LIBDIRS = -L$(GD) 8 INCDIRS = -I$(GD) 9 CC = gcc 10 11 CFLAGS = -O -pedantic -Wall $(INCDIRS) $(LIBDIRS) 12 LIBS = -lgd -lm -lz -lfreetype -lpng -ljpeg #-lXpm 13 14 all: fly 15 16 fly: fly.o 17 $(CC) $(CFLAGS) -o fly fly.o $(LIBS) 18 19 fly.o: fly.c fly.h 20 $(CC) -c $(CFLAGS) fly.c 21 22 mostlyclean: 23 rm -f fly.o temp.gif core; make clean; 24 clean: 25 rm -f fly.o fly temp.gif core; make clean; 26