diff -Nadurp kicad-dev/3d-viewer/makefile.g95 kicad-dev-gentoo/3d-viewer/makefile.g95 --- kicad-dev/3d-viewer/makefile.g95 2005-09-09 12:22:08.000000000 +0200 +++ kicad-dev-gentoo/3d-viewer/makefile.g95 2006-03-27 15:55:53.000000000 +0200 @@ -13,7 +13,7 @@ all: $(TARGET).a include makefile.include #.$(SRCSUFF).$(OBJSUFF): -# gcc -c $(ALL_CPPFLAGS) $(ALL_CXXFLAGS) -DBUILDING_DLL=1 -I. -g -o $@ $*.$(SRCSUFF) +# gcc $(CFLAGS) -c $(ALL_CPPFLAGS) $(ALL_CXXFLAGS) -DBUILDING_DLL=1 -I. -g -o $@ $*.$(SRCSUFF) #$(TARGET)$(DLLSUFF): $(OBJECTS) $(OBJECTS3D) makefile.g95 # $(DLLGEN) -o $(TARGET)$(DLLSUFF) $(OBJECTS) $(OBJECTS3D) $(AUXLIBS) diff -Nadurp kicad-dev/3d-viewer/makefile.gtk kicad-dev-gentoo/3d-viewer/makefile.gtk --- kicad-dev/3d-viewer/makefile.gtk 2005-05-03 10:40:20.000000000 +0200 +++ kicad-dev-gentoo/3d-viewer/makefile.gtk 2006-03-27 15:55:53.000000000 +0200 @@ -1,9 +1,9 @@ ## Makefile for 3d-viewer.a ( wxGTK - LINUX ) -CC = gcc +CC = gcc $(CFLAGS) # Compiler flags. -CPPFLAGS = -Wall -O2 -DPCBNEW -I../pcbnew -I ../include -I../common\ +CPPFLAGS = -Wall -DPCBNEW -I../pcbnew -I ../include -I../common\ `wx-config --cxxflags` diff -Nadurp kicad-dev/3d-viewer/makefile.macosx kicad-dev-gentoo/3d-viewer/makefile.macosx --- kicad-dev/3d-viewer/makefile.macosx 2006-03-03 11:03:24.000000000 +0100 +++ kicad-dev-gentoo/3d-viewer/makefile.macosx 2006-03-27 15:55:53.000000000 +0200 @@ -1,9 +1,9 @@ ## Makefile for 3d-viewer.a ( wxMAC - mac os X) -CC = gcc +CC = gcc $(CFLAGS) # Compiler flags. -CPPFLAGS = -Wall -O2 -DPCBNEW -I../pcbnew -I ../include -I../common\ +CPPFLAGS = -Wall -DPCBNEW -I../pcbnew -I ../include -I../common\ `wx-config --cxxflags` diff -Nadurp kicad-dev/common/eda_doc.cpp kicad-dev-gentoo/common/eda_doc.cpp --- kicad-dev/common/eda_doc.cpp 2006-01-31 16:25:48.000000000 +0100 +++ kicad-dev-gentoo/common/eda_doc.cpp 2006-03-27 16:01:17.000000000 +0200 @@ -135,6 +135,8 @@ wxString ext, command, type; command = wxT("konqueror ") + fullfilename; else if ( wxFileExists( wxT("/usr/bin/gpdf") )) command = wxT("gpdf ") + fullfilename; + else if ( wxFileExists( wxT("/usr/bin/evince") )) + command = wxT("evince ") + fullfilename; if ( command.IsEmpty() ) // not started { DisplayError(frame, diff -Nadurp kicad-dev/common/makefile.gtk kicad-dev-gentoo/common/makefile.gtk --- kicad-dev/common/makefile.gtk 2005-05-11 17:21:30.000000000 +0200 +++ kicad-dev-gentoo/common/makefile.gtk 2006-03-27 15:55:53.000000000 +0200 @@ -1,8 +1,8 @@ ## Makefile for common.a -CC = gcc +CC = gcc $(CFLAGS) # Compiler flags. -CPPFLAGS = -Wall -O2 -I./ -I../include `wx-config --cflags` +CPPFLAGS = -Wall -I./ -I../include `wx-config --cflags` EDACPPFLAGS = $(CPPFLAGS) diff -Nadurp kicad-dev/common/makefile.macosx kicad-dev-gentoo/common/makefile.macosx --- kicad-dev/common/makefile.macosx 2005-07-22 09:34:48.000000000 +0200 +++ kicad-dev-gentoo/common/makefile.macosx 2006-03-27 15:55:53.000000000 +0200 @@ -1,8 +1,8 @@ ## Makefile for common.a -CC = gcc +CC = gcc $(CFLAGS) # Compiler flags. -CPPFLAGS = -Wall -O2 -I./ -I../include `wx-config --cflags` +CPPFLAGS = -Wall -I./ -I../include `wx-config --cflags` EDACPPFLAGS = $(CPPFLAGS) diff -Nadurp kicad-dev/cvpcb/makefile.gtk kicad-dev-gentoo/cvpcb/makefile.gtk --- kicad-dev/cvpcb/makefile.gtk 2006-03-20 13:31:36.000000000 +0100 +++ kicad-dev-gentoo/cvpcb/makefile.gtk 2006-03-27 15:55:53.000000000 +0200 @@ -1,14 +1,14 @@ # File: makefile # Compiler flags. -CC = gcc -LD = gcc +CC = gcc $(CFLAGS) +LD = c++ FINAL = 1 # Compiler flags. -CPPFLAGS = -Wall -O2 `wx-config --cxxflags` +CPPFLAGS = -Wall `wx-config --cxxflags` LDFLAGS = -s diff -Nadurp kicad-dev/cvpcb/makefile.macosx kicad-dev-gentoo/cvpcb/makefile.macosx --- kicad-dev/cvpcb/makefile.macosx 2006-03-20 13:31:36.000000000 +0100 +++ kicad-dev-gentoo/cvpcb/makefile.macosx 2006-03-27 15:55:53.000000000 +0200 @@ -1,14 +1,14 @@ # File: makefile # Compiler flags. -CC = gcc +CC = gcc $(CFLAGS) LD = g++ FINAL = 1 # Compiler flags. -CPPFLAGS = -Wall -O2 `wx-config --cxxflags` +CPPFLAGS = -Wall `wx-config --cxxflags` LDFLAGS = diff -Nadurp kicad-dev/eeschema/makefile.gtk kicad-dev-gentoo/eeschema/makefile.gtk --- kicad-dev/eeschema/makefile.gtk 2005-09-09 12:22:04.000000000 +0200 +++ kicad-dev-gentoo/eeschema/makefile.gtk 2006-03-27 15:55:53.000000000 +0200 @@ -1,7 +1,7 @@ ## Makefile for eeschema -CC = gcc +CC = gcc $(CFLAGS) #LD = c++ pour utiliser libstdc++ dynamique -LD = gcc +LD = c++ FINAL = 1 @@ -13,7 +13,7 @@ include ../libs.linux TARGET = eeschema -CPPFLAGS = -Wall -O2 `wx-config --cxxflags` +CPPFLAGS = -Wall `wx-config --cxxflags` all: $(TARGET) @@ -27,7 +27,7 @@ $(TARGET): $(OBJECTS) makefile.gtk make $(LD) $(OBJECTS) $(LDFLAGS) $(LIBS) -o $(TARGET) netlist_form_pads-pcb: plugins/netlist_form_pads-pcb.cpp makefile.gtk - gcc -D__UNIX__ -Wall plugins/netlist_form_pads-pcb.cpp $(LIBSTDC) -o netlist_form_pads-pcb + gcc $(CFLAGS) -D__UNIX__ -Wall plugins/netlist_form_pads-pcb.cpp $(LIBSTDC) -o netlist_form_pads-pcb install: diff -Nadurp kicad-dev/eeschema/makefile.macosx kicad-dev-gentoo/eeschema/makefile.macosx --- kicad-dev/eeschema/makefile.macosx 2005-09-09 12:22:04.000000000 +0200 +++ kicad-dev-gentoo/eeschema/makefile.macosx 2006-03-27 15:55:53.000000000 +0200 @@ -1,5 +1,5 @@ ## Makefile for eeschema -CC = gcc +CC = gcc $(CFLAGS) LD = g++ FINAL = 1 @@ -12,7 +12,7 @@ include ../libs.macosx TARGET = eeschema -CPPFLAGS = -Wall -O2 `wx-config --cxxflags` +CPPFLAGS = -Wall `wx-config --cxxflags` all: $(TARGET) netlist_form_pads-pcb @@ -29,7 +29,7 @@ $(TARGET): $(OBJECTS) $(TARGET).r makefi netlist_form_pads-pcb: plugins/netlist_form_pads-pcb.cpp - gcc -Wall plugins/netlist_form_pads-pcb.cpp -o netlist_form_pads-pcb + gcc $(CFLAGS) -Wall plugins/netlist_form_pads-pcb.cpp -o netlist_form_pads-pcb install: diff -Nadurp kicad-dev/eeschema/plugins/makefile.g95 kicad-dev-gentoo/eeschema/plugins/makefile.g95 --- kicad-dev/eeschema/plugins/makefile.g95 2005-09-09 12:31:20.000000000 +0200 +++ kicad-dev-gentoo/eeschema/plugins/makefile.g95 2006-03-27 15:56:08.000000000 +0200 @@ -7,7 +7,7 @@ include ../../libs.win all: netlist_form_pads-pcb.exe netlist_form_pads-pcb.exe: netlist_form_pads-pcb.cpp - gcc -Wall netlist_form_pads-pcb.cpp -o netlist_form_pads-pcb.exe + gcc $(CFLAGS) -Wall netlist_form_pads-pcb.cpp -o netlist_form_pads-pcb.exe install: cp -v *.exe $(KICAD_BIN)/plugins/ diff -Nadurp kicad-dev/eeschema/plugins/makefile.gtk kicad-dev-gentoo/eeschema/plugins/makefile.gtk --- kicad-dev/eeschema/plugins/makefile.gtk 2005-09-09 12:31:20.000000000 +0200 +++ kicad-dev-gentoo/eeschema/plugins/makefile.gtk 2006-03-27 15:56:08.000000000 +0200 @@ -16,7 +16,7 @@ endif all: netlist_form_pads-pcb netlist_form_pads-pcb: netlist_form_pads-pcb.cpp makefile.gtk - gcc -D__UNIX__ -Wall netlist_form_pads-pcb.cpp -o netlist_form_pads-pcb $(LIBSTDC) + gcc $(CFLAGS) -D__UNIX__ -Wall netlist_form_pads-pcb.cpp -o netlist_form_pads-pcb $(LIBSTDC) install: cp -v netlist_form_pads-pcb $(KICAD_BIN)/plugins/ diff -Nadurp kicad-dev/gerbview/makefile.gtk kicad-dev-gentoo/gerbview/makefile.gtk --- kicad-dev/gerbview/makefile.gtk 2005-12-05 09:48:00.000000000 +0100 +++ kicad-dev-gentoo/gerbview/makefile.gtk 2006-03-27 15:55:53.000000000 +0200 @@ -1,9 +1,9 @@ ## Makefile for GERBVIEW et wxGTK -CC = gcc -LD = gcc +CC = gcc $(CFLAGS) +LD = c++ # Compiler flags. -CPPFLAGS = -Wall -O2 `wx-config --cxxflags` +CPPFLAGS = -Wall `wx-config --cxxflags` LDFLAGS = -s diff -Nadurp kicad-dev/gerbview/makefile.macosx kicad-dev-gentoo/gerbview/makefile.macosx --- kicad-dev/gerbview/makefile.macosx 2006-03-03 11:03:26.000000000 +0100 +++ kicad-dev-gentoo/gerbview/makefile.macosx 2006-03-27 15:55:53.000000000 +0200 @@ -1,9 +1,9 @@ ## Makefile for GERBVIEW et wxGTK -CC = gcc +CC = gcc $(CFLAGS) LD = g++ # Compiler flags. -CPPFLAGS = -Wall -O2 `wx-config --cxxflags` +CPPFLAGS = -Wall `wx-config --cxxflags` LDFLAGS = diff -Nadurp kicad-dev/kicad/makefile.gtk kicad-dev-gentoo/kicad/makefile.gtk --- kicad-dev/kicad/makefile.gtk 2005-07-29 13:13:38.000000000 +0200 +++ kicad-dev-gentoo/kicad/makefile.gtk 2006-03-27 15:55:53.000000000 +0200 @@ -1,13 +1,13 @@ # File: makefile for kicad, wxGTK # Compiler flags. -CC = gcc -LD = gcc +CC = gcc $(CFLAGS) +LD = c++ FINAL = 1 # Compiler flags. -CPPFLAGS = -Wall -O2 `wx-config --cxxflags` +CPPFLAGS = -Wall `wx-config --cxxflags` LDFLAGS = -s include ../libs.linux diff -Nadurp kicad-dev/kicad/makefile.macosx kicad-dev-gentoo/kicad/makefile.macosx --- kicad-dev/kicad/makefile.macosx 2005-07-29 13:13:38.000000000 +0200 +++ kicad-dev-gentoo/kicad/makefile.macosx 2006-03-27 15:55:53.000000000 +0200 @@ -1,13 +1,13 @@ # File: makefile for kicad, wxGTK # Compiler flags. -CC = gcc +CC = gcc $(CFLAGS) LD = g++ FINAL = 1 # Compiler flags. -CPPFLAGS = -Wall -O2 `wx-config --cxxflags` +CPPFLAGS = -Wall `wx-config --cxxflags` LDFLAGS = include ../libs.macosx diff -Nadurp kicad-dev/kicad/minizip/makefile.unx kicad-dev-gentoo/kicad/minizip/makefile.unx --- kicad-dev/kicad/minizip/makefile.unx 2004-06-02 15:50:34.000000000 +0200 +++ kicad-dev-gentoo/kicad/minizip/makefile.unx 2006-03-27 15:56:08.000000000 +0200 @@ -1,7 +1,7 @@ WXDIR = /usr/local/wxGTK2-2.5.1 -CC=gcc -LD=gcc +CC=gcc $(CFLAGS) +LD=gcc $(CFLAGS) CFLAGS=-O2 -Wall -I$(WXDIR)/src/zlib #EXTRALIBS= $(WXDIR)/lib/libwxzlib.a EXTRALIBS= -lz diff -Nadurp kicad-dev/kicad/minizip/makefile.win kicad-dev-gentoo/kicad/minizip/makefile.win --- kicad-dev/kicad/minizip/makefile.win 2004-06-02 15:50:34.000000000 +0200 +++ kicad-dev-gentoo/kicad/minizip/makefile.win 2006-03-27 15:56:08.000000000 +0200 @@ -1,7 +1,7 @@ WXDIR = $(WXWIN) -CC=gcc -LD=gcc +CC=gcc $(CFLAGS) +LD=gcc $(CFLAGS) CFLAGS=-O2 -Wall -I$(WXDIR)/src/zlib EXTRALIBS= $(WXDIR)/lib/libwxzlib.a diff -Nadurp kicad-dev/libs.linux kicad-dev-gentoo/libs.linux --- kicad-dev/libs.linux 2006-03-20 13:31:20.000000000 +0100 +++ kicad-dev-gentoo/libs.linux 2006-03-27 15:54:09.000000000 +0200 @@ -63,8 +63,8 @@ WXSYSLIB_WITH_GL= $(WXPATH)/$(PREFIX_WX_ -L/usr/lib else #or use "standard command" for wxWidgets -WXSYSLIB= `wx-config --libs png,jpeg,zlib` -WXSYSLIB_WITH_GL= `wx-config --libs gl,png,jpeg,zlib` +WXSYSLIB= `wx-config --libs core,base,net,html,xrc` +WXSYSLIB_WITH_GL= `wx-config --libs core,base,net,html,gl` endif diff -Nadurp kicad-dev/makefile.gtk kicad-dev-gentoo/makefile.gtk --- kicad-dev/makefile.gtk 2005-09-09 12:21:58.000000000 +0200 +++ kicad-dev-gentoo/makefile.gtk 2006-03-27 15:53:18.000000000 +0200 @@ -1,7 +1,7 @@ KICAD_SUBDIRS = common 3d-viewer eeschema eeschema/plugins pcbnew cvpcb kicad gerbview KICAD_SUBDIRS_BIN = eeschema eeschema/plugins pcbnew cvpcb kicad gerbview # How to invoke make: -MAKE = make -k -f makefile.gtk +MAKE = make -f makefile.gtk MAKE_INSTALL = make -f makefile.gtk install ERASE = rm -f *.o diff -Nadurp kicad-dev/pcbnew/makefile.gtk kicad-dev-gentoo/pcbnew/makefile.gtk --- kicad-dev/pcbnew/makefile.gtk 2006-03-20 13:31:34.000000000 +0100 +++ kicad-dev-gentoo/pcbnew/makefile.gtk 2006-03-27 15:55:53.000000000 +0200 @@ -1,10 +1,10 @@ ## Makefile for PCBNEW et wxGTK -CC = gcc -LD = gcc +CC = gcc $(CFLAGS) +LD = c++ # Compiler flags. -CPPFLAGS = -Wall -O2 `wx-config --cxxflags` +CPPFLAGS = -Wall `wx-config --cxxflags` LDFLAGS = -s diff -Nadurp kicad-dev/pcbnew/makefile.macosx kicad-dev-gentoo/pcbnew/makefile.macosx --- kicad-dev/pcbnew/makefile.macosx 2006-03-03 11:03:24.000000000 +0100 +++ kicad-dev-gentoo/pcbnew/makefile.macosx 2006-03-27 15:55:53.000000000 +0200 @@ -1,10 +1,10 @@ ## Makefile for PCBNEW et wxGTK -CC = gcc +CC = gcc $(CFLAGS) LD = g++ # Compiler flags. -CPPFLAGS = -Wall -O2 `wx-config --cxxflags` +CPPFLAGS = -Wall `wx-config --cxxflags` LDFLAGS =