summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 7d80893..a2c49c8 100644
--- a/Makefile
+++ b/Makefile
@@ -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)