shithub: scc

ref: 04f3da918d80958735fd99e1b807758b06ff7e7d
dir: /nm/Makefile/

View raw version
.POSIX:

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

OBJ       = main.o coff32.o formats.o

all: $(BINDIR)/nm

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

dep:
	$(PROJECTDIR)/mkdep.sh

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

distclean: clean

include deps.mk