Blame project/extras.mk

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
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
26e14f
LDFLAGS_APP		+= -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