Files
PluralTechnology/service/ptos/ke/Makefile
T
2026-07-10 18:26:29 -04:00

39 lines
872 B
Makefile

#
# Copyright (c) 2026, Chloe M.
# Provided under the BSD-3 clause
#
# Description: Kernel executive build script
# Author: Chloe M.
#
.SILENT:
include ../../mk/ptos.mk
CFILES = $(shell find . -name "*.c")
CFILES += $(shell find ../lib -name "*.c")
CFILES += $(shell find ../xt -name "*.c")
CFILES += $(shell find ../drivers -name "*.c")
CFILES += $(shell find ../mm -name "*.c")
DFILES = $(CFILES:.c=.d)
OFILES = $(CFILES:.c=.o)
CFLAGS = \
$(SYS_CFLAGS) \
-MMD \
-D_KERNEL \
-DPRINTF_DISABLE_SUPPORT_PTRDIFF_T \
-DPRINTF_DISABLE_SUPPORT_FLOAT \
-D_BOOT_PROTO="\"$(PT_BOOT_PROTO)\"" \
-I../xt/flanterm/src \
-I../head \
-I../target \
-I$(PT_PROJECT_ROOT)/sdk/head \
-I$(PT_PROJECT_ROOT)/service/spkg/head/
.PHONY: all
all: $(OFILES)
%.o: %.c
$(PROMPT) "CC" $<
$(SYS_CC) -c $(CFLAGS) $< -o $@