You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

42 line
1.2 KiB

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