Update Makefile
This commit is contained in:
parent
cf581afba2
commit
2bc1fbe8d2
1 changed files with 3 additions and 6 deletions
9
Makefile
9
Makefile
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue