Makefile 568 Bytes
Newer Older
1 2
# include parent_common.mk for buildsystem's defines
# use absolute path for REPO_PARENT
3
REPO_PARENT ?= $(shell /bin/pwd)/..
4 5
-include $(REPO_PARENT)/parent_common.mk

Adam Wujek's avatar
Adam Wujek committed
6 7
all: kernel lib tools

8
DIRS = kernel lib tools
Adam Wujek's avatar
Adam Wujek committed
9

10
$(SPEC_SW_ABS):
11 12
kernel:
lib:
Adam Wujek's avatar
Adam Wujek committed
13 14
tools: lib

15 16
DESTDIR ?= /usr/local

Adam Wujek's avatar
Adam Wujek committed
17
.PHONY: all clean modules install modules_install $(DIRS)
18

19
install modules_install:
20

Adam Wujek's avatar
Adam Wujek committed
21
all clean modules install modules_install: $(DIRS)
22

Adam Wujek's avatar
Adam Wujek committed
23 24 25 26
clean: TARGET = clean
modules: TARGET = modules
install: TARGET = install
modules_install: TARGET = modules_install
27

28

Adam Wujek's avatar
Adam Wujek committed
29 30
$(DIRS):
	$(MAKE) -C $@ $(TARGET)