mirror of
https://github.com/jarun/nnn.git
synced 2024-12-01 02:49:44 +00:00
Retire config.def.h, unify Makefiles
This commit is contained in:
parent
3c612fe64d
commit
9a4c446760
8
Makefile
8
Makefile
|
@ -13,18 +13,14 @@ else
|
||||||
LDLIBS += -lncurses
|
LDLIBS += -lncurses
|
||||||
endif
|
endif
|
||||||
|
|
||||||
DISTFILES = nlay nnn.c config.def.h nnn.1 Makefile README.md LICENSE
|
DISTFILES = nlay nnn.c config.h nnn.1 Makefile README.md LICENSE
|
||||||
LOCALCONFIG = config.h
|
|
||||||
SRC = nnn.c
|
SRC = nnn.c
|
||||||
BIN = nnn
|
BIN = nnn
|
||||||
PLAYER = nlay
|
PLAYER = nlay
|
||||||
|
|
||||||
all: $(BIN) $(PLAYER)
|
all: $(BIN) $(PLAYER)
|
||||||
|
|
||||||
$(LOCALCONFIG): config.def.h
|
$(SRC): config.h
|
||||||
cp config.def.h $@
|
|
||||||
|
|
||||||
$(SRC): $(LOCALCONFIG)
|
|
||||||
|
|
||||||
$(BIN): $(SRC)
|
$(BIN): $(SRC)
|
||||||
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LDLIBS)
|
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LDLIBS)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
VERSION = 1.2
|
VERSION = 1.2
|
||||||
|
|
||||||
PREFIX = /usr/local
|
PREFIX ?= /usr/local
|
||||||
MANPREFIX = $(PREFIX)/share/man
|
MANPREFIX = $(PREFIX)/share/man
|
||||||
|
|
||||||
CFLAGS += -O3 -march=native -Wall -Wextra -Wno-unused-parameter
|
CFLAGS += -O3 -march=native -Wall -Wextra -Wno-unused-parameter
|
||||||
|
@ -13,21 +13,17 @@ else
|
||||||
LDLIBS += -lncurses
|
LDLIBS += -lncurses
|
||||||
endif
|
endif
|
||||||
|
|
||||||
DISTFILES = nlay nnn.c config.def.h nnn.1 Makefile README.md LICENSE
|
DISTFILES = nlay nnn.c config.h nnn.1 Makefile README.md LICENSE
|
||||||
LOCALCONFIG = config.h
|
|
||||||
SRC = nnn.c
|
SRC = nnn.c
|
||||||
BIN = nnn
|
BIN = nnn
|
||||||
PLAYER = nlay
|
PLAYER = nlay
|
||||||
|
|
||||||
all: $(BIN) $(PLAYER)
|
all: $(BIN) $(PLAYER)
|
||||||
|
|
||||||
$(LOCALCONFIG): config.def.h
|
$(SRC): config.h
|
||||||
cp config.def.h $@
|
|
||||||
|
|
||||||
$(SRC): $(LOCALCONFIG)
|
|
||||||
|
|
||||||
$(BIN): $(SRC)
|
$(BIN): $(SRC)
|
||||||
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $^ $(LDFLAGS) $(LDLIBS)
|
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LDLIBS)
|
||||||
strip $@
|
strip $@
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
|
|
Loading…
Reference in a new issue