summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/Makefile
blob: a81bb9a2113909bf826c781e1cb8700f0b5dc6e1 (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