X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMakefile.am;h=c9b5dd9bfe79714b2287628b435b4cc128f94a89;hp=c87c4126ffdff48ae4c4b8085882c5e360c93028;hb=7ade2da0367685e098181d7124c9ba145a010626;hpb=e0c0a3b5e7337cde55e520801d2e59e03dc97d9c diff --git a/src/Makefile.am b/src/Makefile.am index c87c412..c9b5dd9 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -11,7 +11,10 @@ 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 \ @@ -29,8 +32,8 @@ libmoof_a_SOURCES = \ Moof/Event.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 \ @@ -40,8 +43,11 @@ libmoof_a_SOURCES = \ Moof/Manager.hh \ Moof/Math.hh \ Moof/ModalDialog.hh \ + Moof/Network.hh \ Moof/Octree.hh \ Moof/OpenGL.hh \ + Moof/Packet.cc \ + Moof/Packet.hh \ Moof/Plane.cc \ Moof/Plane.hh \ Moof/Ray.hh \ @@ -49,9 +55,12 @@ libmoof_a_SOURCES = \ Moof/Resource.hh \ Moof/RigidBody.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 \ @@ -70,8 +79,6 @@ libmoof_a_SOURCES = \ Moof/fastevents.h \ $(ENDLIST) -libmoof_a_CPPFLAGS = -I$(top_srcdir)/src/Moof - EXTRA_DIST = Moof/cml Moof/stlplus @@ -81,6 +88,9 @@ EXTRA_DIST = Moof/cml Moof/stlplus bin_PROGRAMS = yoink +yoink_CPPFLAGS = -I$(top_srcdir)/src/Moof +yoink_LDADD = libmoof.a + yoink_SOURCES = \ Animation.cc \ Animation.hh \ @@ -110,20 +120,25 @@ yoink_SOURCES = \ $(ENDLIST) if WIN32 -yoink_SOURCES += yoink.rc yoink.ico +yoink_SOURCES += yoink.rc .rc.o: - $(AM_V_GEN) $(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) ddd ./yoink + $(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