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	_access.$O\
 9	_close.$O\
10	_execve.$O\
11	_exit.$O\
12	_fork.$O\
13	_getpid.$O\
14	_kill.$O\
15	_lseek.$O\
16	_open.$O\
17	_read.$O\
18	_rename.$O\
19	_sigaction.$O\
20	_sys_brk.$O\
21	_write.$O\
22	_wait4.$O\
23
24GENSRC = $(GENOBJS:.$O=.s)
25
26OBJS =\
27	$(GENOBJS)\
28	_cerrno.$O\
29	_sys_errlist.$O\
30
31all: $(OBJS) $(CRT)
32
33$(CRT): ../crt-posix.s
34
35$(GENOBJS): syscall.lst
36	./gensys.sh $(@:.$O=)
37	$(AS) $(PROJ_ASFLAGS) -o $@ $(@:.$O=.s)
38
39clean:
40	rm -f $(GENOBJS:.$O=.s) _sys_errlist.c