Makefile 1.1 KB

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