Update Makefile
This commit is contained in:
parent
42751778ac
commit
8c01acb72f
2 changed files with 8 additions and 9 deletions
13
Makefile
13
Makefile
|
@ -1,7 +1,6 @@
|
|||
.POSIX:
|
||||
.SUFFIXES:
|
||||
|
||||
CC = cc
|
||||
VERSION = 1.0
|
||||
TARGET = ccc
|
||||
MANPAGE = $(TARGET).1
|
||||
|
@ -10,9 +9,9 @@ PREFIX ?= /usr/local
|
|||
BINDIR = $(PREFIX)/bin
|
||||
MANDIR = $(PREFIX)/share/man/man1
|
||||
|
||||
# Flags
|
||||
LDFLAGS = $(shell pkg-config --libs ncursesw)
|
||||
CFLAGS = -O3 -march=native -mtune=native -pipe -s -flto -std=c99 -pedantic -Wall -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 $(shell pkg-config --cflags ncursesw)
|
||||
LDFLAGS != pkg-config --libs ncursesw
|
||||
INCFLAGS != pkg-config --cflags ncursesw
|
||||
CFLAGS = -O3 -march=native -mtune=native -pipe -s -flto -std=c99 -pedantic -Wall -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 $(INCFLAGS)
|
||||
|
||||
SRC = ccc.c util.c file.c icons.c
|
||||
|
||||
|
@ -35,11 +34,11 @@ install: $(TARGET)
|
|||
chmod 644 $(DESTDIR)$(MANDIR)/$(MANPAGE)
|
||||
|
||||
uninstall:
|
||||
$(RM) $(DESTDIR)$(BINDIR)/$(TARGET)
|
||||
$(RM) $(DESTDIR)$(MANDIR)/$(MANPAGE)
|
||||
rm $(DESTDIR)$(BINDIR)/$(TARGET)
|
||||
rm $(DESTDIR)$(MANDIR)/$(MANPAGE)
|
||||
|
||||
clean:
|
||||
$(RM) $(TARGET)
|
||||
rm $(TARGET)
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
|
|
4
config.h
4
config.h
|
@ -19,10 +19,10 @@ In COLS:
|
|||
0 will make them equal (at the center),
|
||||
15 will make files bigger
|
||||
-15 will make preview bigger */
|
||||
#define WINDOW_OFFSET 0
|
||||
#define WINDOW_OFFSET -20
|
||||
|
||||
/* Options */
|
||||
#define DRAW_BORDERS true /* draw borders around windows */
|
||||
#define DRAW_BORDERS false /* draw borders around windows */
|
||||
#define DRAW_PREVIEW true /* draw file preview */
|
||||
|
||||
#define SHOW_HIDDEN true /* show hidden files/dotfiles at startup */
|
||||
|
|
Loading…
Reference in a new issue