blob: 28840402b636f82abdfc4f17185e9cfa55db93e2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# MIT License, Copyright (c) 2020 Marvin Borner
CFLAGS = $(CFLAGS_DEFAULT) -I$(LIBS)/ -I$(LIBS)/libc/inc/ -DUSER
LDFLAGS = --section-start=.text=0x42000000 -L$(BUILD)
DIRS = $(wildcard */.)
ifeq ($(CONFIG_USER_PIE), true)
LDFLAGS += -pie -no-dynamic-linker
CFLAGS += -pie -fPIE -fPIC
endif
export
all: $(DIRS)
$(DIRS):
@mkdir -p $(BUILD)/apps/
@$(MAKE) --no-print-directory -C $@
@$(MAKE) clean --no-print-directory -C $@
.PHONY: all $(DIRS)
|