scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

Makefile (478B)


      1 .POSIX:
      2 
      3 PROJECTDIR = ../../..
      4 include $(PROJECTDIR)/scripts/rules.mk
      5 
      6 SYSHDR =\
      7 	sysld.h\
      8 	sysincludes.h\
      9 	cstd.h\
     10 
     11 NODEP = 1
     12 
     13 all: cstd.h
     14 
     15 cstd.h: cstd-$(STD).h
     16 	cp cstd-$(STD).h $@
     17 
     18 config: sysld.h sysincludes.h
     19 
     20 sysld.h:
     21 	set -e;\
     22 	rm -f $@;\
     23 	trap "rm -f $$$$.tmp" INT QUIT TERM HUP;\
     24 	sed -e 's/%NOPIE%/"$(NOPIE_LDFLAGS)",/' \
     25 	    -e 's/"",//' sysld.$(LIBPROFILE).h > $$$$.tmp && \
     26 	mv $$$$.tmp $@
     27 
     28 sysincludes.h:
     29 	cp sysincludes.$(LIBPROFILE).h $@
     30 
     31 clean:
     32 	rm -f cstd.h