Makefile (467B)
1 CFLAGS = -Os -W -Wall 2 3 all: 4 echo "choose a backend driver: dbquery-pg|mysql|sqlite" 5 6 .c.o: 7 $(CC) $(CFLAGS) -c -o $@ $< 8 9 dbquery-pg: dbquery-pg.c common.c 10 $(CC) $(CFLAGS) -o $@ $< -lpq 11 strip $@ 12 13 dbquery-mysql: dbquery-mysql.c common.c 14 $(CC) $(CFLAGS) -o $@ $< `mysql_config --cflags --libs` 15 strip $@ 16 17 dbquery-sqlite: dbquery-sqlite.c common.c 18 $(CC) $(CFLAGS) -o $@ $< -lsqlite3 19 strip $@ 20 21 clean: 22 rm -f dbquery-pg dbquery-mysql dbquery-sqlite *.o *.class *.elc