123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- .PHONY: build test profile
- default: all
- all: test
- check:
- splint \
- -Iinclude -Iext/xxHash -Iext/openldap/libraries/liblmdb -Itest \
- -D_XOPEN_SOURCE=500 \
- -DUINT_MAX=0xFFFFFFFFUL \
- -nullpass \
- -posix-lib \
- test.c
- build:
- gcc -g -Wall \
- -std=c99 \
- -Iinclude -Iext/xxHash -Iext/openldap/libraries/liblmdb \
- -luuid -lpthread \
- -D_XOPEN_SOURCE=500 \
- ext/xxHash/xxhash.c ext/openldap/libraries/liblmdb/midl.c \
- ext/openldap/libraries/liblmdb/mdb.c \
- src/*.c \
- -o bin/lsup_rdf.so
- test:
- gcc -g -Wall \
- -std=c99 \
- -DDEBUG \
- -Iinclude -Iext/xxHash -Iext/openldap/libraries/liblmdb -Itest \
- -luuid -lpthread \
- -D_XOPEN_SOURCE=500 \
- ext/xxHash/xxhash.c ext/openldap/libraries/liblmdb/midl.c \
- ext/openldap/libraries/liblmdb/mdb.c \
- src/*.c test.c \
- -o bin/test
- profile:
- gcc -g -Wall \
- -std=c99 \
- -Iinclude -Iext/xxHash -Iext/openldap/libraries/liblmdb \
- -luuid \
- -D_XOPEN_SOURCE=500 \
- ext/xxHash/xxhash.c ext/openldap/libraries/liblmdb/midl.c \
- ext/openldap/libraries/liblmdb/mdb.c \
- src/*.c profile.c \
- -o bin/profile
|