Added support for compiling SDL port under MacOSX

git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@294 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
mudlord 2008-01-13 03:17:35 +00:00
parent 066f6b9d08
commit 41993af424
2 changed files with 12 additions and 2 deletions

View File

@ -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

View File

@ -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"