scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

Makefile (494B)


      1 .POSIX:
      2 
      3 include ../config.mk
      4 
      5 HDR = ldflags.h sysincludes.h syslibs.h
      6 
      7 all:
      8 
      9 dep: $(HDR)
     10 
     11 ldflags.h:
     12 	rm -f $@ ; \
     13 	trap "rm -f $$$$.h" 0 2 3; \
     14 	cat < ldflags.def.h > $$$$.h; \
     15 	mv $$$$.h $@
     16 
     17 sysincludes.h:
     18 	rm -f $@ ; \
     19 	trap "rm -f $$$$.h" 0 2 3; \
     20 	sed 's,PREFIX,"$(PREFIX)",g' < sysincludes.def.h > $$$$.h && \
     21 	mv $$$$.h $@
     22 
     23 syslibs.h:
     24 	rm -f $@ ; \
     25 	trap "rm -f $$$$.h" 0 2 3; \
     26 	sed 's,PREFIX,"$(PREFIX)",g' < syslibs.def.h > $$$$.h && \
     27 	mv $$$$.h $@
     28 
     29 clean:
     30 distclean:
     31 	rm -f $(HDR)