diff --git a/Makefile b/Makefile index 5076965..1e3249b 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,10 @@ .SUFFIXES: + +ifeq ($(strip $(DEVKITPRO)),) +$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=/devkitpro") +endif + +include $(DEVKITPRO)/wut/share/wut_rules include config.mk OBJ := $(SRC:.c=.o) diff --git a/config.mk b/config.mk index 64f44bc..aa0a30d 100644 --- a/config.mk +++ b/config.mk @@ -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