1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00
freebsd-ports/graphics/wildmagic/files/patch-LibPhysics_makefile.wm4
2007-06-01 21:35:51 +00:00

21 lines
732 B
Plaintext

--- LibPhysics/makefile.wm4.orig Thu May 31 18:08:03 2007
+++ LibPhysics/makefile.wm4 Thu May 31 18:19:51 2007
@@ -1,3 +1,8 @@
+OBJDIR := $(CFG)
+LIBSH := ../SDK/Library/$(CFG)/libWm4Physics.so.0
+LIBSO := ../SDK/Library/$(CFG)/libWm4Physics.so
+SHLIBLDFLAGS = -shared
+
build :
@mkdir -p ../SDK/Include
@mkdir -p ../SDK/Library/$(CFG)
@@ -7,6 +12,8 @@
cd LCPSolver ; make -f ../makeprj.wm4 CFG=$(CFG) SYS=$(SYS)
cd ParticleSystem ; make -f ../makeprj.wm4 CFG=$(CFG) SYS=$(SYS)
cd RigidBody ; make -f ../makeprj.wm4 CFG=$(CFG) SYS=$(SYS)
+ $(CC) $(SHLIBLDFLAGS) -o $(LIBSH) $(OBJDIR)/*.o
+ ln -sf $(LIBSH) $(LIBSO)
clean :
cd Intersection ; make clean -f ../makeprj.wm4 CFG=$(CFG) SYS=$(SYS)