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	_gettimeofday.$O\
14	_kill.$O\
15	_lseek.$O\
16	_open.$O\
17	_read.$O\
18	_setcontext.$O\
19	_sigaction2.$O\
20	_write.$O\
21	_wait4.$O\
22
23OBJS =\
24	$(GENOBJS)\
25	_sys_errlist.$O\
26
27all: $(OBJS) $(CRT)
28
29crt.$O: ../crt-posix.s ../netbsd/crt.s
30
31$(GENOBJS): syscall.lst
32	./gensys.sh $(@:.$O=)
33	$(AS) $(PROJ_ASFLAGS) -o $@ $(@:.$O=.s)
34
35clean:
36	rm -f $(GENOBJS:.$O=.s) _sys_errlist.c