-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
54 lines (42 loc) · 1.41 KB
/
Makefile
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
CC=cc
CCFLAGS= -ansi
DEFS=
all: netci
netci: debug
netci.ini:
cp src/netci.ini .
release: src/release.bld src/netci netci.ini std.db version
debug: src/debug.bld src/netci netci.ini std.db version
src/release.bld: src/autoconf.c
( if [ -f src/debug.bld ] ; then rm -f src/debug.bld ; fi )
$(CC) $(CCFLAGS) $(DEFS) src/autoconf.c -o src/autoconf
( cd src ; ./autoconf )
touch src/release.bld
src/debug.bld: src/autoconf.c
( if [ -f src/release.bld ] ; then rm -f src/release.bld ; fi )
$(CC) $(CCFLAGS) $(DEFS) -DDEBUG src/autoconf.c -o src/autoconf
( cd src ; ./autoconf )
touch src/debug.bld
src/netci:
( cd src ; make netci )
mv src/netci .
std.db:
./netci -create -noisy -save=std.db
version:
./netci -version
clean:
( if [ -f netci ] ; then rm -f netci ; fi )
( if [ -f gmon.out ] ; then rm -f gmon.out ; fi )
( if [ -f src/autoconf.h ] ; then rm -f src/autoconf.h ; fi )
( if [ -f src/autoconf ] ; then rm -f src/autoconf ; fi )
( if [ -f src/Makefile ] ; then rm -f src/Makefile ; fi )
( if [ -f src/release.bld ] ; then rm -f src/release.bld ; fi )
( if [ -f src/debug.bld ] ; then rm -f src/debug.bld ; fi )
touch src/dummy.o
rm -f src/*.o
spotless: clean
( if [ -f netci.ini ] ; then rm -f netci.ini ; fi )
( if [ -f syslog.txt ] ; then rm -f syslog.txt ; fi )
( if [ -f std.db ] ; then rm -f std.db ; fi )
( if [ -f ci200fs/etc/pkg/packages.lst ] ; \
then rm -f ci200fs/etc/pkg/packages.lst ; fi )