X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMakefile.am;h=c10b58660c566f214cd5f2be93b85b76451373b6;hp=a026f96264b8f3e28c4c9dffe4cf547cfe2ae9a1;hb=bffc879fc8ee8167bb123310d39fad4e2f426ffd;hpb=79b5f738f2e38acb60cda7e09f54802933a17105 diff --git a/src/Makefile.am b/src/Makefile.am index a026f96..c10b586 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,58 +1,126 @@ -noinst_LIBRARIES = libdc.a - -libdc_a_SOURCES = \ - ConvertUTF.c \ - ConvertUTF.h \ - deserializer.cc \ - deserializer.hh \ - dispatcher.cc \ - dispatcher.hh \ - engine.cc \ - engine.hh \ - fastevents.c \ - fastevents.h \ - math.cc \ - math.hh \ - matrix.hh \ - opengl.hh \ - quaternion.hh \ - random.cc \ - random.hh \ - rectangle.cc \ - rectangle.hh \ - serializable.cc \ - serializable.hh \ - serializer.cc \ - serializer.hh \ - settings.cc \ - settings.hh \ - singleton.hh \ - stringtools.cc \ - stringtools.hh \ - texture.cc \ - texture.hh \ - thread.hh \ - timer.cc \ - timer.hh \ - vector.hh \ - video.cc \ - video.hh \ - $(ENDLIST) - -libdc_a_CPPFLAGS = -I/usr/include/SDL -I$(top_srcdir)/yajl/src -O3 -#libdc_a_LDFLAGS = -lstdc++ -lSDL_image -lSDL_sound -libdc_a_LIBADD = $(top_srcdir)/yajl/libyajl.a - - -bin_PROGRAMS = yoink - -yoink_SOURCES = \ - YoinkApp.cc \ - YoinkApp.hh \ - $(ENDLIST) - -yoink_CPPFLAGS = -I/usr/include/SDL -O3 -#yoink_LDFLAGS = -lstdc++ -lSDL_image -lSDL_sound -yoink_LDADD = libdc.a ../yajl/libyajl.a +# +# Yoink +# Process this file with automake to produce a Makefile. +# + + +# +# libmoof.a +#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +noinst_LIBRARIES = libmoof.a + +libmoof_a_SOURCES = \ + Moof/Aabb.cc \ + Moof/Aabb.hh \ + Moof/Camera.cc \ + Moof/Camera.hh \ + Moof/ConvertUTF.c \ + Moof/ConvertUTF.h \ + Moof/Cullable.hh \ + Moof/Dispatcher.cc \ + Moof/Dispatcher.hh \ + Moof/Drawable.hh \ + Moof/Engine.cc \ + Moof/Engine.hh \ + Moof/Entity.hh \ + Moof/Event.hh \ + Moof/Exception.hh \ + Moof/Frustum.cc \ + Moof/Frustum.hh \ + Moof/Hash.cc \ + Moof/Hash.hh \ + Moof/Interpolator.hh \ + Moof/Layer.hh \ + Moof/Library.hh \ + Moof/Log.cc \ + Moof/Log.hh \ + Moof/Math.hh \ + Moof/Octree.hh \ + Moof/OpenGL.hh \ + Moof/Plane.cc \ + Moof/Plane.hh \ + Moof/Random.cc \ + Moof/Random.hh \ + Moof/Rectangle.cc \ + Moof/Rectangle.hh \ + Moof/Resource.cc \ + Moof/Resource.hh \ + Moof/RigidBody.hh \ + Moof/Script.hh \ + Moof/Settings.cc \ + Moof/Settings.hh \ + Moof/Sound.cc \ + Moof/Sound.hh \ + Moof/Sphere.cc \ + Moof/Sphere.hh \ + Moof/StringTools.cc \ + Moof/StringTools.hh \ + Moof/Texture.cc \ + Moof/Texture.hh \ + Moof/Thread.hh \ + Moof/Timer.cc \ + Moof/Timer.hh \ + Moof/Transition.hh \ + Moof/Video.cc \ + Moof/Video.hh \ + Moof/fastevents.c \ + Moof/fastevents.h \ + $(ENDLIST) + +libmoof_a_CPPFLAGS = -I$(top_srcdir)/src/Moof + +EXTRA_DIST = Moof/cml Moof/stlplus + + +# +# yoink +#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +bin_PROGRAMS = yoink + +yoink_SOURCES = \ + Animation.cc \ + Animation.hh \ + Character.cc \ + Character.hh \ + GameLayer.cc \ + GameLayer.hh \ + Heroine.cc \ + Heroine.hh \ + Hud.cc \ + Hud.hh \ + MainLayer.cc \ + MainLayer.hh \ + Scene.cc \ + Scene.hh \ + Tilemap.cc \ + Tilemap.hh \ + TilemapFont.cc \ + TilemapFont.hh \ + TitleLayer.cc \ + TitleLayer.hh \ + Typesetter.cc \ + Typesetter.hh \ + version.h \ + $(ENDLIST) + +if WIN32 +yoink_SOURCES += yoink.rc yoink.ico +.rc.o: + @WINDRES@ -o $@ -i $< +endif + +yoink_CPPFLAGS = -I$(top_srcdir)/src/Moof +yoink_LDADD = libmoof.a + + +YOINK_ENVIRONMENT = YOINK_DATADIR="$(top_srcdir)/data" + +run: all + $(YOINK_ENVIRONMENT) ./yoink $(YOINK_OPTS) + +debug: all + $(YOINK_ENVIRONMENT) gdb ./yoink