summaryrefslogtreecommitdiff
path: root/Makefile
blob: 373bc3c948b52956b50013d93aa57ca591a7186f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
ROOT:=$(PWD)
SYS_INCLUDE:=-I$(ROOT)/include
SYS_ROOT?=$(ROOT)/sysroot
export SYS_INCLUDE
export SYS_ROOT
export ROOT

ARCH?=i386
export ARCH

SUBDIRS?=libc \

.PHONY: all install clean

all:
	for d in $(SUBDIRS); do $(MAKE) -C $$d; done

install:
	install -d $(SYS_ROOT)/usr
	install -d $(SYS_ROOT)/lib
	install -d $(SYS_ROOT)/bin
	install -d $(SYS_ROOT)/sbin
	for d in $(SUBDIRS); do $(MAKE) -C $$d install; done

clean:
	for d in $(SUBDIRS); do $(MAKE) -C $$d clean; done