formated code
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Has been cancelled
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Has been cancelled
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Has been cancelled
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Has been cancelled
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Has been cancelled
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Has been cancelled
This commit is contained in:
1 parent
d1a08ba5ce
commit
f4bcead439
46 files changed
+23674
-22776
No files matched your search
@@ -1,13 +1,37 @@
|
||||
CXX=g++
|
||||
STRIP=strip
|
||||
CXXFLAGS=-Wall -I src/libs -I src -std=c++20
|
||||
SOURCES=src/openrouter.cpp src/security/cors.cpp src/settings/telnet/enabled.cpp src/settings/telnet/port.cpp src/settings/ssh/status.cpp src/settings/ssh/keys.cpp src/settings/ssh/port.cpp src/settings/ssh/server.cpp src/settings/dns/enabled.cpp src/settings/dns/servers.cpp src/settings/dns/local_domains.cpp src/settings/wifi/status.cpp src/settings/wifi/name.cpp src/settings/wifi/password.cpp src/settings/wifi/qr.cpp src/settings/wifi/channel.cpp src/settings/ftp/ftp.cpp src/system/reboot/reboot.cpp src/system/syslog/syslog.cpp src/system/uptime/uptime.cpp src/OpenRouter/OpenRouter.cpp src/auth/auth.cpp src/libs/QR-Code-generator/qrcodegen.cpp src/libs/QR-Code-generator/qrtosvg.cpp
|
||||
TARGET=bin/openrouter
|
||||
SOURCES=src/openrouter.cpp \
|
||||
src/security/cors.cpp \
|
||||
src/settings/telnet/enabled.cpp \
|
||||
src/settings/telnet/port.cpp \
|
||||
src/settings/ssh/status.cpp \
|
||||
src/settings/ssh/keys.cpp \
|
||||
src/settings/ssh/port.cpp \
|
||||
src/settings/ssh/server.cpp \
|
||||
src/settings/dns/enabled.cpp \
|
||||
src/settings/dns/servers.cpp \
|
||||
src/settings/dns/local_domains.cpp \
|
||||
src/settings/wifi/status.cpp \
|
||||
src/settings/wifi/name.cpp \
|
||||
src/settings/wifi/password.cpp \
|
||||
src/settings/wifi/qr.cpp \
|
||||
src/settings/wifi/channel.cpp \
|
||||
src/settings/ftp/ftp.cpp \
|
||||
src/system/reboot/reboot.cpp \
|
||||
src/system/syslog/syslog.cpp \
|
||||
src/system/uptime/uptime.cpp \
|
||||
src/OpenRouter/OpenRouter.cpp \
|
||||
src/auth/auth.cpp \
|
||||
src/libs/QR-Code-generator/qrcodegen.cpp \
|
||||
src/libs/QR-Code-generator/qrtosvg.cpp
|
||||
TARGET=build/openrouter
|
||||
default: all
|
||||
all: build
|
||||
.PHONY: build
|
||||
build:
|
||||
@if [ ! -d bin ]; then \
|
||||
mkdir bin; \
|
||||
@if [ ! -d build ]; then \
|
||||
mkdir build; \
|
||||
fi
|
||||
$(CXX) -o $(TARGET) $(SOURCES) $(CXXFLAGS)
|
||||
$(STRIP) $(TARGET)
|
||||
@@ -15,7 +39,7 @@ clean:
|
||||
@if [ -f $(TARGET) ]; then \
|
||||
rm -v $(TARGET); \
|
||||
fi
|
||||
|
||||
|
||||
install:
|
||||
@if [ ! -f /usr/bin/openrouter ]; then \
|
||||
install -v $(TARGET) /usr/bin/openrouter; \
|
||||
@@ -32,4 +56,4 @@ uninstall:
|
||||
fi
|
||||
@if [ -f /usr/bin/openrouter ]; then \
|
||||
rm -v /usr/bin/openrouter; \
|
||||
fi
|
||||
fi
|
||||
Reference in new issue
Block a user