scc

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

Makefile (566B)


      1 .POSIX:
      2 
      3 DIRS =\
      4 	coff32
      5 
      6 PROJECTDIR =../..
      7 include $(PROJECTDIR)/scripts/rules.mk
      8 
      9 TARGET = $(LIBDIR)/scc/libmach.a
     10 
     11 OBJS =\
     12 	mach.o\
     13 	newobj.o \
     14 	delobj.o\
     15 	objpos.o\
     16 	archive.o\
     17 	armember.o\
     18 	objtype.o\
     19 	readobj.o\
     20 	writeobj.o\
     21 	getsym.o\
     22 	getsec.o\
     23 	rebase.o\
     24 	loadmap.o\
     25 	newmap.o\
     26 	setmap.o\
     27 	findsec.o\
     28 	strip.o\
     29 	pc2line.o\
     30 	pack.o\
     31 	unpack.o\
     32 	setindex.o\
     33 	getindex.o\
     34 
     35 
     36 all: $(OBJS) $(DIRS) objlst.mk
     37 	+@$(MAKE) -f Makefile.mach
     38 
     39 objlst.mk: $(OBJS) $(DIRS)
     40 	./mklst $@
     41 
     42 dep: inc-dep
     43 	$(FORALL)
     44 
     45 clean:
     46 	$(FORALL)
     47 	rm -f $(TBLS) objlst.mk
     48 
     49 
     50 include deps.mk