ld33_umonster

diff Makefile @ 3:93ff21458a16

fixed stuff
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 23 Aug 2015 02:51:39 +0300
parents 4a6683050e29
children 92d662deb66e
line diff
     1.1 --- a/Makefile	Sat Aug 22 23:55:21 2015 +0300
     1.2 +++ b/Makefile	Sun Aug 23 02:51:39 2015 +0300
     1.3 @@ -7,13 +7,23 @@
     1.4  
     1.5  sys = $(shell uname -s)
     1.6  
     1.7 -CFLAGS = -pedantic -Wall -g
     1.8 +warn = -pedantic -Wall -Wno-format-extra-args
     1.9 +dbg = -g
    1.10 +opt = -O0
    1.11 +
    1.12 +CFLAGS = $(warn) $(dbg) $(opt)
    1.13  CXXFLAGS = $(CFLAGS)
    1.14 -LDFLAGS = $(libgl_$(sys)) -lvmath -limago -lpsys -lanim -lm
    1.15 +LDFLAGS = $(libgl) -lvmath -limago -lpsys -lanim -lm
    1.16  
    1.17 -libgl_Linux = -lGL -lGLU -lglut -lGLEW
    1.18 -libgl_Darwin = -framework OpenGL -framework GLUT -lGLEW
    1.19 +ifeq ($(sys), Darwin)
    1.20 +	libgl = -framework OpenGL -framework GLUT -lGLEW
    1.21 +	warn += -Wno-deprecated-declarations
    1.22 +else
    1.23 +	libgl = -lGL -lGLU -lglut -lGLEW
    1.24 +endif
    1.25  
    1.26 +.PHONY: all
    1.27 +all: $(bin)
    1.28  
    1.29  $(bin): $(obj)
    1.30  	$(CXX) -o $@ $(obj) $(LDFLAGS)