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	_brk.$O\
 9	_close.$O\
10	_exit.$O\
11	_fork.$O\
12	_getpid.$O\
13	_kill.$O\
14	_lseek.$O\
15	_open.$O\
16	_read.$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