commit 277cf66097209b0f56312e11a82dd3db437df1a0
parent e2cde6c3252247b4fa14117e2a4ef86efebbf948
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date: Sat, 2 Sep 2017 11:39:44 +0530
Move config.h to nnn.h
Diffstat:
5 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -1,3 +1,2 @@
*.o
-config.h
nnn
diff --git a/Makefile b/Makefile
@@ -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)
diff --git a/Makefile.native b/Makefile.native
@@ -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)
diff --git a/nnn.c b/nnn.c
@@ -75,7 +75,7 @@
#include <ftw.h>
#include <wchar.h>
-#include "config.h"
+#include "nnn.h"
#ifdef DEBUGMODE
static int DEBUG_FD;
diff --git a/config.h b/nnn.h