]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - sys/netpfil/ipfw/test/Makefile
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / sys / netpfil / ipfw / test / Makefile
1 #
2 # $FreeBSD$
3 #
4 # Makefile for building userland tests
5 # this is written in a form compatible with gmake
6
7 SCHED_SRCS = test_dn_sched.c
8 SCHED_SRCS += dn_sched_fifo.c
9 SCHED_SRCS += dn_sched_prio.c
10 SCHED_SRCS += dn_sched_qfq.c
11 SCHED_SRCS += dn_sched_rr.c
12 SCHED_SRCS += dn_sched_wf2q.c
13 SCHED_SRCS += dn_heap.c
14 SCHED_SRCS += main.c
15
16 SCHED_OBJS=$(SCHED_SRCS:.c=.o)
17
18 HEAP_SRCS = dn_heap.c test_dn_heap.c
19 HEAP_OBJS=$(HEAP_SRCS:.c=.o)
20
21 VPATH=  .:..
22
23 CFLAGS = -I.. -I. -Wall -Werror -O3 -DIPFW
24 TARGETS= test_sched # no test_heap by default
25
26 all:    $(TARGETS)
27
28 test_heap : $(HEAP_OBJS)
29         $(CC) -o $@ $(HEAP_OBJS)
30
31 test_sched : $(SCHED_OBJS)
32         $(CC) -o $@ $(SCHED_OBJS)
33
34 $(SCHED_OBJS): dn_test.h
35 main.o: mylist.h
36
37 clean:
38         - rm *.o $(TARGETS) *.core
39
40 ALLSRCS = $(SCHED_SRCS) dn_test.h mylist.h \
41         dn_sched.h dn_heap.h ip_dn_private.h Makefile
42 TMPBASE = /tmp/testXYZ
43 TMPDIR = $(TMPBASE)/test
44
45 tgz:
46         -rm -rf $(TMPDIR)
47         mkdir -p $(TMPDIR)
48         -cp -p $(ALLSRCS) $(TMPDIR)
49         -(cd ..; cp -p $(ALLSRCS) $(TMPDIR))
50         ls -la  $(TMPDIR)
51         (cd $(TMPBASE); tar cvzf /tmp/test.tgz test)