first attempt to build on the octane, nosound for now
[summerhack] / Makefile
index 105f352..db3cb97 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,16 +2,17 @@ src = src/sumhack.cpp src/events.cpp
 bin = sumhack-thelab
 
 include src/parts/Makefile-part
-include src/sdlvf/Makefile-part
+#include src/sdlvf/Makefile-part
 
 obj = $(src:.cpp=.o) $(csrc:.c=.o)
 
-opt = -O1
-opt = -g
+opt = -O3
+dbg = -g
+def = -DNO_MUSIC
 incdir = -Isrc/3dengfx/src -Ilibs -Ilibs/png -Ilibs/jpeglib -Ilibs/ogg -Ilibs/vorbis
-CXXFLAGS = -ansi -pedantic -Wall $(opt) $(incdir) -MMD `sdl-config --cflags`
-CFLAGS = -std=c89 -pedantic -Wall $(opt) $(incdir) -MMD `sdl-config --cflags`
-libs = $(libdir) $(libsys) src/3dengfx/lib3dengfx.a `sdl-config --libs` $(libgl) \
+CXXFLAGS = -ansi -pedantic -Wall $(opt) $(dbg) $(incdir) -MMD $(def)
+CFLAGS = -std=c89 -pedantic -Wall $(opt) $(dbg) $(incdir) -MMD $(def)
+libs = $(libdir) $(libsys) src/3dengfx/lib3dengfx.a $(libgl) \
           -lvorbis -logg -ljpeg -lpng -lz -l3ds $(libc)
 
 sys ?= $(shell uname -s | sed 's/MINGW.*/mingw/')
@@ -19,13 +20,13 @@ ifeq ($(sys), mingw)
        obj = $(src:.cpp=.w32.o) $(csrc:.c=.w32.o)
        bin = sumhack-thelab.exe
        libdir = -Llibs/w32
-       libgl = -lopengl32
+       libgl = -lopengl32 -lglut32
        libsys = -lmingw32 -lgdi32 -mconsole
        libc = -lm
 
 else
        libdir = -Llibs
-       libgl = -lGL
+       libgl = -lGL -lglut
        libc = -lm
 endif