blob: 3fad153eaa8f1bdcce4521cf17eb3ff96d390f82 (
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
|
# This Makefile is designed to be invoked with the -I argument set to
# the location of the "pk.mk" for the build
include img_defs.mk
include pkkernelfiles.mk
ifeq "$(PK_TIMER_SUPPORT)" "1"
PK_OBJECTS += ${PK-TIMER-C-SOURCES:.c=.o}
endif
ifeq "$(PK_THREAD_SUPPORT)" "1"
PK_OBJECTS += ${PK-THREAD-C-SOURCES:.c=.o}
endif
OBJS := $(addprefix $(OBJDIR)/, $(PK_OBJECTS))
all: $(OBJS)
$(OBJS) $(OBJS:.o=.d): | $(OBJDIR)
$(OBJDIR):
mkdir -p $(OBJDIR)
ifneq ($(MAKECMDGOALS),clean)
include $(OBJS:.o=.d)
endif
|