Makefile 1022 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. .PHONY: build test profile
  2. default: all
  3. all: test
  4. check:
  5. splint \
  6. -Iinclude -Iext/xxHash -Iext/openldap/libraries/liblmdb \
  7. -D_XOPEN_SOURCE=500 \
  8. -preproc \
  9. test.c
  10. build:
  11. gcc -g -Wall \
  12. -std=gnu99 \
  13. -Iinclude -Iext/xxHash -Iext/openldap/libraries/liblmdb \
  14. -luuid \
  15. -D_XOPEN_SOURCE=500 \
  16. ext/xxHash/xxhash.c ext/openldap/libraries/liblmdb/midl.c \
  17. ext/openldap/libraries/liblmdb/mdb.c \
  18. src/*.c \
  19. -o bin/lsup_rdf.so
  20. test:
  21. gcc -g -Wall \
  22. -std=gnu99 \
  23. -DDEBUG \
  24. -Iinclude -Iext/xxHash -Iext/openldap/libraries/liblmdb -Itest \
  25. -luuid -lpthread \
  26. -D_XOPEN_SOURCE=500 \
  27. ext/xxHash/xxhash.c ext/openldap/libraries/liblmdb/midl.c \
  28. ext/openldap/libraries/liblmdb/mdb.c \
  29. src/*.c test.c \
  30. -o bin/test
  31. profile:
  32. gcc -g -Wall \
  33. -std=gnu99 \
  34. -Iinclude -Iext/xxHash -Iext/openldap/libraries/liblmdb \
  35. -luuid \
  36. -D_XOPEN_SOURCE=500 \
  37. ext/xxHash/xxhash.c ext/openldap/libraries/liblmdb/midl.c \
  38. ext/openldap/libraries/liblmdb/mdb.c \
  39. src/*.c profile.c \
  40. -o bin/profile