Blame project/arch.mk

9fd191
ifeq ($(OS),midipix)
9fd191
d29346
CFLAGS_CONFIG  += -I\$(PROJECT_DIR)/include
d29346
9fd191
src/env/__libc_start_main.lo: CFLAGS_SHARED += -USHARED
9fd191
ddbccb
SHARED_OBJS    += crt/$(ARCH)/crtn.o
ddbccb
fb33f1
LDFLAGS_CONFIG += -Wl,--exclude-symbols=_dlstart
fb33f1
LDFLAGS_CONFIG += -Wl,--exclude-symbols=__syscall_vtbl
fb33f1
LDFLAGS_CONFIG += -Wl,--exclude-symbols=__ldso_vtbl
fb33f1
LDFLAGS_CONFIG += -Wl,--exclude-symbols=__psx_vtbl
fb33f1
LDFLAGS_CONFIG += -Wl,--exclude-symbols=__teb_sys_idx
fb33f1
LDFLAGS_CONFIG += -Wl,--exclude-symbols=__teb_libc_idx
fb33f1
LDFLAGS_CONFIG += -Wl,--exclude-symbols=__vm_lock_impl
fb33f1
LDFLAGS_CONFIG += -Wl,--exclude-symbols=__vm_unlock_impl
fb33f1
LDFLAGS_CONFIG += -Wl,--exclude-symbols=_IO_feof_unlocked
fb33f1
LDFLAGS_CONFIG += -Wl,--exclude-symbols=_IO_ferror_unlocked
fb33f1
LDFLAGS_CONFIG += -Wl,--exclude-symbols=_IO_getc
fb33f1
LDFLAGS_CONFIG += -Wl,--exclude-symbols=_IO_getc_unlocked
fb33f1
LDFLAGS_CONFIG += -Wl,--exclude-symbols=_IO_putc
fb33f1
LDFLAGS_CONFIG += -Wl,--exclude-symbols=_IO_putc_unlocked
e20baa
LDFLAGS_CONFIG += -Wl,--exclude-symbols=___errno_location
fb33f1
d29346
TARGET_SYS_HEADERS = \
65a872
	$(PROJECT_DIR)/include/sys/debug.h \
724fbc
	$(PROJECT_DIR)/include/sys/ldso.h \
d29346
	$(PROJECT_DIR)/include/sys/unwind.h \
d29346
d29346
install-headers: install-target-sys-headers
d29346
808784
headers.tag: $(PROJECT_DIR)/arch/$(ARCH)/atomic.h
808784
headers.tag: $(PROJECT_DIR)/arch/$(ARCH)/peldso.h
808784
headers.tag: $(PROJECT_DIR)/arch/$(ARCH)/psxdbg.h
808784
headers.tag: $(PROJECT_DIR)/arch/$(ARCH)/psxglue.h
808784
headers.tag: $(PROJECT_DIR)/arch/$(ARCH)/psxseh.h
808784
808784
headers.tag: $(PROJECT_DIR)/arch/$(ARCH)/atomic_arch.h
808784
headers.tag: $(PROJECT_DIR)/arch/$(ARCH)/pthread_arch.h
808784
headers.tag: $(PROJECT_DIR)/arch/$(ARCH)/syscall_arch.h
808784
7089bc
else
7089bc
7089bc
CFLAGS_CONFIG  += -fno-asynchronous-unwind-tables
7089bc
9fd191
endif
d29346
d29346
install-target-sys-headers: $(TARGET_SYS_HEADERS)
d29346
	mkdir -p $(DESTDIR)$(INCLUDEDIR)/sys
d29346
	cp    -p $(TARGET_SYS_HEADERS)       $(DESTDIR)$(INCLUDEDIR)/sys
fe59d4
fe59d4
fe59d4
fe59d4
# fallback alltypes.sed
fe59d4
build/alltypes.sed:
fe59d4
	touch $@
fe59d4
fe59d4
clean-alltypes-sed:
fe59d4
	rm -f build/alltypes.sed
fe59d4
fe59d4
clean:	clean-alltypes-sed
fe59d4
fe59d4
.PHONY:	clean-alltypes-sed