shithub: scc

ref: ac7e083f2c70bde5e5361c8cf2fcf116ddc1b5f1
dir: /nm/Makefile/

View raw version
.POSIX:

PROJECTDIR = ..
include $(PROJECTDIR)/rules.mk
include $(LIBSCC)/libdep.mk

MORECFLAGS = $(STDCFLAGS)

OBJ       = main.o coff32.o formats.o

all: $(BINDIR)/nm

$(BINDIR)/nm: nm
	cp nm $(PROJECTDIR)/rootdir/bin/nm

nm: $(OBJ) $(LIBSCC)/libscc.a
	$(CC) $(SCC_LDFLAGS) $(OBJ) -lscc -o $@

dep:
	$(PROJECTDIR)/mkdep.sh

clean:
	rm -f $(BINDIR)/nm nm *.o

distclean: clean

include deps.mk