summaryrefslogtreecommitdiff
path: root/graphics/wildmagic/files/patch-LibRenderers_SoftRenderer_makefile.wm4
blob: 781b2dcbef3f233f2a5f71c046c4e79acb261cea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- LibRenderers/SoftRenderer/makefile.wm4.orig	Thu May 31 21:57:37 2007
+++ LibRenderers/SoftRenderer/makefile.wm4	Thu May 31 22:08:12 2007
@@ -38,7 +38,7 @@
 ifeq (Debug,$(findstring Debug,$(CFG)))
 CFLAGS += -g -D_DEBUG
 else
-CFLAGS += -O2 -DNDEBUG
+CFLAGS += -DNDEBUG
 endif
 
 ifeq (Memory,$(findstring Memory,$(CFG)))
@@ -51,9 +51,14 @@
 SRC := $(notdir $(SRC))
 OBJ := $(SRC:%.cpp=$(CFG)/%.o) $(SRC:%.c=$(CFG)/%.o)
 LIB := ../../SDK/Library/$(CFG)/libWm4SoftRenderer.a
+LIBSH := ../../SDK/Library/$(CFG)/libWm4SoftRenderer.so.0
+LIBSO := ../../SDK/Library/$(CFG)/libWm4SoftRenderer.so
+SHLIBLDFLAGS = -shared
 
 build : $(OBJ)
 	$(AR) $(ARFLAGS) $(LIB) $(CFG)/*.o
+	$(CC) $(SHLIBLDFLAGS) -o $(LIBSH) $(CFG)/*.o
+	ln -sf $(LIBSH) $(LIBSO)
 	cp -fp $(INC) $(INCDIR)
 
 $(CFG)/%.o : %.cpp