Update Makefile

This commit is contained in:
Night Kaly 2024-10-22 01:29:13 +01:00
parent cf581afba2
commit 2bc1fbe8d2
Signed by: night0721
GPG key ID: 957D67B8DB7A119B

View file

@ -6,10 +6,8 @@ VERSION = 1.0
TARGET = vip
PREFIX ?= /usr/local
BINDIR = $(PREFIX)/bin
MANDIR = $(PREFIX)/share/man/man1
# Flags
CFLAGS = -O3 -march=native -mtune=native -pipe -s -flto -std=c99 -pedantic -Wall -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600
CFLAGS = -O3 -march=native -mtune=native -pipe -s -flto -std=c99 -pedantic -Wall
SRC = src/*.c config.h
INCLUDE = include
@ -26,15 +24,14 @@ dist:
install: $(TARGET)
mkdir -p $(DESTDIR)$(BINDIR)
mkdir -p $(DESTDIR)$(MANDIR)
cp -p $(TARGET) $(DESTDIR)$(BINDIR)/$(TARGET)
chmod 755 $(DESTDIR)$(BINDIR)/$(TARGET)
uninstall:
$(RM) $(DESTDIR)$(BINDIR)/$(TARGET)
rm $(DESTDIR)$(BINDIR)/$(TARGET)
clean:
$(RM) $(TARGET)
rm $(TARGET)
all: $(TARGET)