source: trunk/src/Makefile @ 91

Last change on this file since 91 was 90, checked in by sam, 11 years ago

Change the Video class into an interface, implemented by SdlVideo and,
soon, GtkVideo.

File size: 537 bytes
Line 
1
2COMMON = test-map.cpp \
3      game.cpp tiler.cpp tileset.cpp scene.cpp \
4      font.cpp layer.cpp map.cpp joystick.cpp
5TEST_SRC = test-map.cpp sdlvideo.cpp $(COMMON)
6EDITOR_SRC = editor.cpp gtkvideo.cpp $(COMMON)
7
8all: test-map
9
10test-map: $(TEST_SRC:%.cpp=%.o)
11        g++ -g -Wall -O3 $^ -o $@ `pkg-config --libs sdl gl SDL_image`
12
13editor-map: $(EDITOR_SRC:%.cpp=%.o)
14        g++ -g -Wall -O3 $^ -o $@ `pkg-config --libs sdl gl SDL_image`
15
16%.o: %.cpp
17        g++ -g -Wall -O3 -c $^ -o $@ `pkg-config --cflags sdl gl SDL_image`
18
19clean:
20        rm -f *.o test-map
21
Note: See TracBrowser for help on using the repository browser.