use my nice build system rather than custom makefiles
[apps/madtty.git] / am / header.mk
diff --git a/am/header.mk b/am/header.mk
new file mode 100644 (file)
index 0000000..1309171
--- /dev/null
@@ -0,0 +1,16 @@
+# Disable most default rules
+.SUFFIXES:
+
+# where is admin/ wrt us ?
+CONFDIR := $(dir $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)))
+
+ifeq ("","$(DEPTH)")
+    $(error you have to define DEPTH)
+endif
+
+include $(CONFDIR)/vars.mk
+include $(CONFDIR)/cflags.mk
+
+# trick : make all always be the default target !
+# note that it breaks default Makefile semantics
+all::