# Last edited on 2007-04-16 21:16:28 by stolfi HFILES = \ tipos.h \ tabela.h HOFILES = \ tipos.ho \ tabela.ho OFILES = \ teste.o \ tabela.o PGM = \ teste IFLAGS := \ -I. -I${INC} CFLAGS := \ -g \ -ansi \ -Wall -Wtraditional -Wpointer-arith -Wmissing-prototypes \ -mfpu -ffloat-store -frounding-math all: cleanup ${PGM} install cleanup: install: %.o: %.c ;\ /usr/bin/gcc -c ${IFLAGS} ${CFLAGS} $*.c %.ho: %.h ;\ /usr/bin/gcc -o $*.ho -c ${IFLAGS} ${CFLAGS} -x c $*.h \ || /bin/rm -f $*.ho ${PGM}: ${OFILES} ;\ rm -f ${PGM} && /usr/bin/gcc -o ${PGM} ${OFILES} -lm # Dependencies of .h files: tipos.ho:: tipos.h tabela.ho:: tabela.h tipos.ho # Dependencies for .c files: tabela.o:: tabela.c tabela.ho tipos.ho teste.o:: teste.c tabela.ho tipos.ho