Makefile - scc - simple c99 compiler
(HTM) git clone git://git.simple-cc.org/scc
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
Makefile (581B)
---
1 .POSIX:
2
3 PROJECTDIR =../../../../..
4 include $(PROJECTDIR)/scripts/rules.mk
5 include ../../../rules.mk
6
7 GENOBJS =\
8 _access.$O\
9 _brk.$O\
10 _close.$O\
11 _execve.$O\
12 _exit.$O\
13 _fork.$O\
14 _getpid.$O\
15 _getrusage.$O\
16 _gettimeofday.$O\
17 _kill.$O\
18 _lseek.$O\
19 _open.$O\
20 _read.$O\
21 _rename.$O\
22 _sigaction.$O\
23 _unlink.$O\
24 _write.$O\
25 _wait4.$O\
26
27 OBJS =\
28 $(GENOBJS)\
29 _sys_errlist.$O\
30
31 all: $(OBJS) $(CRT)
32
33 $(CRT): ../crt-posix.s ../openbsd/crt.s
34
35 $(GENOBJS): syscall.lst
36 ./gensys.sh $(@:.$O=)
37 $(AS) $(PROJ_ASFLAGS) -o $@ $(@:.$O=.s)
38
39 clean:
40 rm -f $(GENOBJS:.$O=.s) _sys_errlist.c