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