Added support for compiling SDL port under MacOSX
This commit is contained in:
parent
f0cea72a19
commit
50028ee642
5
Makefile
5
Makefile
|
@ -1,3 +1,4 @@
|
|||
MACHINE= $(shell uname -s)
|
||||
CC=gcc
|
||||
CPPC=g++
|
||||
CFLAGS=-W -Wall -Wno-unused -O3 -DHAVE_NETINET_IN_H -DHAVE_ARPA_INET_H -DFINAL_VERSION -DBKPT_SUPPORT -DSDL -DSYSCONFDIR="home" -DUSE_OPENGL -DC_CORE
|
||||
|
@ -10,6 +11,10 @@ DEL=rm -f
|
|||
OE=.o
|
||||
OUT=vba
|
||||
|
||||
ifeq ($(MACHINE),Darwin)
|
||||
LFLAGS=-lz -lpng -framework OpenGL `sdl-config --libs`
|
||||
endif
|
||||
|
||||
ifeq ($(PLATFORM),win)
|
||||
ASMFLAGS=-w-orphan-labels -f win32 -O1 -Isrc/hq/asm/
|
||||
LFLAGS=-lz -lpng -lSDL -lwsock32 -lopengl32
|
||||
|
|
|
@ -22,8 +22,13 @@
|
|||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <GL/gl.h>
|
||||
#include <GL/glext.h>
|
||||
#ifdef __APPLE__
|
||||
#include <OpenGL/glu.h>
|
||||
#include <OpenGL/glext.h>
|
||||
#else
|
||||
#include <GL/glu.h>
|
||||
#include <GL/glext.h>
|
||||
#endif
|
||||
|
||||
#include "../AutoBuild.h"
|
||||
|
||||
|
|
Loading…
Reference in New Issue