scc

A fork of https://git.simple-cc.org/scc/ for Qute

git clone https://git.8pit.net/scc.git

 1.POSIX:
 2
 3PROJECTDIR =../../../../..
 4include $(PROJECTDIR)/scripts/rules.mk
 5include ../../../rules.mk
 6
 7GENOBJS =\
 8	__close.$O\
 9	__exit.$O\
10	__fork.$O\
11	__getpid.$O\
12	__kill.$O\
13	__lseek.$O\
14	__open.$O\
15	__read.$O\
16	__sigaction.$O\
17	__write.$O\
18
19OBJS  =\
20	$(GENOBJS)\
21	_sys_errlist.$O\
22
23all: $(OBJS) $(CRT)
24
25$(CRT): ../crt-posix.s
26
27$(GENOBJS): syscall.lst
28	./gensys.sh $(@:.$O=)
29	$(AS) $(PROJ_ASFLAGS) -o $@ $(@:.$O=.s)
30
31clean:
32	rm -f $(GENOBJS:.$O=.s) _sys_errlist.c