sxss

simple x screensaver
git clone git://git.ckyln.com/~cem/sxss
Log | Files | Refs | README | LICENSE

Makefile (511B)


      1 # See LICENSE for copyright information
      2 PREFIX = /usr/local
      3 BINDIR = ${PREFIX}/bin
      4 
      5 LIBS   = -lXss -lX11 -lc
      6 CC     = cc
      7 
      8 CFLAGS = -std=c99 -Wpedantic -Wall -Os
      9 
     10 all: sxss
     11 
     12 sxss: config.h sxss.c
     13 	${CC} ${CFLAGS} ${LDFLAGS} -o sxss sxss.c ${LIBS}
     14 
     15 config.h: config.def.h
     16 	cp config.def.h config.h
     17 
     18 clean:
     19 	rm -f sxss
     20 
     21 install: all
     22 	mkdir -p ${DESTDIR}${BINDIR}
     23 	cp sxss ${DESTDIR}${BINDIR}/sxss
     24 	chmod 755 ${DESTDIR}${BINDIR}/sxss
     25 
     26 uninstall:
     27 	rm -f ${DESTDIR}${BINDIR}/sxss
     28 
     29 .PHONY: all clean install uninstall