Makefile - scc - simple c99 compiler (HTM) git clone git://git.simple-cc.org/scc (DIR) Log (DIR) Files (DIR) Refs (DIR) Submodules (DIR) README (DIR) LICENSE --- Makefile (657B) --- 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 objprobe.o\ 27 objtype.o\ 28 pack.o\ 29 pc2line.o\ 30 readobj.o\ 31 rebase.o\ 32 setindex.o\ 33 setmap.o\ 34 setsec.o\ 35 setsym.o\ 36 strip.o\ 37 unpack.o\ 38 writeobj.o\ 39 $(COFF32_OBJS)\ 40 $(ELF64_OBJS)\ 41 42 all: $(TARGET) 43 44 $(TARGET): $(OBJS) 45 $(AR) $(PROJ_ARFLAGS) $@ $? 46 $(RL) $(PROJ_RLFLAGS) $@ 47 48 clean: 49 rm -f $(TBLS) objlst.mk 50 rm -f */*.o 51 52 include deps.mk