summaryrefslogtreecommitdiff
path: root/graphics/wildmagic/files/patch-LibGraphics_makefile
blob: 4cf4eee7eb871fae1477b815063b9951e861bbe0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- LibGraphics/makefile.wm4.orig	Thu May 31 18:08:02 2007
+++ LibGraphics/makefile.wm4	Thu May 31 18:15:10 2007
@@ -1,3 +1,8 @@
+OBJDIR := $(CFG)
+LIBSH := ../SDK/Library/$(CFG)/libWm4Graphics.so.0
+LIBSO := ../SDK/Library/$(CFG)/libWm4Graphics.so
+SHLIBLDFLAGS = -shared
+
 build :
 	@mkdir -p ../SDK/Include
 	@mkdir -p ../SDK/Library/$(CFG)
@@ -17,6 +22,8 @@
 	cd Sorting            ; make -f ../makeprj.wm4 CFG=$(CFG) SYS=$(SYS)
 	cd Surfaces           ; make -f ../makeprj.wm4 CFG=$(CFG) SYS=$(SYS)
 	cd Terrain            ; make -f ../makeprj.wm4 CFG=$(CFG) SYS=$(SYS)
+	$(CC) $(SHLIBLDFLAGS) -o $(LIBSH) $(OBJDIR)/*.o
+	ln -sf $(LIBSH) $(LIBSO)
 
 clean :
 	cd Collision          ; make clean -f ../makeprj.wm4 CFG=$(CFG) SYS=$(SYS)