Makefile (647B)
1 .POSIX: 2 3 PROJECTDIR =../.. 4 include $(PROJECTDIR)/scripts/rules.mk 5 include coff32/rules.mk 6 include elf64/rules.mk 7 8 TARGET = 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 cp $@ $(LIBDIR)/scc 48 49 clean: 50 rm -f $(TBLS) objlst.mk 51 rm -f */*.o