-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile.in
92 lines (75 loc) · 2.04 KB
/
Makefile.in
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# Makefile for Starbase Data Tables
#
Package = starbase
MAKEDEFS = bindir=$(bindir) libdir=$(libdir) incdir=$(incdir) $(flags)
all:
mkdir -p bin
mkdir -p lib
mkdir -p include
cp utillib/*.h include
cp tablelib/*.h include
cp tawk/xawk*.h include
if [ ! -f touched -a -f tawk/parse.c ] ; then touch tawk/parse.c; fi
if [ ! -f touched -a -f tawk/getdate.c ] ; then touch tawk/getdate.c; fi
if [ ! -f touched -a -f tawk/array.c ] ; then touch tawk/array.c; fi
if [ ! -f touched -a -f tablesrc/table_lex.c ] ; then touch tablesrc/table_lex.c; fi
if [ ! -f touched -a -f tablesrc/report_lex.c ] ; then touch tablesrc/report_lex.c; fi
if [ ! -f touched -a -f utillib/getdate.c ] ; then touch utillib/getdate.c; fi
touch touched
for dir in $(SUBDIRS); do \
if [ -d $$dir ]; then \
(cd $$dir; $(MAKE) $(MAKEDEFS) $@); \
fi; \
done
afl:
$(MAKE) CC=afl-gcc C_DFLAGS=-g all
debug:
$(MAKE) flags=C_DLFLAGS=-g all
parser:
-rm -f tawk/parse.c
-rm -f utillib/getdate.c
-rm -f tablesrc/table_lex.c
-rm -f tablesrc/report_lex.c
$(MAKE) $(MAKEDEFS) all
install::
rm -f Commands
test -d $(bindir) || mkdir -p $(bindir)
test -d $(libdir) || mkdir -p $(libdir)
test -d $(incdir) || mkdir -p $(incdir)
distclean :: clean
rm -rf bin lib include
rm -f make.log Makefile
rm -f Commands .config
install distclean clean ::
for dir in $(SUBDIRS); do \
if [ -d $$dir ]; then \
echo $(MAKE) $@ $(MAKEDEFS) in $$dir ; \
(cd $$dir; $(MAKE) $(MAKEDEFS) $@ ) ; \
fi; \
done
clean ::
rm -f touched
html:
-rm -f tawk/parse.c
-rm -f utillib/getdate.c
-rm -f tablesrc/table_lex.c
-rm -f tablesrc/report_lex.c
gtags
htags
rm GPATH GRTAGS GSYMS GTAGS
rm -r $MMTIHTML/starbase/SRC
mv HTML $MMTIHTML/starbase/SRC
CONFIGARGS=`cat .save`
release:
cp .config .save
./configure
make source
./configure
make binary
./configure $(CONFIGARGS)
rm .save
rebuild:
make distclean
./configure --arch=$(MMTIOS)
make
make install