|
Lines 1-35
Link Here
|
| 1 |
--- src/Makefile.orig 2015-03-29 12:25:24 UTC |
1 |
--- src/Makefile.orig 2020-09-17 16:17:21 UTC |
| 2 |
+++ src/Makefile |
2 |
+++ src/Makefile |
| 3 |
@@ -38,13 +38,12 @@ DESTDIR = /usr/local/bin |
3 |
@@ -39,8 +39,7 @@ DESTDIR = /usr/local/bin |
| 4 |
#*************************************************************************************************** |
4 |
#*************************************************************************************************** |
| 5 |
|
5 |
|
| 6 |
# Which compiler |
6 |
# Which compiler and linker (eg. g++ or clang++) |
| 7 |
-CXX = g++ |
7 |
-CXX = g++ |
| 8 |
|
8 |
-LD = g++ |
| 9 |
# Application name |
9 |
+LD = $(CXX) |
| 10 |
PROG = gspiceui |
10 |
ifneq ($(GSPICEUI_MSWIN),0) |
| 11 |
|
11 |
LD += -static-libstdc++ -static-libgcc |
| 12 |
# wxWidgets configuration utility |
12 |
WINDRES = windres |
| 13 |
-WXCFG = wx-config --unicode --version=$(GSPICEUI_WXLIB) |
13 |
@@ -62,7 +61,7 @@ endif |
|
|
14 |
WXCFG = /usr/bin/wx-config |
| 15 |
# WXCFG = /usr/local/bin/wx-config |
| 16 |
endif |
| 17 |
-WXCFG += --unicode --version=$(GSPICEUI_WXLIB) |
| 14 |
+WXCFG = $(WX_CONFIG) |
18 |
+WXCFG = $(WX_CONFIG) |
| 15 |
|
19 |
ifneq ($(GSPICEUI_MSWIN),0) |
| 16 |
# Dependency file |
20 |
WXCFG += --static |
| 17 |
DEPS = Makefile.deps |
21 |
endif |
| 18 |
@@ -71,7 +70,7 @@ BINDIR = $(ROOT)/bin |
22 |
@@ -93,10 +92,10 @@ ifeq ($(GSPICEUI_DEBUG),0) |
| 19 |
# -Og Optimize debugging experience but don't break debugging |
23 |
# -std=[C++NO] The C++ standard to use where C++NO is eg. c++98, c++03, c++11, c++14, c++17, etc. |
| 20 |
ifeq ($(GSPICEUI_DBG),0) |
24 |
ifeq ($(GSPICEUI_DEBUG),0) |
| 21 |
# Options for release (not using -Wall since it's GCC specific) |
25 |
# Options for release (not using -Wall since it's GCC specific) |
| 22 |
- CXXFLAGS := -O1 -pipe $(shell $(WXCFG) --cxxflags) |
26 |
- CXXFLAGS := -O3 -std=c++17 -pipe $(shell $(WXCFG) --cxxflags) |
| 23 |
+ CXXFLAGS += $(shell $(WXCFG) --cxxflags) |
27 |
+ CXXFLAGS := $(CXXFLAGS) -std=c++17 $(shell $(WXCFG) --cxxflags) |
| 24 |
else |
28 |
else |
| 25 |
# Options for development |
29 |
# Options for development |
| 26 |
CXXFLAGS := -g -Og -Wall -Wextra -pipe $(shell $(WXCFG) --cxxflags) |
30 |
- CXXFLAGS := -g -Og -std=c++17 -Wall -Wextra -Wpedantic -pipe $(shell $(WXCFG) --cxxflags) |
| 27 |
@@ -83,7 +82,7 @@ ifeq ($(GSPICEUI_WXLIB),2.8) |
31 |
+ CXXFLAGS := $(CXXFLAGS) -g -Og -std=c++17 -Wall -Wextra -Wpedantic -pipe $(shell $(WXCFG) --cxxflags) |
| 28 |
endif |
32 |
endif |
| 29 |
|
33 |
|
| 30 |
# Includes |
34 |
# I like to compile using the option "-Wall" etc., tests that break wxWidgets are turned off below |
| 31 |
-INCLUDES = -I/usr/include -I/usr/X11R6/include -I. |
|
|
| 32 |
+INCLUDES = -I. |
| 33 |
|
| 34 |
# Libraries |
| 35 |
# (The pkg-config stuff was requested by a user, somehow pangox was missing) |