summaryrefslogtreecommitdiff
path: root/ecp/server/Makefile
blob: 977e891f5bc95d063d92db7b89e1c55b0238abb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
src_dir = ../src
include $(src_dir)/ecp/common.mk
CFLAGS += -I../util -Wno-int-to-void-pointer-cast
LDFLAGS += -lrt

obj = server.o dir.o vlink.o ht.o acl.o sig.o timer.o
dep = ../build-posix/*.a ../util/libecputil.a

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

ecp_server: $(obj)
	$(CC) -o $@ $(obj) $(dep) $(LDFLAGS)

clean:
	rm -f *.o
	rm -f ecp_server