First iteration
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
# Makefile for RTM3004 Remote Scope
|
||||
|
||||
APP_NAME = remote_scope
|
||||
VERSION = 1.0.0
|
||||
AUTHOR = "RemoteScope Author"
|
||||
TARGET_WIN = x86_64-pc-windows-gnu
|
||||
|
||||
.PHONY: all build-linux build-windows clean help
|
||||
|
||||
help:
|
||||
@echo "Usage:"
|
||||
@echo " make build-linux - Build for the current Linux host"
|
||||
@echo " make build-windows - Cross-compile for Windows (requires $(TARGET_WIN) target)"
|
||||
@echo " make all - Build for both Linux and Windows"
|
||||
|
||||
all: build-linux build-windows
|
||||
|
||||
build-linux:
|
||||
cargo build --release
|
||||
@echo "Linux build complete: target/release/$(APP_NAME)"
|
||||
|
||||
build-windows:
|
||||
@rustup target add $(TARGET_WIN) > /dev/null 2>&1 || true
|
||||
cargo build --release --target $(TARGET_WIN)
|
||||
@echo "Windows build complete: target/$(TARGET_WIN)/release/$(APP_NAME).exe"
|
||||
|
||||
clean:
|
||||
cargo clean
|
||||
Reference in New Issue
Block a user