all repos — slstatus @ 95665e437b8f556db4d5499e189e224e3c6e6a12

my build of slstatus (tools.suckless.org/slstatus/)

Makefile: separate default flags from user flags
Quentin Rameau quinq@fifth.space
Mon, 30 Apr 2018 16:11:45 +0200
commit

95665e437b8f556db4d5499e189e224e3c6e6a12

parent

085431b2826ff345c6f8580a72f3fff6f8138785

2 files changed, 9 insertions(+), 9 deletions(-)

jump to
M MakefileMakefile

@@ -27,6 +27,10 @@ components/user\

components/volume\ components/$(OS)/wifi +SLSCFLAGS = -I$(X11INC) -D_DEFAULT_SOURCE $(CFLAGS) +SLSLDFLAGS = -L$(X11LIB) $(LDFLAGS) +SLSLIBS = -lX11 $(OSSLIBS) $(LIBS) + all: slstatus slstatus: slstatus.o $(COM:=.o) $(REQ:=.o)

@@ -37,10 +41,10 @@ config.h:

cp config.def.h $@ .o: - $(CC) -o $@ $(LDFLAGS) $< $(COM:=.o) $(REQ:=.o) $(LDLIBS) + $(CC) -o $@ $(SLSLDFLAGS) $< $(COM:=.o) $(REQ:=.o) $(SLSLIBS) .c.o: - $(CC) -o $@ -c $(CPPFLAGS) $(CFLAGS) $< + $(CC) -o $@ -c $(SLSCFLAGS) $< clean: rm -f slstatus slstatus.o $(COM:=.o) $(REQ:=.o)
M config.mkconfig.mk

@@ -4,7 +4,7 @@

# customize below to fit your system # paths -PREFIX = /usr/local +PREFIX = /usr/local MANPREFIX = ${PREFIX}/share/man X11INC = /usr/X11R6/include

@@ -14,10 +14,6 @@ # OpenBSD (uncomment)

#OSSLIBS = -lossaudio # flags -CPPFLAGS = -I$(X11INC) -D_DEFAULT_SOURCE CFLAGS = -std=c99 -pedantic -Wall -Wextra -Os -LDFLAGS = -L$(X11LIB) -s -LDLIBS = -lX11 ${OSSLIBS} - -# compiler and linker -CC = cc +LDFLAGS = -s +LIBS =