Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 01342ab70614feb6de504037bb6e4a2b > files > 2

codeworker-4.5.1-1mdv2009.0.src.rpm

--- Makefile.old	2008-07-29 15:24:32.000000000 +0800
+++ Makefile	2008-07-29 15:25:47.000000000 +0800
@@ -36,17 +36,17 @@
 ## Generally valid for 'gcc'
 ##-----------------------------------------------------------------------------
 
-INCDIRS	= -I.
-CXXFLAGS	= -O2 -g $(INCDIRS)
-LFLAGS	= -g -lm -ldl
+INCDIRS	+= -I. -I/usr/include/readline -I/usr/include/ncursesw
+CXXFLAGS	= $(CFLAGS) $(INCDIRS)
+LFLAGS	= $(LDFLAGS) -g -lm -ldl
 CC	= g++
 
 ##-----------------------------------------------------------------------------
 ## If you want to take advantage of GNU Readline, uncomment the following
 ## 2 lines and add the include path to this library
 ##-----------------------------------------------------------------------------
-#LFLAGS	+= -lreadline -lcurses
-#CC	+= -DCODEWORKER_GNU_READLINE
+LFLAGS	+= -lreadline -lcursesw
+CC	+= -DCODEWORKER_GNU_READLINE
 
 ##-----------------------------------------------------------------------------
 ## Under HP, using g++: