scc

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

Makefile (332B)


      1 .POSIX:
      2 PROJECTDIR = ../../..
      3 include $(PROJECTDIR)/scripts/rules.mk
      4 
      5 TARGET = $(BINDIR)/ld
      6 
      7 OBJS = main.o \
      8        symbol.o \
      9        pass1.o \
     10        pass2.o \
     11        pass3.o \
     12 
     13 
     14 all: $(TARGET)
     15 
     16 #TODO Add library dependencies
     17 $(TARGET): $(OBJS)
     18 	$(CC) $(SCC_LDFLAGS) $(OBJS) -lmach -lscc -o $@
     19 
     20 dep: inc-dep
     21 
     22 clean:
     23 	rm -f $(OBJS)