Partial merge of the SDL2 branch into trunk
* Mainly get the cleanup of window drawing functions. git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2102 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
13
src/Makefile
13
src/Makefile
@@ -203,7 +203,8 @@ endif
|
||||
LOPT = $(shell sdl-config --libs) -lSDL_image -lpng -ljpeg -lz $(TTFLOPT) -lfreetype -lbe $(LUALOPT)
|
||||
CC = gcc
|
||||
#Append the gcc kind to the objdir (gcc2 or gcc4) to avoid conflicts when switching from one to other.
|
||||
OBJDIR = ../obj/haiku
|
||||
OBJKIND = $(shell gcc -dumpversion)
|
||||
OBJDIR = ../obj/haiku/$(OBJKIND)
|
||||
ZIP = zip
|
||||
|
||||
else
|
||||
@@ -286,8 +287,8 @@ endif
|
||||
LUACOPT =
|
||||
LUALOPT =
|
||||
else
|
||||
LUACOPT = `pkg-config lua --cflags --silence-errors ||pkg-config lua5.1 --cflags --silence-errors ||pkg-config lua-5.1 --cflags`
|
||||
LUALOPT = `pkg-config lua --libs --silence-errors ||pkg-config lua5.1 --libs --silence-errors ||pkg-config lua-5.1 --libs`
|
||||
LUACOPT = $(shell pkg-config lua --cflags --silence-errors ||pkg-config lua5.1 --cflags --silence-errors ||pkg-config lua-5.1 --cflags)
|
||||
LUALOPT = $(shell pkg-config lua --libs --silence-errors ||pkg-config lua5.1 --libs --silence-errors ||pkg-config lua-5.1 --libs)
|
||||
endif
|
||||
endif
|
||||
|
||||
@@ -358,8 +359,8 @@ endif
|
||||
|
||||
# Compiles a regular linux executable for the native platform
|
||||
BIN = ../bin/grafx2
|
||||
COPT = -W -Wall -Wdeclaration-after-statement -std=c99 -c -g `sdl-config --cflags` $(TTFCOPT) $(LUACOPT) $(JOYCOPT) -O$(OPTIM) `pkg-config --cflags libpng`
|
||||
LOPT = `sdl-config --libs` -lSDL_image $(TTFLOPT) `pkg-config --libs libpng` $(LUALOPT) -lm
|
||||
COPT = -W -Wall -Wdeclaration-after-statement -std=c99 -c -g $(shell sdl-config --cflags) $(TTFCOPT) $(LUACOPT) $(JOYCOPT) -O$(OPTIM) $(shell pkg-config --cflags libpng) -D_XOPEN_SOURCE=700
|
||||
LOPT = $(shell sdl-config --libs) -lSDL_image $(TTFLOPT) $(shell pkg-config --libs libpng) $(LUALOPT) -lm
|
||||
CC = gcc
|
||||
OBJDIR = ../obj/unix
|
||||
FCLOPT = -lfontconfig
|
||||
@@ -581,7 +582,7 @@ $(OBJDIR)/winres.o : gfx2.ico
|
||||
|
||||
# Compile the C++ file needed in Haiku to use the API
|
||||
$(OBJDIR)/haiku.o : haiku.cpp
|
||||
g++ -c haiku.cpp -o $(OBJDIR)/haiku.o
|
||||
g++ -c haiku.cpp -o $(OBJDIR)/haiku.o $(COPT) -Wno-multichar
|
||||
|
||||
clean :
|
||||
$(DELCOMMAND) $(OBJ)
|
||||
|
||||
Reference in New Issue
Block a user