mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
commit
8fbd97a1ea
17
.travis.yml
Normal file
17
.travis.yml
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
language: c
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
# Access more recent gcc and clang via a Trusty image
|
||||||
|
- os: linux
|
||||||
|
dist: trusty
|
||||||
|
compiler: gcc
|
||||||
|
- os: linux
|
||||||
|
dist: trusty
|
||||||
|
compiler: clang
|
||||||
|
- os: osx
|
||||||
|
compiler: gcc
|
||||||
|
- os: osx
|
||||||
|
compiler: clang
|
||||||
|
script:
|
||||||
|
- make CFLAGS='-Werror'
|
||||||
|
- make CFLAGS='-Wall -Wextra -Werror'
|
8
Makefile
8
Makefile
|
@ -3,9 +3,7 @@ VERSION = 0.6
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
MANPREFIX = $(PREFIX)/man
|
MANPREFIX = $(PREFIX)/man
|
||||||
|
|
||||||
#CPPFLAGS = -DDEBUG
|
CFLAGS += -O3 -march=native
|
||||||
#CFLAGS = -g
|
|
||||||
CFLAGS = -O3 -march=native
|
|
||||||
LDLIBS = -lcurses
|
LDLIBS = -lcurses
|
||||||
|
|
||||||
DISTFILES = nnn.c config.def.h nnn.1 Makefile README.md LICENSE
|
DISTFILES = nnn.c config.def.h nnn.1 Makefile README.md LICENSE
|
||||||
|
@ -21,8 +19,8 @@ $(LOCALCONFIG): config.def.h
|
||||||
$(SRC): $(LOCALCONFIG)
|
$(SRC): $(LOCALCONFIG)
|
||||||
|
|
||||||
$(BIN): $(SRC)
|
$(BIN): $(SRC)
|
||||||
$(CC) $(CFLAGS) -o $@ $(SRC) $(LDFLAGS) $(LDLIBS)
|
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $^ $(LDFLAGS) $(LDLIBS)
|
||||||
strip $(BIN)
|
strip $@
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
||||||
|
|
Loading…
Reference in a new issue