source: trunk/src/Makefile.am @ 92

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

Convert everything to the autotools. Managing source dependencies will be
easier.

File size: 1.2 KB
Line 
1
2noinst_PROGRAMS = test-map editor
3
4noinst_LIBRARIES = libcommon.a
5
6libcommon_a_SOURCES = \
7    game.cpp tiler.cpp tileset.cpp scene.cpp \
8    font.cpp layer.cpp map.cpp joystick.cpp
9libcommon_a_CXXFLAGS = `pkg-config --cflags sdl gl SDL_image`
10
11test_map_SOURCES = test-map.cpp sdlvideo.cpp
12test_map_CXXFLAGS = `pkg-config --cflags sdl gl SDL_image`
13test_map_LDADD = libcommon.a
14test_map_LDFLAGS = `pkg-config --libs sdl gl SDL_image`
15
16editor_SOURCES = editor.cpp gtkvideo.cpp
17editor_CXXFLAGS = `pkg-config --cflags sdl gl SDL_image gtk+-2.0 gtkgl-2.0`
18editor_LDADD = libcommon.a
19editor_LDFLAGS = `pkg-config --libs sdl gl gtk+-2.0 gtkgl-2.0 SDL_image`
20
21#COMMON = $(libcommon_a_SOURCES)
22#
23#TEST_SRC = test-map.cpp sdlvideo.cpp $(COMMON)
24#EDITOR_SRC = editor.cpp gtkvideo.cpp $(COMMON)
25#
26#CPPFLAGS = `pkg-config --cflags sdl gl SDL_image gtk+-2.0 gtkgl-2.0`
27#CXXFLAGS = -g -O3 -Wall \
28#           -Wpointer-arith -Wcast-align -Wcast-qual -Wshadow -Wsign-compare
29#
30#test-map: $(TEST_SRC:%.cpp=%.o)
31#       g++ $(CXXFLAGS) $^ -o $@ `pkg-config --libs sdl gl SDL_image`
32#
33#editor: $(EDITOR_SRC:%.cpp=%.o)
34#       g++ $(CXXFLAGS) $^ -o $@ `pkg-config --libs sdl gl gtk+-2.0 gtkgl-2.0 SDL_image`
35#
36#%.o: %.cpp
37#       g++ -c $^ -o $@ $(CXXFLAGS) $(CPPFLAGS)
38#
39#clean:
40#       rm -f *.o test-map editor
41
Note: See TracBrowser for help on using the repository browser.