From bd15c72fc954b5ea9672ec5227922f90cb094d2f Mon Sep 17 00:00:00 2001 From: "Alessandro de Oliveira Faria (A.K.A. CABELO)" Date: Mon, 23 Mar 2026 17:50:16 -0300 Subject: [PATCH] cabelo@opensuse.org - Makefile --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5e738e2..ffc007b 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,3 @@ -# ZUPT v0.7.0 - Makefile (Linux / macOS) CC = gcc CFLAGS = -Wall -Wextra -O2 -std=c11 -Iinclude -Isrc @@ -7,6 +6,8 @@ SOURCES = src/zupt_main.c src/zupt_format.c src/zupt_lz.c src/zupt_lzh.c src/zu src/zupt_parallel.c src/zupt_keccak.c src/zupt_x25519.c src/zupt_mlkem.c LDFLAGS = -lm -lpthread TARGET = zupt +PREFIX = /usr/local +BINDIR = $(PREFIX)/bin .PHONY: all clean test test-all test-asan install @@ -79,4 +80,5 @@ test-asan: $(SOURCES) include/zupt.h src/zupt_thread.h src/zupt_parallel.h @echo "ASAN build complete: ./zupt_asan" install: $(TARGET) - install -m 755 $(TARGET) /usr/local/bin/ + install -d $(DESTDIR)$(BINDIR) + install -m 755 $(TARGET) $(DESTDIR)$(BINDIR)/