Update Makefile

This commit is contained in:
Night Kaly 2024-10-22 01:08:43 +01:00
parent 3057ab1d9d
commit a97b6fb97a
Signed by: night0721
GPG key ID: 957D67B8DB7A119B

View file

@ -1,7 +1,6 @@
.POSIX:
.SUFFIXES:
CC = cc
VERSION = 1.0
TARGET = apm
MANPAGE = $(TARGET).1
@ -9,9 +8,8 @@ PREFIX ?= /usr/local
BINDIR = $(PREFIX)/bin
MANDIR = $(PREFIX)/share/man/man1
# Flags
LDFLAGS = $(shell pkg-config --libs libsodium)
CFLAGS = -O3 -march=native -mtune=native -pipe -s -std=c99 -pedantic -Wall -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600
LDFLAGS != pkg-config --libs libsodium
CFLAGS = -O3 -march=native -mtune=native -pipe -s -std=c99 -pedantic -Wall
SRC = apm.c
@ -34,11 +32,11 @@ install: $(TARGET)
chmod 644 $(DESTDIR)$(MANDIR)/$(MANPAGE)
uninstall:
$(RM) $(DESTDIR)$(BINDIR)/$(TARGET)
$(RM) $(DESTDIR)$(MANDIR)/$(MANPAGE)
rm $(DESTDIR)$(BINDIR)/$(TARGET)
rm $(DESTDIR)$(MANDIR)/$(MANPAGE)
clean:
$(RM) $(TARGET)
rm $(TARGET)
all: $(TARGET)