summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/Makefile
blob: 16980d1b33453c7db2c34e37213a65c59a79b1f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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