summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2014-04-01 21:12:00 -0700
committerMichael Pavone <pavone@retrodev.com>2014-04-01 21:12:00 -0700
commit4468c6074eccd86951fb02d6126b3f4408f1c53e (patch)
treeb9175fee206b874ea8a4333cbe05384df8499bf0 /Makefile
parentc51f057715587f133abe9bfb32d6d453a7af698b (diff)
Make Windows port a little less half-assed
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a0b995f..83f50f1 100644
--- a/Makefile
+++ b/Makefile
@@ -6,8 +6,12 @@ BLASTEM:=blastem.exe
RUNTIME32:=runtime_win.S
CC:=wine gcc.exe
-CFLAGS:=-O2 -std=gnu99 -Wreturn-type -Werror=return-type -Werror=implicit-function-declaration -DDISABLE_OPENGL -I"C:/MinGW/usr/include/SDL"
-LDFLAGS:= -L"C:/MinGW/usr/lib" -lm -lmingw32 -lSDLmain -lSDL -mwindows
+CFLAGS:=-O2 -std=gnu99 -Wreturn-type -Werror=return-type -Werror=implicit-function-declaration -I"C:/MinGW/usr/include/SDL" -DGLEW_STATIC
+LDFLAGS:= -L"C:/MinGW/usr/lib" -lm -lmingw32 -lSDLmain -lSDL
+ifndef NOGL
+LDFLAGS+= -lopengl32 -lglu32
+endif
+LDFLAGS+= -mwindows
CPU:=i686
else
@@ -76,6 +80,11 @@ else
MAINOBJS+= $(Z80OBJS)
endif
+ifdef WINDOWS
+ifndef NOGL
+MAINOBJS+= glew.o
+endif
+endif
all : dis zdis stateview vgmplay blastem