mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
Makefile
This commit is contained in:
parent
f73a992ac9
commit
84659a5bb6
21
libraries/libmdb/Makefile
Normal file
21
libraries/libmdb/Makefile
Normal file
@ -0,0 +1,21 @@
|
||||
CC = gcc
|
||||
W = -W -Wall -Wno-unused-parameter -Wcast-qual -Wbad-function-cast
|
||||
CFLAGS = -pthread -O2 -g $(W) $(XCFLAGS)
|
||||
LDLIBS = -lssl
|
||||
|
||||
all: mtest mdb_stat
|
||||
|
||||
clean:
|
||||
rm -f mtest mdb_stat *.[ao] *~ testdb
|
||||
|
||||
test: all
|
||||
./mtest && ./mdb_stat testdb
|
||||
|
||||
mdb_stat: mdb_stat.o mdb.o
|
||||
mtest: mtest.o mdb.o
|
||||
|
||||
%: %.o mdb.o
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) $^ $(LDLIBS) -o $@
|
||||
|
||||
%.o: %.c mdb.h
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) -c $<
|
Loading…
Reference in New Issue
Block a user