commit 0132bb719cb965b4d9899bb41cfa1cef6b94f4cd
parent 9c4ef536002d5195311f20c112ca956b6a90dc7e
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Sat, 25 Nov 2017 12:18:01 +0100
[as,ar,nm] Improve header dependencies
Diffstat:
3 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/ar/Makefile b/ar/Makefile
@@ -12,6 +12,10 @@ all: ar-$(DRIVER)
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)
diff --git a/as/Makefile b/as/Makefile
@@ -15,6 +15,8 @@ $(OBJ): $(HDR)
as: $(OBJ)
$(CC) $(SCC_LDFLAGS) $(OBJ) -lscc -o $@
+myro.o: ../inc/myro.h
+
$(LIBDIR)/libscc.a: $(LIB-OBJ)
cd $(LIBDIR) && $(MAKE)
diff --git a/nm/Makefile b/nm/Makefile
@@ -11,6 +11,8 @@ all: nm
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)