chiark / gitweb /
move much into usual.mk.in
[subdirmk.git] / Subdir.mk.in
index 79249db459f8b329ed10abb7115d3c385d5abb8b..e80ef5238ac816ceebbd07a8518aab6acc372c6f 100644 (file)
@@ -1,26 +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/regen.mk
+&:include subdirmk/usual.mk.in
+include subdirmk/regen.mk