chiark / gitweb /
WIP
[subdirmk.git] / Subdir.mk.in
index 792d6005489ebee62cde02066f19c5521e620451..79249db459f8b329ed10abb7115d3c385d5abb8b 100644 (file)
@@ -1 +1,26 @@
 #
+
+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