aboutsummaryrefslogblamecommitdiff
path: root/devel/py-distorm/files/patch-Makefile
blob: cb99e973899661c7e79a27932f80d09f76869796 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                           




                                                                                                                                                                                                   

                                                                     


             

                                        
 


                                                                        
 

                                           
--- Makefile.orig	2008-05-12 02:39:48.081089220 -0400
+++ Makefile	2008-05-13 03:58:39.453527116 -0400
@@ -5,8 +5,7 @@
 TARGET	= libdistorm64.so
 COBJS	= ../../src/x86defs.o ../../src/wstring.o ../../src/textdefs.o ../../src/prefix.o ../../src/operands.o ../../src/insts.o ../../src/instructions.o ../../src/distorm.o ../../src/decoder.o
 PYOBJS	= ../../src/x86defs.o ../../src/wstring.o ../../src/textdefs.o ../../src/pydistorm.o ../../src/prefix.o ../../src/operands.o ../../src/insts.o ../../src/instructions.o ../../src/decoder.o
-CC	= gcc
-CFLAGS	= -O2 -Wall -fPIC -DSUPPORT_64BIT_OFFSET -D_DLL
+CFLAGS	+= -fPIC -DSUPPORT_64BIT_OFFSET -D_DLL -I${LOCALBASE}/include
 
 all: clib py
 
@@ -18,7 +17,7 @@
 	ar rs ../../distorm64.a ${COBJS}
 
 py: ${PYOBJS}
-	${CC} ${CFLAGS} ${VERSION} ${PYOBJS} -fPIC -shared -o ${TARGET}
+	${CC} ${CFLAGS} ${VERSION} ${PYOBJS} -fPIC -shared -o distorm.so
 
 install: libdistorm64.so
 	install -s ${TARGET} /usr/local/lib