shithub: scc

ref: 85d760f44e6c6622057d1db8aba52cd5902dca95
dir: /src/libmach/Makefile/

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

TARGET = $(LIBDIR)/libmach.a

OBJS = objnew.o \
       objpos.o \
       objread.o \
       objfree.o \
       objstrip.o \
       objsect.o \
       objsyms.o \
       objdel.o \
       addr2line.o \
       archive.o \
       armember.o \
       objlookup.o \
       getindex.o \
       setindex.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