summaryrefslogblamecommitdiffstats
path: root/server/Makefile
blob: 3d10466259f4779f681afd1a154840fca4c1537c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                             
SERVER_BIN = dnbd-server
SERVER_SRC = filer.c net.c query.c server.c

BINS = $(SERVER_BIN)

CFLAGS = -Wall -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2
LDFLAGS = -lpthread

$(SERVER_BIN): 
	$(CC) $(CFLAGS) -o $@ $(SERVER_SRC) $(LDFLAGS)

all: $(BINS)

.PHONY:
clean:
	-$(RM) *.o $(BINS) *~