Initial Wii U port attempt

This commit is contained in:
Ty3r0X 2023-12-07 11:40:22 +02:00
parent 1bf8a01ac5
commit bc138f7a7b
No known key found for this signature in database
GPG Key ID: 1987C830BBC99F38
2 changed files with 11 additions and 3 deletions

View File

@ -1,4 +1,10 @@
.SUFFIXES:
ifeq ($(strip $(DEVKITPRO)),)
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>/devkitpro")
endif
include $(DEVKITPRO)/wut/share/wut_rules
include config.mk
OBJ := $(SRC:.c=.o)

View File

@ -17,15 +17,16 @@ SRC :=\
src/init.c \
src/main.c
LIBDIR :=
LIBDIR := $(PORTLIBS) $(WUT_ROOT)
LIB :=\
c\
SDL2\
wut
INCDIR :=\
src/
OUT := project
OUT := project.rpx
# Conditionals / Appends
LDFLAGS +=\
@ -33,7 +34,8 @@ LDFLAGS +=\
$(addprefix -l,${LIB})
CFLAGS +=\
$(addprefix -I,${INCDIR})
$(addprefix -I,${INCDIR})\
$(INCLUDE) -D__WIIU__ -D__WUT__
ifeq (${DEBUG},1)
CFLAGS += -g