Skip to content
This repository was archived by the owner on Oct 1, 2019. It is now read-only.

Commit e275292

Browse files
committed
make: Allow compiling without a pre-installed SDL2
1 parent 70b467f commit e275292

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

SDL2_gfx-1.0.4-wiiu/Makefile.wiiu

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ SOURCES = \
1212
SDL2_rotozoom.c
1313

1414
OBJECTS = $(shell echo $(SOURCES) | sed -e 's,\.c,\.o,g')
15-
INCLUDE = -I$(WUT_ROOT)/include -I$(PORTLIBS)/include -I$(PORTLIBS)/include/SDL2
15+
INCLUDE = -I$(WUT_ROOT)/include -I$(PORTLIBS)/include -I$(BASEDIR)/../SDL2-wiiu/include
1616

1717
#---------------------------------------------------------------------------------
1818
# Compile flags
@@ -44,4 +44,4 @@ clean:
4444
include $(WUT_ROOT)/share/wut.mk
4545
LDFLAGS += -L$(DEVKITPRO)/portlibs/ppc/lib
4646
CFLAGS += -I$(DEVKITPRO)/portlibs/ppc/include
47-
CXXFLAGS += -I$(DEVKITPRO)/portlibs/ppc/include
47+
CXXFLAGS += -I$(DEVKITPRO)/portlibs/ppc/include

SDL2_image-2.0.3-wiiu/Makefile.wiiu

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ SOURCES = \
2525
IMG_xxx.c
2626

2727
OBJECTS = $(shell echo $(SOURCES) | sed -e 's,\.c,\.o,g')
28-
INCLUDE = -I$(WUT_ROOT)/include -I$(PORTLIBS)/include -I$(PORTLIBS)/include/SDL2
28+
INCLUDE = -I$(WUT_ROOT)/include -I$(PORTLIBS)/include -I$(BASEDIR)/../SDL2-wiiu/include
2929

3030
#---------------------------------------------------------------------------------
3131
# Compile flags
@@ -60,4 +60,4 @@ clean:
6060
include $(WUT_ROOT)/share/wut.mk
6161
LDFLAGS += -L$(DEVKITPRO)/portlibs/ppc/lib
6262
CFLAGS += -I$(DEVKITPRO)/portlibs/ppc/include
63-
CXXFLAGS += -I$(DEVKITPRO)/portlibs/ppc/include
63+
CXXFLAGS += -I$(DEVKITPRO)/portlibs/ppc/include

SDL2_mixer-2.0.2-wiiu/Makefile.wiiu

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ TARGET = libSDL2_mixer.a
88
SOURCES = $(wildcard ./*.c)
99

1010
OBJECTS = $(SOURCES:.c=.o)
11-
INCLUDE = -I$(WUT_ROOT)/include -I$(PORTLIBS)/include -I$(PORTLIBS)/include/SDL2
11+
INCLUDE = -I$(WUT_ROOT)/include -I$(PORTLIBS)/include -I$(BASEDIR)/../SDL2-wiiu/include
1212

1313
#---------------------------------------------------------------------------------
1414
# Compile flags
@@ -41,4 +41,4 @@ clean:
4141
include $(WUT_ROOT)/share/wut.mk
4242
LDFLAGS += -L$(DEVKITPRO)/portlibs/ppc/lib
4343
CFLAGS += -I$(DEVKITPRO)/portlibs/ppc/include
44-
CXXFLAGS += -I$(DEVKITPRO)/portlibs/ppc/include
44+
CXXFLAGS += -I$(DEVKITPRO)/portlibs/ppc/include

SDL2_ttf-2.0.14-wiiu/Makefile.wiiu

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ SOURCES = \
99
SDL_ttf.c
1010

1111
OBJECTS = $(shell echo $(SOURCES) | sed -e 's,\.c,\.o,g')
12-
INCLUDE = -I$(WUT_ROOT)/include -I$(PORTLIBS)/include -I$(PORTLIBS)/include/SDL2 -I$(PORTLIBS)/include/freetype2
12+
INCLUDE = -I$(WUT_ROOT)/include -I$(PORTLIBS)/include -I$(BASEDIR)/../SDL2-wiiu/include -I$(PORTLIBS)/include/freetype2
1313

1414
#---------------------------------------------------------------------------------
1515
# Compile flags
@@ -41,4 +41,4 @@ clean:
4141
include $(WUT_ROOT)/share/wut.mk
4242
LDFLAGS += -L$(DEVKITPRO)/portlibs/ppc/lib
4343
CFLAGS += -I$(DEVKITPRO)/portlibs/ppc/include
44-
CXXFLAGS += -I$(DEVKITPRO)/portlibs/ppc/include
44+
CXXFLAGS += -I$(DEVKITPRO)/portlibs/ppc/include

0 commit comments

Comments
 (0)