-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
58 lines (43 loc) · 835 Bytes
/
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
55
56
57
58
######
#
# A simple Makefile
#
######
#
# HX-2018-01-05:
# PATSHOME is environmental
#
######
NPM=npm
######
PATSCC=$(PATSHOME)/bin/patscc
PATSOPT=$(PATSHOME)/bin/patsopt
PATSLIB=$(PATSHOME)/ccomp/atslib
######
all:: NDX100_dats
######
testall:: npm-install
testall:: all cleanall
######
#
NDX100_dats: \
NDX100.dats; \
$(PATSCC) -I./node_modules \
-D_GNU_SOURCE -DATS_MEMALLOC_LIBC -o $@ $< -latslib -ljson-c
#
######
clean:: ; rm -f *~
clean:: ; rm -f *_?ats.o
clean:: ; rm -f *_?ats.c
cleanall:: clean
cleanall:: ; rm -f NDX100_dats
cleanall:: ; rm -f node_modules -r
cleanall:: ; rm -f package-lock.json
######
npm-update:: ; $(NPM) update
npm-install:: ; $(NPM) install
######
export \
PATSHOMELOCS = \
./node_modules:./../node_modules:./../../node_modules:./../../../node_modules
###### end of [Makefile] ######