X-Git-Url: https://git.xinqibao.xyz/slstatus.git/blobdiff_plain/259e106b4fbdca3df8dd660f70edf0585f14b6f6..95665e437b8f556db4d5499e189e224e3c6e6a12:/Makefile diff --git a/Makefile b/Makefile index 99d10c5..a2c49c8 100644 --- a/Makefile +++ b/Makefile @@ -20,12 +20,16 @@ COM =\ components/num_files\ components/$(OS)/ram \ components/run_command\ - components/swap\ - components/temperature\ - components/uptime\ + components/$(OS)/swap \ + components/$(OS)/temperature \ + components/$(OS)/uptime \ components/user\ components/volume\ - components/wifi + components/$(OS)/wifi + +SLSCFLAGS = -I$(X11INC) -D_DEFAULT_SOURCE $(CFLAGS) +SLSLDFLAGS = -L$(X11LIB) $(LDFLAGS) +SLSLIBS = -lX11 $(OSSLIBS) $(LIBS) all: slstatus @@ -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)