dwm

git clone git://mattcarlson.org/repos/dwm.git
Log | Files | Refs

Makefile (649B)


      1 # dwm - dynamic window manager
      2 # See LICENSE file for copyright and license details.
      3 
      4 include config.mk
      5 
      6 SRC = drw.c dwm.c util.c
      7 OBJ = ${SRC:.c=.o}
      8 
      9 all: options dwm
     10 
     11 options:
     12 	@echo dwm build options:
     13 	@echo "CFLAGS   = ${CFLAGS}"
     14 	@echo "LDFLAGS  = ${LDFLAGS}"
     15 	@echo "CC       = ${CC}"
     16 
     17 .c.o:
     18 	${CC} -c ${CFLAGS} $<
     19 
     20 ${OBJ}: config.h config.mk
     21 
     22 dwm: ${OBJ}
     23 	${CC} -o $@ ${OBJ} ${LDFLAGS}
     24 
     25 install: all
     26 	mkdir -p ${DESTDIR}${PREFIX}/bin
     27 	cp -f dwm dwmc ${DESTDIR}${PREFIX}/bin
     28 	chmod 755 ${DESTDIR}${PREFIX}/bin/dwm ${DESTDIR}${PREFIX}/bin/dwmc
     29 	rm -f dwm *.o
     30 
     31 uninstall:
     32 	rm -f ${DESTDIR}${PREFIX}/bin/dwm
     33 
     34 .PHONY: all options install uninstall