forked from unikraft/app-elfloader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
24 lines (20 loc) · 765 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
WITH_ZYDIS ?= n
WITH_LWIP ?= y
WITH_TLSF ?= n
WITH_MUSL ?= n
WITH_NEWLIB ?= n
UK_ROOT ?= $(PWD)/workdir/unikraft
UK_LIBS ?= $(PWD)/workdir/libs
UK_BUILD ?= $(PWD)/workdir/build
UK_PLATS ?= $(PWD)/workdir/plats
LIBS-y := $(UK_LIBS)/libelf
LIBS-$(WITH_ZYDIS) := $(LIBS-y):$(UK_LIBS)/zydis
LIBS-$(WITH_LWIP) := $(LIBS-y):$(UK_LIBS)/lwip
LIBS-$(WITH_TLSF) := $(LIBS-y):$(UK_LIBS)/tlsf
LIBS-$(WITH_MUSL) := $(LIBS-y):$(UK_LIBS)/musl
LIBS-$(WITH_NEWLIB) := $(LIBS-y):$(UK_LIBS)/newlib
PLATS-y :=
all:
@$(MAKE) -C $(UK_ROOT) A=$(PWD) L=$(LIBS-y) O=$(UK_BUILD) P=$(PLATS-y)
$(MAKECMDGOALS):
@$(MAKE) -C $(UK_ROOT) A=$(PWD) L=$(LIBS-y) O=$(UK_BUILD) P=$(PLATS-y) $(MAKECMDGOALS)