scc

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

Makefile (363B)


      1 .POSIX:
      2 PROJECTDIR = ../../..
      3 include $(PROJECTDIR)/scripts/rules.mk
      4 
      5 TARGET = $(BINDIR)/ld
      6 
      7 OBJS =\
      8 	main.o\
      9 	symbol.o\
     10 	section.o\
     11 	pass1.o\
     12 	pass2.o \
     13 #	pass3.o \
     14 #       pass4.o \
     15 #       pass5.o \
     16 
     17 all: $(TARGET)
     18 
     19 $(TARGET): $(OBJS) $(LIBMACH) $(LIBSCC)
     20 	$(CC) $(PROJ_LDFLAGS) $(OBJS) -lmach -lscc -o $@
     21 
     22 dep: inc-dep
     23 
     24 clean:
     25 	rm -f $(OBJS)
     26 
     27 include deps.mk