Ich stecke jedes mal fest, wenn bei C++ das übliche simple 'make <Makefile>' nicht ausreicht.
Geht eben nichts über ein "schönes" (Quick'n'Dirty) Makefile ...
INCS ?= $(shell wx-config --cxxflags --unicode=yes)
LIBS ?= $(shell wx-config --libs)
OBJS := CpmGuiInterface.o
OBJS += CpmTools.o
OBJS += MainWindow.o
OBJS += Ui_MainWindow.o
OBJS += Ui_MainWindow_bitmaps.o
OBJS += main.o
PROG := cife
CLEANFILES := $(PROG) $(OBJS)
CXXFLAGS ?= -O3 -Wall -Wextra
CXXFLAGS += $(INCS)
all: $(PROG)
$(PROG): $(OBJS)
$(CXX) $(CXXFLAGS) -o $@ $^ $(LIBS)
clean:
$(RM) $(CLEANFILES)
Alles anzeigen
Makefile.zip (wegen Tabs ...)
wx-config --version ist hier mit 3.0.4 auch "zu alt" (Debian 9, 32 Bit), deshalb mal ein:
sed -i 's/utf8_string/utf8_str/' MainWindow.cpp
... compiliert und läuft ...