ref: ee085377700470e44b9c93c387f4eeac615700f8
parent: 7046b7e3901844cf0f94f31b6b3d2415c783eea3
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sat Nov 25 07:18:01 EST 2017
[as,ar,nm] Improve header dependencies
--- a/ar/Makefile
+++ b/ar/Makefile
@@ -12,6 +12,10 @@
ar-$(DRIVER): $(OBJ) $(LIBDIR)/libscc.a
$(CC) $(SCC_LDFLAGS) $(OBJ) -lscc -o $@
+main.o: ../inc/scc.h ../inc/ar.h
+
+$(DRIVER)/stat.o: $(DRIVER)/stat.h
+
$(LIBDIR)/libscc.a: $(LIB-OBJ)
cd $(LIBDIR) && $(MAKE)
--- a/as/Makefile
+++ b/as/Makefile
@@ -15,6 +15,8 @@
as: $(OBJ)
$(CC) $(SCC_LDFLAGS) $(OBJ) -lscc -o $@
+myro.o: ../inc/myro.h
+
$(LIBDIR)/libscc.a: $(LIB-OBJ)
cd $(LIBDIR) && $(MAKE)
--- a/nm/Makefile
+++ b/nm/Makefile
@@ -11,6 +11,8 @@
nm: $(OBJ) $(LIBDIR)/libscc.a
$(CC) $(SCC_LDFLAGS) $(OBJ) -lscc -o $@
+main.o: ../inc/scc.h ../inc/ar.h ../inc/myro.h
+
$(LIBDIR)/libscc.a: $(LIB-OBJ)
cd $(LIBDIR) && $(MAKE)