29 lines
784 B
Makefile
29 lines
784 B
Makefile
# 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
|