X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMakefile.am;h=fa6c9814273a2e3e3adc62eacae71a6a217637b0;hp=aeab798dfe4ce2260a775e77037d67749e2378bd;hb=d08114d4e7315636ff62127845150273e0cbf66f;hpb=a4debfe4a5f5d339410788971b698ba00cb7f09c diff --git a/src/Makefile.am b/src/Makefile.am index aeab798..fa6c981 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -7,116 +7,100 @@ # # libmoof.a -#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ noinst_LIBRARIES = libmoof.a +libmoof_a_CPPFLAGS = -I$(top_srcdir)/src/Moof + libmoof_a_SOURCES = \ Moof/Aabb.cc \ Moof/Aabb.hh \ - Moof/Animation.cc \ - Moof/Animation.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/Deserializer.cc \ - Moof/Deserializer.hh \ - Moof/Dispatcher.cc \ - Moof/Dispatcher.hh \ + Moof/Dispatch.cc \ + Moof/Dispatch.hh \ Moof/Drawable.hh \ - Moof/Engine.cc \ - Moof/Engine.hh \ Moof/Entity.hh \ + Moof/Error.hh \ Moof/Event.hh \ - Moof/Exception.hh \ Moof/Frustum.cc \ Moof/Frustum.hh \ - Moof/Hash.cc \ - Moof/Hash.hh \ + Moof/HashTools.cc \ + Moof/HashTools.hh \ + Moof/Image.cc \ + Moof/Image.hh \ Moof/Interpolator.hh \ - Moof/Layer.hh \ + Moof/Line.hh \ Moof/Log.cc \ Moof/Log.hh \ + Moof/Manager.hh \ Moof/Math.hh \ - Moof/Mippleton.hh \ + Moof/ModalDialog.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/Ray.hh \ Moof/Resource.cc \ Moof/Resource.hh \ - Moof/RK4.hh \ + Moof/RigidBody.hh \ Moof/Script.hh \ - Moof/Serializable.cc \ - Moof/Serializable.hh \ - Moof/Serializer.cc \ - Moof/Serializer.hh \ Moof/Settings.cc \ Moof/Settings.hh \ + Moof/Shape.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/Transition.hh \ Moof/Video.cc \ Moof/Video.hh \ + Moof/View.cc \ + Moof/View.hh \ Moof/fastevents.c \ Moof/fastevents.h \ $(ENDLIST) -libmoof_a_SOURCES += \ - Moof/yajl/src/yajl.c \ - Moof/yajl/src/yajl_alloc.c \ - Moof/yajl/src/yajl_alloc.h \ - Moof/yajl/src/yajl_buf.c \ - Moof/yajl/src/yajl_buf.h \ - Moof/yajl/src/yajl_bytestack.h \ - Moof/yajl/src/yajl_encode.c \ - Moof/yajl/src/yajl_encode.h \ - Moof/yajl/src/yajl_gen.c \ - Moof/yajl/src/yajl_lex.c \ - Moof/yajl/src/yajl_lex.h \ - Moof/yajl/src/yajl_parser.c \ - Moof/yajl/src/yajl_parser.h \ - $(ENDLIST) - -libmoof_a_CPPFLAGS = -I$(top_srcdir)/src/Moof -I$(top_srcdir)/src/Moof/yajl/src - -EXTRA_DIST = Moof/cml Moof/stlplus Moof/yajl +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 \ + ErrorHandler.cc \ + ErrorHandler.hh \ GameLayer.cc \ GameLayer.hh \ + GameState.hh \ Heroine.cc \ Heroine.hh \ Hud.cc \ Hud.hh \ - MainLayer.cc \ - MainLayer.hh \ + Main.cc \ + Main.hh \ Scene.cc \ Scene.hh \ TilemapFont.cc \ @@ -125,23 +109,30 @@ yoink_SOURCES = \ TitleLayer.hh \ Typesetter.cc \ Typesetter.hh \ + version.c \ + version.h \ $(ENDLIST) if WIN32 -yoink_SOURCES += yoink.rc yoink.ico +yoink_SOURCES += yoink.rc .rc.o: - @WINDRES@ -o $@ -i $< -endif - -yoink_CPPFLAGS = -I$(top_srcdir)/src/Moof -yoink_LDADD = libmoof.a - - + $(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