summaryrefslogtreecommitdiff
path: root/source3/tdb/Makefile
blob: 5945469737cc256f6f3e8c576aa32348c36869bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#
# Makefile for tdb directory
#

CFLAGS = -DSTANDALONE -DTDB_DEBUG -O2 -g -DHAVE_MMAP=1
CC = gcc

PROGS = tdbtest tdbtool tdbtorture
TDB_OBJ = tdb.o spinlock.o

default: $(PROGS)

tdbtest: tdbtest.o $(TDB_OBJ)
	$(CC) $(CFLAGS) -o tdbtest tdbtest.o $(TDB_OBJ) -lgdbm

tdbtool: tdbtool.o $(TDB_OBJ)
	$(CC) $(CFLAGS) -o tdbtool tdbtool.o $(TDB_OBJ)

tdbtorture: tdbtorture.o $(TDB_OBJ)
	$(CC) $(CFLAGS) -o tdbtorture tdbtorture.o $(TDB_OBJ)

clean:
	rm -f $(PROGS) *.o *~ *% core test.db test.tdb test.gdbm