-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (22 loc) · 745 Bytes
/
Makefile
File metadata and controls
31 lines (22 loc) · 745 Bytes
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
HSRCS= data.h decl.h defs.h
SRCS= cg.c decl.c expr.c gen.c main.c misc.c \
scan.c stmt.c sym.c tree.c types.c
SRCN= cgn.c decl.c expr.c gen.c main.c misc.c \
scan.c stmt.c sym.c tree.c types.c
ARMSRCS= cg_arm.c decl.c expr.c gen.c main.c misc.c \
scan.c stmt.c sym.c tree.c types.c
cwj: $(SRCS) $(HSRCS)
cc -o cwj -g -Wall $(SRCS)
compn: $(SRCN) $(HSRCS)
cc -D__NASM__ -o compn -g -Wall $(SRCN)
cwjarm: $(ARMSRCS) $(HSRCS)
cc -o cwjarm -g -Wall $(ARMSRCS)
cp cwjarm cwj
clean:
rm -f cwj cwjarm compn *.o *.s out
test: cwj tests/runtests
(cd tests; chmod +x runtests; ./runtests)
armtest: cwjarm tests/runtests
(cd tests; chmod +x runtests; ./runtests)
testn: compn tests/runtestsn
(cd tests; chmod +x runtestsn; ./runtestsn)