scc

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

Makefile (622B)


      1 .POSIX:
      2 
      3 PROJECTDIR =../..
      4 include $(PROJECTDIR)/scripts/rules.mk
      5 include coff32/rules.mk
      6 include elf64/rules.mk
      7 
      8 TARGET = $(LIBDIR)/scc/libmach.a
      9 
     10 all: $(TARGET)
     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 	mach.o\
     22 	newmap.o\
     23 	newobj.o \
     24 	newobj.o\
     25 	objpos.o\
     26 	objtype.o\
     27 	pack.o\
     28 	pc2line.o\
     29 	readobj.o\
     30 	rebase.o\
     31 	setindex.o\
     32 	setmap.o\
     33 	strip.o\
     34 	unpack.o\
     35 	writeobj.o\
     36 	$(COFF32_OBJS)\
     37 	$(ELF64_OBJS)\
     38 
     39 all: $(TARGET)
     40 
     41 $(TARGET): $(OBJS)
     42 	$(AR) $(PROJ_ARFLAGS) $@ $?
     43 	$(RL) $(PROJ_RLFLAGS) $@
     44 
     45 clean:
     46 	rm -f $(TBLS) objlst.mk
     47 	rm -f */*.o
     48 
     49 include deps.mk