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