Makefile.OLD 1.55 KB
Newer Older
Arne Øslebø's avatar
Arne Øslebø committed
1
2
include ../Makefile.in

3
INCLUDE=-I. -I.. -I$(SCAMPI_PREFIX)/libscampi \
's avatar
committed
4
5
 -I$(LIBEROUTER_PREFIX)/sys_sw/libcombo \
 -I$(LOBSTER_PREFIX)/filter/src
Arne Øslebø's avatar
Arne Øslebø committed
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48

CFLAGS=-g -O2 $(C_WARNINGS) $(INCLUDE) $(C_FEATURES)

TARGETS=combo6flib.so

all: $(TARGETS)

combo6bpf.o: combo6bpf.c combo6bpf.h ../mapidflib.h
	$(CC) $(CFLAGS) -o $@ -c $<

combo6sample.o: combo6sample.c ../mapidflib.h
	$(CC) $(CFLAGS) -o $@ -c $<

combo6ifstats.o: combo6ifstats.c combo6ifstats.h ../mapidflib.h
	$(CC) $(CFLAGS) -o $@ -c $<

combo6stats.o: combo6stats.c combo6stats.h ../mapidflib.h
	$(CC) $(CFLAGS) -o $@ -c $<

combo6byte_counter.o: combo6byte_counter.c combo6byte_counter.h ../mapidflib.h
	$(CC) $(CFLAGS) -o $@ -c $<

combo6all.o: combo6all.c ../mapidflib.h
	$(CC) $(CFLAGS) -o $@ -c $<

combo6flib.o: combo6flib.c ../mapidflib.h ../mapi.h
	$(CC) $(CFLAGS) -c $<

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

read_fd.o: read_fd.c
	$(CC) $(CFLAGS) -o $@ -c $<

write_fd.o: write_fd.c
	$(CC) $(CFLAGS) -o $@ -c $<

fd_server.o: fd_server.c
	$(CC) $(CFLAGS) -o $@ -c $<

fd_client.o: fd_client.c
	$(CC) $(CFLAGS) -o $@ -c $<

49
combo6flib.so: combo6flib.o combo6bpf.o combo6sample.o combo6ifstats.o combo6stats.o combo6byte_counter.o combo6all.o print_time.o ../fhelp.o ../mapiipc.o ../mstring.o read_fd.o write_fd.o fd_server.o fd_client.o
's avatar
committed
50
	$(CC) $(CFLAGS) -shared  -o $@ $^ -lfl -lrt -L. -L$(SCAMPI_PREFIX)/libscampi -L$(LIBEROUTER_PREFIX)/sys_sw/libcombo -L$(LOBSTER_PREFIX)/filter/src -lscampi -lcombo -lfilter -Wl,-rpath,$(LIBEROUTER_PREFIX)/sys_sw/libcombo
Arne Øslebø's avatar
Arne Øslebø committed
51
52
53
54
	cp $@ ..
clean:
	@/bin/rm -f *.o *.so *~ $(TARGETS)