Move config.h to nnn.h

This commit is contained in:
Arun Prakash Jana 2017-09-02 11:39:44 +05:30
parent e2cde6c325
commit 277cf66097
No known key found for this signature in database
GPG key ID: A75979F35C080412
5 changed files with 5 additions and 6 deletions

1
.gitignore vendored
View file

@ -1,3 +1,2 @@
*.o
config.h
nnn

View file

@ -13,14 +13,14 @@ else
LDLIBS += -lncurses
endif
DISTFILES = nlay nnn.c config.h nnn.1 Makefile README.md LICENSE
DISTFILES = nlay nnn.c nnn.h nnn.1 Makefile README.md LICENSE
SRC = nnn.c
BIN = nnn
PLAYER = nlay
all: $(BIN) $(PLAYER)
$(SRC): config.h
$(SRC): nnn.h
$(BIN): $(SRC)
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LDLIBS)

View file

@ -13,14 +13,14 @@ else
LDLIBS += -lncurses
endif
DISTFILES = nlay nnn.c config.h nnn.1 Makefile README.md LICENSE
DISTFILES = nlay nnn.c nnn.h nnn.1 Makefile README.md LICENSE
SRC = nnn.c
BIN = nnn
PLAYER = nlay
all: $(BIN) $(PLAYER)
$(SRC): config.h
$(SRC): nnn.h
$(BIN): $(SRC)
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LDLIBS)

2
nnn.c
View file

@ -75,7 +75,7 @@
#include <ftw.h>
#include <wchar.h>
#include "config.h"
#include "nnn.h"
#ifdef DEBUGMODE
static int DEBUG_FD;

View file