$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)
 
 debug: $(SRC)
-       $(CC) -DDEBUGMODE -g $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $(BIN) $^ $(LDLIBS)
+       $(CC) -DDBGMODE -g $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $(BIN) $^ $(LDLIBS)
 
 install: all
        $(INSTALL) -m 0755 -d $(DESTDIR)$(PREFIX)/bin
 
 
 #include "nnn.h"
 
-#ifdef DEBUGMODE
+#ifdef DBGMODE
 static int DEBUG_FD;
 
 static int
 #define DPRINTF_U(x)
 #define DPRINTF_S(x)
 #define DPRINTF_P(x)
-#endif /* DEBUGMODE */
+#endif /* DBGMODE */
 
 /* Macro definitions */
 #define VERSION "2.3"
 
 static void populate(char *path, char *lastname)
 {
-#ifdef DEBUGMODE
+#ifdef DBGMODE
        struct timespec ts1, ts2;
 
        clock_gettime(CLOCK_REALTIME, &ts1); /* Use CLOCK_MONOTONIC on FreeBSD */
 
        qsort(dents, ndents, sizeof(*dents), entrycmp);
 
-#ifdef DEBUGMODE
+#ifdef DBGMODE
        clock_gettime(CLOCK_REALTIME, &ts2);
        DPRINTF_U(ts2.tv_nsec - ts1.tv_nsec);
 #endif
 #endif
        read_history(NULL);
 
-#ifdef DEBUGMODE
+#ifdef DBGMODE
        enabledbg();
 #endif
        if (!initcurses())
        close(kq);
 #endif
 
-#ifdef DEBUGMODE
+#ifdef DBGMODE
        disabledbg();
 #endif
        return 0;