summaryrefslogtreecommitdiff
path: root/lib/Makefile.mk
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Makefile.mk')
-rw-r--r--lib/Makefile.mk20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/Makefile.mk b/lib/Makefile.mk
new file mode 100644
index 000000000..0855879ea
--- /dev/null
+++ b/lib/Makefile.mk
@@ -0,0 +1,20 @@
+#===- lib/Makefile.mk --------------------------------------*- Makefile -*--===#
+#
+# The LLVM Compiler Infrastructure
+#
+# This file is distributed under the University of Illinois Open Source
+# License. See LICENSE.TXT for details.
+#
+#===------------------------------------------------------------------------===#
+
+Dir := lib
+SubDirs := i386 ppc x86_64
+
+Sources := $(foreach file,$(wildcard $(Dir)/*.c),$(notdir $(file)))
+ObjNames := $(Sources:%.c=%.o)
+Target := Generic
+
+# FIXME: use automatic dependencies?
+Dependencies := $(wildcard $(Dir)/*.h)
+
+include make/subdir.mk