X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMakefile.am;h=61be61016885df1ad74557f77e2a17cf15b18503;hp=dfcee15950a51c1fef802e42bbe6c5eb895a945b;hb=85783316365181491a3e3c0c63659972477cebba;hpb=d50942708db230dc5c43b8df89ede45525e1c394 diff --git a/src/Makefile.am b/src/Makefile.am index dfcee15..61be610 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,105 +1,140 @@ -noinst_LTLIBRARIES = libmoof.la - -libmoof_la_SOURCES = \ - Moof/Aabb.cc \ - Moof/Aabb.hh \ - Moof/Animation.cc \ - Moof/Animation.hh \ - Moof/Camera.cc \ - Moof/Camera.hh \ - Moof/ConvertUTF.c \ - Moof/ConvertUTF.h \ - Moof/Cullable.hh \ - Moof/Deserializer.cc \ - Moof/Deserializer.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/Log.cc \ - Moof/Log.hh \ - Moof/Math.hh \ - Moof/Mippleton.hh \ - Moof/Octree.cc \ - 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/RK4.hh \ - Moof/Scene.cc \ - Moof/Scene.hh \ - Moof/Serializable.cc \ - Moof/Serializable.hh \ - Moof/Serializer.cc \ - Moof/Serializer.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/Tilemap.cc \ - Moof/Tilemap.hh \ - Moof/Timer.cc \ - Moof/Timer.hh \ - Moof/Video.cc \ - Moof/Video.hh \ - Moof/fastevents.c \ - Moof/fastevents.h \ - $(ENDLIST) - -libmoof_la_CPPFLAGS = -I$(top_srcdir)/src/Moof -I$(top_srcdir)/yajl/src -libmoof_la_LIBADD = $(top_srcdir)/yajl/libyajl.la - - -bin_PROGRAMS = yoink - -yoink_SOURCES = \ - Character.cc \ - Character.hh \ - Hud.cc \ - Hud.hh \ - TilemapFont.cc \ - TilemapFont.hh \ - Typesetter.cc \ - Typesetter.hh \ - YoinkApp.cc \ - YoinkApp.hh \ - $(ENDLIST) - -yoink_CPPFLAGS = -I$(top_srcdir)/src/Moof -yoink_LDADD = libmoof.la - - -EXTRA_DIST = Moof/cml Moof/stlplus +# +# Yoink +# Process this file with automake to produce a Makefile. +# -YOINK_ENVIRONMENT = YOINK_DATADIR="$(top_srcdir)/data" +# +# libmoof.a +#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +noinst_LIBRARIES = libmoof.a + +libmoof_a_CPPFLAGS = -I$(top_srcdir)/src/moof + +libmoof_a_SOURCES = \ + moof/aabb.cc \ + moof/aabb.hh \ + moof/backend.cc \ + moof/backend.hh \ + moof/camera.cc \ + moof/camera.hh \ + moof/contact.hh \ + moof/ConvertUTF.c \ + moof/ConvertUTF.h \ + moof/cullable.hh \ + moof/dispatcher.cc \ + moof/dispatcher.hh \ + moof/drawable.hh \ + moof/entity.hh \ + moof/event.hh \ + moof/frustum.cc \ + moof/frustum.hh \ + moof/hash.cc \ + moof/hash.hh \ + moof/image.cc \ + moof/image.hh \ + moof/interpolator.hh \ + moof/line.hh \ + moof/log.cc \ + moof/log.hh \ + moof/manager.hh \ + moof/math.hh \ + moof/modal_dialog.hh \ + moof/network.hh \ + moof/opengl.hh \ + moof/packet.cc \ + moof/packet.hh \ + moof/plane.cc \ + moof/plane.hh \ + moof/ray.hh \ + moof/resource.cc \ + moof/resource.hh \ + moof/rigid_body.hh \ + moof/script.hh \ + moof/service.cc \ + moof/service.hh \ + moof/settings.cc \ + moof/settings.hh \ + moof/shape.hh \ + moof/socket.hh \ + moof/sound.cc \ + moof/sound.hh \ + moof/sphere.hh \ + moof/string.cc \ + moof/string.hh \ + moof/texture.cc \ + moof/texture.hh \ + moof/thread.hh \ + moof/timer.cc \ + moof/timer.hh \ + moof/video.cc \ + moof/video.hh \ + moof/view.cc \ + moof/view.hh \ + moof/fastevents.c \ + moof/fastevents.h \ + $(ENDLIST) + +EXTRA_DIST = moof/cml moof/stlplus + + +# +# yoink +#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +bin_PROGRAMS = yoink + +yoink_CPPFLAGS = -I$(top_srcdir)/src/moof +yoink_LDADD = libmoof.a + +yoink_SOURCES = \ + Animation.cc \ + Animation.hh \ + Character.cc \ + Character.hh \ + GameLayer.cc \ + GameLayer.hh \ + GameState.hh \ + Heroine.cc \ + Heroine.hh \ + Hud.cc \ + Hud.hh \ + Main.cc \ + Main.hh \ + Scene.cc \ + Scene.hh \ + TilemapFont.cc \ + TilemapFont.hh \ + TitleLayer.cc \ + TitleLayer.hh \ + Typesetter.cc \ + Typesetter.hh \ + version.c \ + version.h \ + $(ENDLIST) + +if WIN32 +yoink_SOURCES += yoink.rc +.rc.o: + $(WINDRES) -o $@ -i $< +else +YOINK_ENVIRONMENT = YOINK_DATADIR="$(top_srcdir)/data" run: all $(YOINK_ENVIRONMENT) ./yoink $(YOINK_OPTS) debug: all $(YOINK_ENVIRONMENT) gdb ./yoink +endif + +if LINK_SH +yoink$(EXEEXT): $(yoink_OBJECTS) $(yoink_DEPENDENCIES) + @rm -f yoink$(EXEEXT) + @LINK="$(CXXLINK) $(yoink_OBJECTS) $(yoink_LDADD) $(LIBS)"\ + sh $(top_srcdir)/link.sh + +clean-local: + rm -f .link/* +endif