summaryrefslogtreecommitdiff
path: root/graphics/wildmagic/files/patch-LibImagics_makefile.wm4
blob: a829c835108ad119bdbeb31c846bf136917d0b52 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- LibImagics/makefile.wm4.orig	Thu May 31 18:08:03 2007
+++ LibImagics/makefile.wm4	Thu May 31 18:17:40 2007
@@ -1,3 +1,8 @@
+OBJDIR := $(CFG)
+LIBSH := ../SDK/Library/$(CFG)/libWm4Imagics.so.0
+LIBSO := ../SDK/Library/$(CFG)/libWm4Imagics.so
+SHLIBLDFLAGS = -shared
+
 build :
 	@mkdir -p ../SDK/Include
 	@mkdir -p ../SDK/Library/$(CFG)
@@ -9,6 +14,8 @@
 	cd Images            ; make -f ../makeprj.wm4 CFG=$(CFG) SYS=$(SYS)
 	cd RasterDrawing     ; make -f ../makeprj.wm4 CFG=$(CFG) SYS=$(SYS)
 	cd Segmenters        ; make -f ../makeprj.wm4 CFG=$(CFG) SYS=$(SYS)
+	$(CC) $(SHLIBLDFLAGS) -o $(LIBSH) $(OBJDIR)/*.o
+	ln -sf $(LIBSH) $(LIBSO)
 
 clean :
 	cd BinaryOperations  ; make clean -f ../makeprj.wm4 CFG=$(CFG) SYS=$(SYS)