-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (30 loc) · 653 Bytes
/
Copy pathMakefile
File metadata and controls
42 lines (30 loc) · 653 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
32
33
34
35
36
37
38
39
40
41
CFLAGS=-std=c11 -O0 -g -static
SRCS=$(wildcard *.c)
OBJS=$(SRCS:.c=.o)
ynicc: $(OBJS)
$(CC) -o ynicc $(OBJS) $(CFLAGS)
$(OBJS): ynicc.h
test: ynicc
./ynicc tests > tmp.s
gcc -O0 -c test_func.c
gcc -O0 -static -o tmp test_func.o tmp.s
./tmp
ynicc-gen2: ynicc
./self.sh
ynicc-gen3: ynicc-gen2
./self3.sh
test-gen2: ynicc-gen2
./ynicc-gen2 tests > tmp.s
gcc -O0 -c test_func.c
gcc -O0 -static -o tmp test_func.o tmp.s
./tmp
test-gen3: ynicc-gen3
./ynicc-gen3 tests > tmp.s
gcc -O0 -c test_func.c
gcc -O0 -static -o tmp test_func.o tmp.s
./tmp
clean:
rm -rf tmp-self
rm -rf tmp-self3
rm -f ynicc *.o *~ tmp*
.PHONY: test clean