summaryrefslogtreecommitdiffstats
path: root/cad/gspiceui/files/patch-src_Makefile
blob: e53a6a51406bdb0853323f30bbdaf91435fa48d2 (plain)
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
27
28
29
30
31
32
33
34
35
36
--- src/Makefile.orig	2008-02-22 02:02:01.000000000 +0300
+++ src/Makefile	2008-04-13 23:31:07.000000000 +0400
@@ -43,7 +43,7 @@
 # wxWidgets configuration utility
 # (Arguments can be passed to wx-config to specify the version of wxWidgets to
 # use, whether unicode is required, etc.)
-WXCFG = wx-config --unicode --version=$(GSPICEUI_WXLIB)
+WXCFG = /usr/local/bin/wxgtk2u-2.8-config
 
 # Dependency file
 DEPS = Makefile.deps
@@ -56,21 +56,14 @@
 BINDIR     = $(ROOT)/bin
 INSTALLDIR = /usr/local/bin
 
-# Compiler options
-ifeq ($(GSPICEUI_DBG),0)
-  # Options for release (Not using -Wall since it's GCC specific)
-  CXXFLAGS = -O -pipe $(shell $(WXCFG) --cxxflags)
-else
-  # Options for development
-  CXXFLAGS = -Wall -g -pipe $(shell $(WXCFG) --cxxflags)
-endif
+CXXFLAGS += -c $(shell $(WXCFG) --cxxflags)
 
 # Includes
-INCLUDES = -I/usr/include -I/usr/X11R6/include -I.
+INCLUDES = -I/usr/include -I${LOCALBASE}/include -I. $(shell /usr/local/bin/wxgtk2u-2.8-config --cxxflags)
 
 # Libraries
 # (The pkg-config stuff was requested by a user, somehow pangox was missing)
-LIBS := $(shell $(WXCFG) --libs) $(shell pkg-config --libs pangox)
+LIBS := $(shell /usr/local/bin/wxgtk2u-2.8-config --libs) $(shell pkg-config --libs pangox)
 
 # Objects
 OBJS := $(wildcard *.cpp) $(wildcard */*.cpp) $(wildcard */*/*.cpp)
OpenPOWER on IntegriCloud