summaryrefslogtreecommitdiff
path: root/code/test/Makefile
blob: 5c25b5e664f3777d875957759e14839fc3b03615 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CFLAGS=-I../core -O3 -Wno-int-to-void-pointer-cast
LDFLAGS=-lm -pthread
dep=../core/libecpcore.a ../core/crypto/libecpcr.a ../core/htable/libecpht.a ../core/posix/libecptr.a ../core/posix/libecptm.a init.o

%.o: %.c
	$(CC) $(CFLAGS) -c $<

all: server stress

server: server.o $(dep)
	$(CC) $< $(dep) $(LDFLAGS) -o $@

stress: stress.o $(dep)
	$(CC) $< $(dep) $(LDFLAGS) -o $@

clean:
	rm -f *.o
	rm -f server stress