scc

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

Makefile (698B)


      1 .POSIX:
      2 PROJECTDIR =../..
      3 include $(PROJECTDIR)/scripts/rules.mk
      4 
      5 TARGET = $(LIBDIR)/libmach.a
      6 
      7 OBJS = objnew.o \
      8        objpos.o \
      9        objread.o \
     10        objfree.o \
     11        objstrip.o \
     12        objsect.o \
     13        objsyms.o \
     14        objdel.o \
     15        addr2line.o \
     16        archive.o \
     17        armember.o \
     18        objlookup.o \
     19        getindex.o \
     20        setindex.o \
     21        formember.o \
     22        objtype.o \
     23        objwrite.o \
     24        pack.o \
     25        unpack.o \
     26 
     27 DIRS = coff32
     28 
     29 
     30 all: $(OBJS) $(DIRS) objlst.mk
     31 	+@$(MAKE) -f Makefile.mach
     32 
     33 $(DIRS): FORCE
     34 	+@cd $@ && $(MAKE)
     35 
     36 objlst.mk: $(OBJS) $(DIRS)
     37 	mklst $@
     38 
     39 dep: inc-dep
     40 	$(FORALL)
     41 
     42 clean:
     43 	$(FORALL)
     44 	rm -f $(TBLS) objlst.mk
     45 
     46 
     47 include deps.mk