scc

Simple C99 Compiler
Log | Files | Refs | README | LICENSE

Makefile (320B)


      1 # See LICENSE file for copyright and license details.
      2 .POSIX:
      3 
      4 include ../../config.mk
      5 
      6 OBJS = scc.o
      7 
      8 all: scc
      9 
     10 $(OBJS): ../../inc/cc.h ../../inc/arg.h
     11 
     12 ../../lib/libcc.a:
     13 	cd ../../lib && $(MAKE) -e
     14 
     15 scc: $(OBJS) ../../lib/libcc.a
     16 	$(CC) $(SCC_LDFLAGS) $(OBJS) ../../lib/libcc.a -o $@
     17 
     18 clean:
     19 	rm -f $(OBJS)
     20 	rm -f scc