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 *.o
config.h
nnn nnn

View file

@ -13,14 +13,14 @@ else
LDLIBS += -lncurses LDLIBS += -lncurses
endif 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 SRC = nnn.c
BIN = nnn BIN = nnn
PLAYER = nlay PLAYER = nlay
all: $(BIN) $(PLAYER) all: $(BIN) $(PLAYER)
$(SRC): config.h $(SRC): nnn.h
$(BIN): $(SRC) $(BIN): $(SRC)
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LDLIBS) $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LDLIBS)

View file

@ -13,14 +13,14 @@ else
LDLIBS += -lncurses LDLIBS += -lncurses
endif 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 SRC = nnn.c
BIN = nnn BIN = nnn
PLAYER = nlay PLAYER = nlay
all: $(BIN) $(PLAYER) all: $(BIN) $(PLAYER)
$(SRC): config.h $(SRC): nnn.h
$(BIN): $(SRC) $(BIN): $(SRC)
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LDLIBS) $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LDLIBS)

2
nnn.c
View file

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

View file