shithub: scc

ref: 51f244d2ec7cce0cd116df73b29e3c9ff5cc3425
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 \
       namindex.o \
       formember.o \
       objtype.o \
       objwrite.o \
       pack.o \
       unpack.o \
       new.o \
       read.o \
       del.o \
       strip.o \
       probe.o \
       write.o \
       getidx.o \
       setidx.o \
       namidx.o \
       getsect.o \
       getsyms.o \

DIRS = coff32

TBLS = setidx.c \
       getidx.c \
       getsect.c \
       getsyms.c \
       namidx.c \
       new.c \
       read.c \
       del.c \
       strip.c \
       probe.c \
       write.c \


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

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

$(TBLS): formats.lst
	mktbl -t `echo $@ | sed 's/\.c//'` -o $@

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

dep: inc-dep
	$(FORALL)

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


include deps.mk