From 9dc603d405bae5a2b55dd5c54a173c588d7f0f98 Mon Sep 17 00:00:00 2001 From: Themaister Date: Fri, 19 Aug 2011 14:35:09 +0200 Subject: [PATCH] Update Makefile for freetype. --- Makefile.win64 | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Makefile.win64 b/Makefile.win64 index ef6b8095ca..e0a47aab16 100644 --- a/Makefile.win64 +++ b/Makefile.win64 @@ -9,7 +9,7 @@ CXX = g++ HAVE_DINPUT = 1 HAVE_SDL = 1 HAVE_XML = 0 -HAVE_FREETYPE = 0 +HAVE_FREETYPE = 1 HAVE_XAUDIO = 0 HAVE_DSOUND = 1 HAVE_RSOUND = 0 @@ -27,6 +27,12 @@ LDFLAGS = -L. -static-libgcc -s SDL_LIBS = -lSDL SDL_CFLAGS = -ISDL +ifeq ($(HAVE_XML), 1) + OBJ += gfx/shader_glsl.o gfx/image.o gfx/snes_state.o sha256.o cheats.o + DEFINES += -Ilibxml2 -DHAVE_XML -DLIBXML_STATIC + LIBS += -lxml2 -lz +endif + ifeq ($(HAVE_SDL), 1) OBJ += gfx/sdl.o gfx/gl.o input/sdl.o audio/sdl.o fifo_buffer.o LIBS += $(SDL_LIBS) -lopengl32 @@ -56,12 +62,6 @@ ifeq ($(HAVE_RSOUND), 1) LIBS += -lrsound endif -ifeq ($(HAVE_XML), 1) - OBJ += gfx/shader_glsl.o gfx/image.o gfx/snes_state.o sha256.o cheats.o - DEFINES += $(XML_CFLAGS) -DHAVE_XML -DLIBXML_STATIC - LIBS += -lxml2 -lz -lws2_32 -endif - ifeq ($(HAVE_DYLIB), 1) DEFINES += -DHAVE_DYLIB endif @@ -75,7 +75,7 @@ endif ifeq ($(HAVE_FREETYPE), 1) OBJ += gfx/fonts.o DEFINES += -DHAVE_FREETYPE -Ifreetype2 - LIBS += -lz -lfreetype6 + LIBS += -lfreetype-6 endif ifeq ($(DYNAMIC), 1) @@ -115,7 +115,7 @@ CFLAGS = -Wall -O3 -std=gnu99 -I. all: $(TARGET) $(JTARGET) $(TARGET): $(OBJ) - $(Q)$(CXX) -o $@ $(OBJ) $(LIBS) $(LDFLAGS) + $(Q)$(CXX) -o $@ $(LDFLAGS) $(OBJ) $(LIBS) @$(if $(Q), $(shell echo echo LD $@),) %.o: %.c