svgtencoder/svgtenc/standalone/group/svgtbinencoderlinux.mk
changeset 38 c811dbf92c53
parent 28 682a0332b10b
--- a/svgtencoder/svgtenc/standalone/group/svgtbinencoderlinux.mk	Tue Jul 06 15:24:03 2010 +0300
+++ b/svgtencoder/svgtenc/standalone/group/svgtbinencoderlinux.mk	Wed Aug 18 10:48:09 2010 +0300
@@ -1,22 +1,6 @@
-#
-# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
-# All rights reserved.
-# This component and the accompanying materials are made available
-# under the terms of "Eclipse Public License v1.0"
-# which accompanies this distribution, and is available
-# at the URL "http://www.eclipse.org/legal/epl-v10.html".
-#
-# Initial Contributors:
-# Nokia Corporation - initial contribution.
-#
-# Contributors:
-#
-# Description:
-#
-
-PROGRAM=/home/nokia/standalone/group/svgtbinencode.exe
-OBJS=/home/nokia/standalone/group
-PARENT_DIR=/home/nokia/standalone/group
+PROGRAM=svgtbinencode
+OBJS=.
+PARENT_DIR=.
 SOURCES_CPP=../Internal/Gfx2D/src/GfxFloatFixPt.cpp \
 ../Internal/Gfx2D/src/Gfxtrignometric.cpp \
 ../Internal/Gfx2D/src/GfxGc/GfxColor.cpp \
@@ -166,9 +150,14 @@
 	 # /I"$(STLPORT_INC)"
 
 VPATH=$(PARENT_DIR)
-CC=g++ -g
+
+# Uncomment this, to generate a debug version.
+# debug=-g3
+
+CC=g++ -O2 -m32 $(debug)
+
 LINK=ld
-LINK32_FLAGS=/home/nokia/standalone/lib_linux/libxercesenc-c.so.28
+LINK32_FLAGS=-L../lib_linux -lxercesenc-c
 DEFINES =-I "../Internal/SVGEngine/inc" \
 -I "../Internal/Gfx2D/inc" \
 -I "../Internal/Gfx2D/VGRasterizer/inc" \
@@ -181,12 +170,12 @@
 -I "../Internal/Path/inc" -D ARM -D NDEBUG -D _CONSOLE -D _MBCS
 #/YX /FD /c
 #CLFLAGS = /Od /nologo /GF -W4 /Fd -GX
-CLFLAGS =-ansi -umacro -fms-extensions -w -fshort-wchar -g3 
+CLFLAGS =-ansi -umacro -fms-extensions -w -fshort-wchar $(debug)
 #/nologo /MT /GX 
 $(PROGRAM) : $(OBJECTS_CPP_REL) $(OBJECTS_C_REL) 
 #	echo $(SOURCES_CPP)
 #	echo $(SOURCES_C)
-	g++ -g3 -lstdc++ -o $(PROGRAM) $(OBJECTS_CPP_REL) $(OBJECTS_C_REL) $(LINK32_FLAGS)
+	$(CC) -lstdc++ -lpthread -o $(PROGRAM) $(OBJECTS_CPP_REL) $(OBJECTS_C_REL) $(LINK32_FLAGS)
 
 #DEB : $(OBJECTS_CPP_DEB) 
 	echo "DEB build Called"
@@ -247,5 +236,3 @@
 	find -name *.o -type f -exec rm {} \;
 
 FORCE:
-
-