Makefile 923 B

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