summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/Makefile')
-rw-r--r--libc/sysdeps/linux/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/Makefile b/libc/sysdeps/linux/Makefile
new file mode 100644
index 000000000..a81bb9a21
--- /dev/null
+++ b/libc/sysdeps/linux/Makefile
@@ -0,0 +1,20 @@
+# Figure out what arch to build...
+
+ARCH = $(shell uname -m | sed -e 's/i.86/i386/' | sed -e 's/sparc.*/sparc/')
+
+all: $(ARCH) common
+
+$(ARCH): dummy
+ echo Building for ARCH=$(ARCH)
+ make -C $(ARCH)
+
+common: dummy
+ echo Building common stuff
+ make -C common
+
+clean:
+ rm -f *.o
+ make -C common clean
+ make -C $(ARCH) clean
+
+.PHONY: dummy