Source reconstructed at patch state 2 of 3 — not the installed (fully patched) source.
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 |
# object files have corresponding source files |
| 21 |
CXX = g++ |
| 22 |
|
| 23 |
all: brainparty |
| 24 |
|
| 25 |
brainparty: $(OBJFILES) |
| 26 |
$(CXX) $(LDFLAGS) $(OBJFILES) $(INCLUDES) $(LIBS) $(OSXCOMPAT) -o brainparty |
| 27 |
|
| 28 |
%.o: %.cpp |
| 29 |
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(INCLUDES) -o $@ $< |
| 30 |
|
| 31 |
clean: |
| 32 |
rm -f brainparty *.o |