Commit 502ecff7 authored by Maschell's avatar Maschell
Browse files

Fix building and linking

parent 70d079df
......@@ -27,6 +27,7 @@ RAMFS_DIR := resin
#-------------------------------------------------------------------------------
CFLAGS := -g -Wall -O2 -ffunction-sections \
-ffast-math \
`$(PREFIX)pkg-config --cflags SDL2_mixer SDL2_ttf SDL2_image SDL2_gfx` \
$(MACHDEP)
CFLAGS += $(INCLUDE) -D__WIIU__ -D__WUT__ -DUSE_FILE32API -DNOCRYPT -DINPUT_JOYSTICK -DMUSIC -DNETWORK -D_XOPEN_SOURCE -DUSE_RAMFS
......@@ -36,7 +37,7 @@ CXXFLAGS := $(CFLAGS) -std=gnu++14
ASFLAGS := -g $(MACHDEP)
LDFLAGS := -g $(MACHDEP) $(RPXSPECS) -Wl,-Map,$(notdir $*.map)
LIBS := -lSDL2_ttf -lSDL2_mixer -lSDL2_gfx -lSDL2_image -lSDL2 -lfreetype -lpng -lmpg123 -lbz2 -ljpeg -lz -lwut
LIBS := `$(PREFIX)pkg-config --libs SDL2_mixer SDL2_ttf SDL2_image SDL2_gfx`
#-------------------------------------------------------------------------------
# list of directories containing libraries, this must be the top level
......@@ -105,7 +106,7 @@ else
#-------------------------------------------------------------------------------
# romfs
#-------------------------------------------------------------------------------
include $(PWD)/libs/chesto/libs/resinfs/share/romfs-wiiu.mk
include $(TOPDIR)/libs/chesto/libs/resinfs/share/romfs-wiiu.mk
CFLAGS += $(ROMFS_CFLAGS)
CXXFLAGS += $(ROMFS_CFLAGS)
LIBS += $(ROMFS_LIBS)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment