scc

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

Makefile (356B)


      1 .POSIX:
      2 
      3 PROJECTDIR = ../../../..
      4 include $(PROJECTDIR)/scripts/rules.mk
      5 
      6 TARGET =\
      7 	scc-cc\
      8 	scc-cpp\
      9 	scc\
     10 
     11 all: $(TARGET)
     12 
     13 scc-cc: $(LIBSCC) cc.o
     14 	$(CC) $(PROJ_LDFLAGS) cc.o -lscc $(PROJ_LDLIBS) -o $@
     15 	cp $@ $(BINDIR)
     16 
     17 scc-cpp: scc.sh
     18 	cp scc.sh $@
     19 	chmod +x $@
     20 	cp $@ $(BINDIR)
     21 
     22 scc: scc.sh
     23 	cp scc.sh $@
     24 	chmod +x $@
     25 	cp $@ $(BINDIR)
     26 
     27 include deps.mk