scc

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

Makefile (1161B)


      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        namindex.o \
     22        formember.o \
     23        objtype.o \
     24        objwrite.o \
     25        pack.o \
     26        unpack.o \
     27        new.o \
     28        read.o \
     29        del.o \
     30        strip.o \
     31        probe.o \
     32        write.o \
     33        getidx.o \
     34        setidx.o \
     35        namidx.o \
     36        getsect.o \
     37        getsyms.o \
     38 
     39 DIRS = coff32
     40 
     41 TBLS = setidx.c \
     42        getidx.c \
     43        getsect.c \
     44        getsyms.c \
     45        namidx.c \
     46        new.c \
     47        read.c \
     48        del.c \
     49        strip.c \
     50        probe.c \
     51        write.c \
     52 
     53 
     54 all: $(OBJS) $(DIRS) objlst.mk
     55 	+@$(MAKE) -f Makefile.mach
     56 
     57 $(DIRS): FORCE
     58 	+@cd $@ && $(MAKE)
     59 
     60 $(TBLS): formats.lst
     61 	mktbl -t `echo $@ | sed 's/\.c//'` -o $@
     62 
     63 objlst.mk: $(OBJS) $(DIRS)
     64 	mklst $@
     65 
     66 dep: inc-dep
     67 	$(FORALL)
     68 
     69 clean:
     70 	$(FORALL)
     71 	rm -f $(TBLS) objlst.mk
     72 
     73 
     74 include deps.mk