Makefile 409 B

12345678910111213141516171819
  1. # MAKEFILE
  2. CC=gcc
  3. CCOPTS=-Wall -g
  4. CCL=-lpthread -lm
  5. SQL_SRC=sql.c
  6. SQL_HEADERS=sql.h
  7. COMMON_SRC=common.c
  8. COMMON_HEADER=common.h
  9. all: sql-test
  10. sql-test: $(SQL_SRC) $(COMMON_SRC) $(SQL_HEADERS) $(COMMON_HEADER) Makefile
  11. $(CC) $(CCOPTS) $(SQL_SRC) $(COMMON_SRC) -o $@ -D_DEBUG_SQL=1 -include $(SQL_HEADERS) $(COMMON_HEADER) $(CCL) -lsqlite3
  12. clean:
  13. rm -f *~ *.o *.exe *.stackdump sql-* json-* *.dot* *.txt