shithub: scc

ref: 5b919477354727041f8a522f0f91273e623fa58d
dir: /src/libmach/Makefile/

View raw version
.POSIX:
PROJECTDIR =../..
include $(PROJECTDIR)/scripts/rules.mk

TARGET = $(LIBDIR)/libmach.a

OBJS = mach.o \
       objnew.o \
       objpos.o \
       objfree.o \
       objstrip.o \
       objdel.o \
       objaddseg.o \
       objsync.o \
       addr2line.o \
       archive.o \
       armember.o \
       objlookup.o \
       formember.o \
       objtype.o \
       objwrite.o \
       pack.o \
       unpack.o \

DIRS = coff32


all: $(OBJS) $(DIRS) objlst.mk
	+@$(MAKE) -f Makefile.mach

$(DIRS): FORCE
	+@cd $@ && $(MAKE)

objlst.mk: $(OBJS) $(DIRS)
	mklst $@

dep: inc-dep
	$(FORALL)

clean:
	$(FORALL)
	rm -f $(TBLS) objlst.mk


include deps.mk