diff options
author | Quentin Rameau <quinq@fifth.space> | 2018-04-30 16:11:45 +0200 |
---|---|---|
committer | Aaron Marcher <me@drkhsh.at> | 2018-04-30 16:27:07 +0200 |
commit | 95665e437b8f556db4d5499e189e224e3c6e6a12 (patch) | |
tree | b38d198a99c908f42a91c722b8e8ef87cafd65d5 /Makefile | |
parent | 085431b2826ff345c6f8580a72f3fff6f8138785 (diff) |
Makefile: separate default flags from user flags
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -27,6 +27,10 @@ COM =\ 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) |