swm

sigma window manager
git clone git://wolog.xyz/swm
Log | Files | Refs | README | LICENSE

Makefile (545B)


      1 include config.mk
      2 
      3 SWMSRC = bar.c client.c config.c evt.c lyt.c main.c misc.c monitor.c
      4 SWMOBJ = ${SWMSRC:.c=.o}
      5 SRC = ${SWMSRC} drw.c util.c
      6 OBJ = ${SRC:.c=.o}
      7 
      8 all: swm
      9 
     10 .c.o:
     11 	${CC} -c ${CFLAGS} $<
     12 
     13 ${OBJ}: config.mk util.h
     14 ${SWMOBJ}: config.h swm.h
     15 bar.o drw.o: drw.h
     16 
     17 swm: ${OBJ}
     18 	${CC} -o $@ ${OBJ} ${LDFLAGS}
     19 
     20 clean:
     21 	rm -f swm *.o
     22 
     23 install: all
     24 	mkdir -p ${DESTDIR}${PREFIX}/bin
     25 	cp -f swm ${DESTDIR}${PREFIX}/bin
     26 	chmod 755 ${DESTDIR}${PREFIX}/bin/swm
     27 
     28 uninstall:
     29 	rm -f ${DESTDIR}${PREFIX}/bin/swm
     30 
     31 .PHONY: all clean install uninstall