sbar

sbar - a suckless status bar
git clone git://ssnf.xyz/sbar
Log | Files | Refs

Makefile (481B)


      1 CC      = c99
      2 #CFLAGS  = -O0 -g -Wall -Wpedantic -D_DEFAULT_SOURCE
      3 CFLAGS  = -Os -Wall -Wpedantic -D_DEFAULT_SOURCE
      4 LIBS    = -lX11
      5 LDFLAGS = ${LIBS}
      6 
      7 DST = ~/.local
      8 SRC = sbar.c linux.c
      9 OBJ = ${SRC:.c=.o}
     10 
     11 all: sbar
     12 
     13 ${OBJ}: config.h
     14 
     15 config.h:
     16 	cp config.def.h $@
     17 
     18 %.o: %.c
     19 	${CC} ${CFLAGS} -c $<
     20 
     21 sbar: ${OBJ}
     22 	${CC} ${LDFLAGS} ${OBJ} -o $@
     23 
     24 clean:
     25 	rm -f sbar ${OBJ}
     26 
     27 install: all
     28 	mkdir -p ${DST}/bin
     29 	chmod +x sbar
     30 	cp -f sbar ${DST}/bin
     31 
     32 uninstall:
     33 	rm ${DESTIDIR}/bin/sbar