scc

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

Makefile (564B)


      1 .POSIX:
      2 
      3 DIRS =\
      4 	elf\
      5 	coff32\
      6 
      7 PROJECTDIR =../..
      8 include $(PROJECTDIR)/scripts/rules.mk
      9 
     10 TARGET = libmach.a
     11 
     12 OBJS =\
     13 	archive.o\
     14 	armember.o\
     15 	delobj.o\
     16 	findsec.o\
     17 	getindex.o\
     18 	getsec.o\
     19 	getsym.o\
     20 	loadmap.o\
     21 	newmap.o\
     22 	newobj.o\
     23 	objpos.o\
     24 	objprobe.o\
     25 	objtype.o\
     26 	pack.o\
     27 	pc2line.o\
     28 	readobj.o\
     29 	rebase.o\
     30 	setindex.o\
     31 	setmap.o\
     32 	setsec.o\
     33 	setsym.o\
     34 	strip.o\
     35 	unpack.o\
     36 	writeobj.o\
     37 
     38 all:
     39 	+@$(MAKE) $(DIRS)
     40 	+@$(MAKE) $(TARGET)
     41 
     42 $(TARGET): $(OBJS)
     43 	$(AR) $(PROJ_ARFLAGS) $@ $?
     44 	$(RL) $(PROJ_RLFLAGS) $@
     45 	cp $@ $(LIBDIR)/scc
     46 
     47 dep:
     48 	./mkdep elf coff32