ref: 3f605cf71d9fa11b487c97dee9900d19ad8ae69b
parent: eb58c2c6c6dd1e5b066b52761641b680a526af15
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Wed Aug 15 14:34:01 EDT 2018
[lib/scc] Move generated dependencias to deps.mk It makes easier to read the base Makefiles.
--- a/lib/scc/Makefile
+++ b/lib/scc/Makefile
@@ -1,5 +1,4 @@
-
PROJECTDIR = ../..
LIBSCC = .
include $(PROJECTDIR)/rules.mk
@@ -7,15 +6,14 @@
all: libscc.a
-$(LIBSCC-OBJ): $(INCDIR)/scc.h
-$(LIBSCC)/wmyro.o: $(INCDIR)/myro.h
-$(LIBSCC)/rmyro.o: $(INCDIR)/myro.h
-
libscc.a: $(LIBSCC-OBJ)
$(AR) $(ARFLAGS) $@ $?
ranlib $@
dep:
+ $(PROJECTDIR)/mkdep.sh
clean:
rm -f *.o *.a
+
+include deps.mk
--- /dev/null
+++ b/lib/scc/deps.mk
@@ -1,0 +1,17 @@
+alloc.o: ../../inc/scc.h
+bpack.o: ../../inc/scc.h
+bunpack.o: ../../inc/scc.h
+casecmp.o: ../../inc/scc.h
+debug.o: ../../inc/scc.h
+die.o: ../../inc/scc.h
+lpack.o: ../../inc/scc.h
+lunpack.o: ../../inc/scc.h
+newitem.o: ../../inc/scc.h
+rmyro.o: ../../inc/myro.h
+rmyro.o: ../../inc/scc.h
+wmyro.o: ../../inc/myro.h
+wmyro.o: ../../inc/scc.h
+xcalloc.o: ../../inc/scc.h
+xmalloc.o: ../../inc/scc.h
+xrealloc.o: ../../inc/scc.h
+xstrdup.o: ../../inc/scc.h