CC= gcc CFLAGS= -O2 -g -Wall -I. -I.. -I./ LDFLAGS= -lpng -lpq OBJECTS= test-common.o TARGETS= test-bytea test-substance test-overtype test-numeric .SUFFIXES: .c .c.o: $(CC) -c $(CFLAGS) -o $@ $< all: $(TARGETS) test-substance: test-substance.o $(OBJECTS) $(CC) test-substance.o $(OBJECTS) -o test-substance $(LDFLAGS) test-bytea: test-bytea.o $(OBJECTS) $(CC) test-bytea.o $(OBJECTS) -o test-bytea $(LDFLAGS) test-overtype: test-overtype.o $(OBJECTS) $(CC) test-overtype.o $(OBJECTS) -o test-overtype $(LDFLAGS) test-numeric: test-numeric.o $(OBJECTS) $(CC) test-numeric.o $(OBJECTS) -o test-numeric $(LDFLAGS) clean: rm -f *.o core* *~ $(TARGETS) test-numeric.o: test-numeric.c test-common.h test-overtype.o: test-overtype.c test-common.h test-bytea.o: test-bytea.c test-common.h bytea-common.o: test-common.c test-common.h #eof