Debian Codegraph @

Makefile

raw symbols ◀ ▶ SCIP
3 Debian patches touch this file
1 MACHINE= $(shell uname -s)
•2 OBJFILES := $(patsubst %.cpp,%.o,$(sort $(wildcard *.cpp)))
3
4 ifeq ($(MACHINE),Darwin)
5 INCLUDES = -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/SDL_image.framework/Headers -I/Library/Frameworks/SDL_mixer.framework/Headers -I/Library/Frameworks/SDL_ttf.framework/Headers -I/System/Library/Frameworks/OpenGL.framework/Headers
6 LIBS = -m32 -framework SDL -framework SDL_image -framework SDL_mixer -framework SDL_ttf -framework Cocoa -framework OpenGL
7
8 # SDL isn't in a great state on 64-bit Macs, so force 32-bit for now
9 CXXFLAGS = -g -c -m32 -Wno-deprecated
10
11 # to compile on OS X you need to include this Objective C file
12 OSXCOMPAT = SDLMain.m
13 else
14 INCLUDES = `sdl-config --cflags` -I/usr/X11R6/include
15 LIBS = `sdl-config --libs` -lGL -lGLU -lSDL_mixer -lSDL_ttf -lSDL_gfx -lSDL_image
•16 CXXFLAGS += -g -c -Wno-deprecated
17 OSXCOMPAT =
18 endif
19
•20 # enable c++11
21 CXXFLAGS += -std=c++11
22
23 # object files have corresponding source files
24 CXX = g++
25
26 all: brainparty
27
28 brainparty: $(OBJFILES)
•29 $(CXX) $(LDFLAGS) $(OBJFILES) $(INCLUDES) $(LIBS) $(OSXCOMPAT) -o brainparty
30
31 %.o: %.cpp
•32 $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(INCLUDES) -o $@ $<
33
34 clean:
35 rm -f brainparty *.o