chiark / gitweb /
further refactor filter_subdir_mk, moving $srcdir, nfc
[subdirmk.git] / Subdir.mk.in
index ef342802ad52f25477035edb2e318b810802efd0..e80ef5238ac816ceebbd07a8518aab6acc372c6f 100644 (file)
@@ -1,24 +1,5 @@
-#
-
-VPATH          = &^
-
-prefix         = @prefix@
-exec_prefix    = @exec_prefix@
-bindir         = @bindir@
-
-CC             ?= @CC@
-CFLAGS         ?= @CFLAGS@
-DEFS           ?= @DEFS@
-INCLUDES       ?= @INCLUDES@
-LD             ?= @CC@
-LDFLAGS                ?= @LDFLAGS@
-LIBS           ?= @LIBS@
 
 INCLUDES       += -I&^/lib/
 
-LINK           ?= $(CC) -o$@ $(CFLAGS) $(LDFLAGS)
-AR             ?= ar
-COMPILE                ?= $(CC) -c -o$@ -MD $(DEFS) $(INCLUDES) $(CFLAGS)
-
-%.o: %.c
-       $(COMPILE) $<
+&:include subdirmk/usual.mk.in
+include subdirmk/regen.mk