summaryrefslogtreecommitdiff
path: root/ecp/test/Makefile
blob: 50a4202a5cf14a7eb1efc36066d1e5ba06a5ba97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
src_dir = ../src
include $(src_dir)/ecp/common.mk
CFLAGS += -I../util -Wno-int-to-void-pointer-cast

dep=../build-posix/*.a ../util/libecputil.a

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

all: basic client server vcs vc_server vc_client

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

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

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

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

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

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

clean:
	rm -f *.o
	rm -f basic dir client server echo frag stress vcs vc_server vc_client vc_client_t voip