Makefile (332B)
1 .POSIX: 2 3 LIBDIR = ../lib/scc 4 include ../config.mk 5 include $(LIBDIR)/libdep.mk 6 7 OBJ = main.o 8 9 all: nm 10 11 nm: $(OBJ) $(LIBDIR)/libscc.a 12 $(CC) $(SCC_LDFLAGS) $(OBJ) -lscc -o $@ 13 14 main.o: ../inc/scc.h ../inc/ar.h ../inc/myro.h 15 16 $(LIBDIR)/libscc.a: $(LIB-OBJ) 17 cd $(LIBDIR) && $(MAKE) 18 19 dep: 20 clean: 21 rm -f nm *.o 22 23 distclean: clean