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 7LIBDIRS = -L$(GD) 8INCDIRS = -I$(GD) 9CC = gcc 10 11CFLAGS = -O -pedantic -Wall $(INCDIRS) $(LIBDIRS) 12LIBS = -lgd -lm -lz -lfreetype -lpng -ljpeg #-lXpm 13 14all: fly 15 16fly: fly.o 17 $(CC) $(CFLAGS) -o fly fly.o $(LIBS) 18 19fly.o: fly.c fly.h 20 $(CC) -c $(CFLAGS) fly.c 21 22mostlyclean: 23 rm -f fly.o temp.gif core; make clean; 24clean: 25 rm -f fly.o fly temp.gif core; make clean; 26 27