|
|
26e14f |
CFLAGS_SHARED_ATTR += -DNTUX_PRE_ALPHA -DNTUX_EXPORT
|
|
|
26e14f |
CFLAGS_STATIC_ATTR += -DNTUX_PRE_ALPHA -DNTUX_STATIC
|
|
|
26e14f |
CFLAGS_APP_ATTR += -DNTUX_APP
|
|
|
26e14f |
|
|
|
26e14f |
CFLAGS_CONFIG += -ffreestanding
|
|
|
26e14f |
CFLAGS_CONFIG += -D_MIDIPIX_FREESTANDING -D__NT$(HOST_BITS)
|
|
|
26e14f |
CFLAGS_CONFIG += -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__
|
|
|
26e14f |
CFLAGS_CONFIG += -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__
|
|
|
26e14f |
|
|
|
407aec |
ifeq ($(ALL_STATIC),yes)
|
|
|
407aec |
CFLAGS_CONFIG += -DNTUX_ALL_STATIC
|
|
|
407aec |
endif
|
|
|
407aec |
|
|
|
26e14f |
src/driver/ntux_driver_ctx.o: version.tag
|
|
|
26e14f |
src/driver/ntux_driver_ctx.lo: version.tag
|
|
|
26e14f |
|
|
|
26e14f |
LDFLAGS_COMMON += -Wl,--entry -Wl,$(HOST_UNDERSCORE)$(PACKAGE)_entry_point
|
|
|
26e14f |
LDFLAGS_COMMON += -nostdlib
|
|
|
26e14f |
|
|
|
26e14f |
LDFLAGS_SHARED += -lpsxscl
|
|
|
26e14f |
LDFLAGS_SHARED += -Wl,--exclude-all-symbols
|
|
|
26e14f |
|
|
|
589634 |
LDFLAGS_APP += -lldso -lpsxscl
|
|
|
26e14f |
LDFLAGS_STATIC += -static -lpsxscl -lntapi -lpemagine -ldalist
|
|
|
25015c |
|
|
|
25015c |
clbuild-bat:
|
|
|
25015c |
@$(PROJECT_DIR)/project/clbuild.sh \
|
|
|
25015c |
--cc=$(CC) \
|
|
|
25015c |
--ar=$(AR) \
|
|
|
25015c |
--source-dir=$(SOURCE_DIR) \
|
|
|
25015c |
--project-dir=$(PROJECT_DIR) \
|
|
|
25015c |
--sysroot=$(CFLAGS_SYSROOT) \
|
|
|
25015c |
--version-header=ntux_version.h \
|
|
|
25015c |
--version-macro=NTUX_GIT_VERSION \
|
|
|
25015c |
--link-target=app
|
|
|
0794af |
|
|
|
0794af |
install-app-extras:
|
|
|
0794af |
mkdir -p $(DESTDIR)$(BINDIR)
|
|
|
0794af |
|
|
|
0794af |
rm -f bin/$(NICKNAME).stat$(OS_APP_SUFFIX).tmp
|
|
|
0794af |
rm -f bin/$(NICKNAME).spawn$(OS_APP_SUFFIX).tmp
|
|
|
0794af |
rm -f bin/$(NICKNAME).strace$(OS_APP_SUFFIX).tmp
|
|
|
0794af |
|
|
|
0794af |
ln -s $(NICKNAME)$(OS_APP_SUFFIX) bin/$(NICKNAME).stat$(OS_APP_SUFFIX).tmp
|
|
|
0794af |
ln -s $(NICKNAME)$(OS_APP_SUFFIX) bin/$(NICKNAME).spawn$(OS_APP_SUFFIX).tmp
|
|
|
0794af |
ln -s $(NICKNAME)$(OS_APP_SUFFIX) bin/$(NICKNAME).strace$(OS_APP_SUFFIX).tmp
|
|
|
0794af |
|
|
|
0794af |
mv bin/$(NICKNAME).stat$(OS_APP_SUFFIX).tmp $(DESTDIR)$(BINDIR)/$(NICKNAME).stat$(OS_APP_SUFFIX)
|
|
|
0794af |
mv bin/$(NICKNAME).spawn$(OS_APP_SUFFIX).tmp $(DESTDIR)$(BINDIR)/$(NICKNAME).spawn$(OS_APP_SUFFIX)
|
|
|
0794af |
mv bin/$(NICKNAME).strace$(OS_APP_SUFFIX).tmp $(DESTDIR)$(BINDIR)/$(NICKNAME).strace$(OS_APP_SUFFIX)
|