diff options
Diffstat (limited to 'project')
-rw-r--r-- | project/arch.mk | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/project/arch.mk b/project/arch.mk index 6eb9f20..9bb0f43 100644 --- a/project/arch.mk +++ b/project/arch.mk @@ -1,5 +1,7 @@ ifeq ($(OS),midipix) +CFLAGS_CONFIG += -I\$(PROJECT_DIR)/include + src/env/__libc_start_main.lo: CFLAGS_SHARED += -USHARED SHARED_OBJS += crt/$(ARCH)/crtn.o @@ -20,4 +22,13 @@ LDFLAGS_CONFIG += -Wl,--exclude-symbols=_IO_putc LDFLAGS_CONFIG += -Wl,--exclude-symbols=_IO_putc_unlocked LDFLAGS_CONFIG += -Wl,--exclude-symbols=___errno_location +TARGET_SYS_HEADERS = \ + $(PROJECT_DIR)/include/sys/unwind.h \ + +install-headers: install-target-sys-headers + endif + +install-target-sys-headers: $(TARGET_SYS_HEADERS) + mkdir -p $(DESTDIR)$(INCLUDEDIR)/sys + cp -p $(TARGET_SYS_HEADERS) $(DESTDIR)$(INCLUDEDIR)/sys |