This repository was archived by the owner on Aug 21, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 77AR ?= ar
88CC ?= gcc
99CXX ?= g++
10+ MOC ?= $(shell pkg-config --variable=moc_location QtCore)
11+ RCC ?= $(shell pkg-config --variable=rcc_location QtCore)
12+ UIC ?= $(shell pkg-config --variable=uic_location QtCore)
1013STRIP ?= strip
1114WINDRES ?= windres
1215
@@ -22,7 +25,6 @@ DEBUG ?= false
2225ifeq ($(DEBUG ) ,true)
2326BASE_FLAGS = -O0 -g -Wall -Wextra
2427BASE_FLAGS += -DDEBUG
25- STRIP = true # FIXME
2628else
2729BASE_FLAGS = -O3 -ffast-math -Wall -Wextra
2830BASE_FLAGS += -DNDEBUG
@@ -38,6 +40,10 @@ ifneq ($(DEBUG),true)
3840BUILD_CXX_FLAGS += -DQT_NO_DEBUG -DQT_NO_DEBUG_STREAM -DQT_NO_DEBUG_OUTPUT
3941endif
4042
43+ ifneq ($(SKIP_STRIPPING ) ,true)
44+ LINK_FLAGS += -Wl,--strip-all
45+ endif
46+
4147# --------------------------------------------------------------
4248
4349# Currently broken
Original file line number Diff line number Diff line change @@ -31,10 +31,10 @@ OBJS = \
3131all : cadence-jackmeter
3232
3333cadence-jackmeter : $(FILES ) $(OBJS )
34- $(CXX ) $(OBJS ) $(LINK_FLAGS ) -ldl -o $@ && $( STRIP ) $@
34+ $(CXX ) $(OBJS ) $(LINK_FLAGS ) -ldl -o $@
3535
3636cadence-jackmeter.exe : $(FILES ) $(OBJS ) icon.o
37- $(CXX ) $(OBJS ) icon.o $(LINK_FLAGS ) -limm32 -lole32 -luuid -lwinspool -lws2_32 -mwindows -o $@ && $( STRIP ) $@
37+ $(CXX ) $(OBJS ) icon.o $(LINK_FLAGS ) -limm32 -lole32 -luuid -lwinspool -lws2_32 -mwindows -o $@
3838
3939# --------------------------------------------------------------
4040
Original file line number Diff line number Diff line change @@ -35,10 +35,10 @@ OBJS = xycontroller.o \
3535all : cadence-xycontroller
3636
3737cadence-xycontroller : $(FILES ) $(OBJS )
38- $(CXX ) $(OBJS ) $(LINK_FLAGS ) -ldl -o $@ && $( STRIP ) $@
38+ $(CXX ) $(OBJS ) $(LINK_FLAGS ) -ldl -o $@
3939
4040cadence-xycontroller.exe : $(FILES ) $(OBJS ) icon.o
41- $(CXX ) $(OBJS ) icon.o $(LINK_FLAGS ) -limm32 -lole32 -luuid -lwinspool -lws2_32 -mwindows -o $@ && $( STRIP ) $@
41+ $(CXX ) $(OBJS ) icon.o $(LINK_FLAGS ) -limm32 -lole32 -luuid -lwinspool -lws2_32 -mwindows -o $@
4242
4343# --------------------------------------------------------------
4444
You can’t perform that action at this time.
0 commit comments