dws

a new direct/dynamic/dri/drm based window system
git clone git://git.suckless.org/dws
Log | Files | Refs | README | LICENSE

Makefile (1044B)


      1 # dws - a new DRM-based window system
      2 # See LICENSE file for copyright and license details.
      3 
      4 include config.mk
      5 
      6 SRC = dws.c
      7 OBJ = ${SRC:.c=.o}
      8 
      9 all: options dws
     10 
     11 options:
     12 	@echo dws build options:
     13 	@echo "CFLAGS   = ${CFLAGS}"
     14 	@echo "LDFLAGS  = ${LDFLAGS}"
     15 	@echo "CC       = ${CC}"
     16 
     17 .c.o:
     18 	@echo CC $<
     19 	@${CC} -c ${CFLAGS} $<
     20 
     21 ${OBJ}: config.mk
     22 
     23 dws: ${OBJ}
     24 	@echo CC -o $@
     25 	@${CC} -o $@ ${OBJ} ${LDFLAGS}
     26 
     27 clean:
     28 	@echo cleaning
     29 	@rm -f dws ${OBJ} dws-${VERSION}.tar.gz
     30 
     31 dist: clean
     32 	@echo creating dist tarball
     33 	@mkdir -p dws-${VERSION}
     34 	@cp -R LICENSE Makefile README config.mk ${SRC} dws-${VERSION}
     35 	@tar -cf dws-${VERSION}.tar dws-${VERSION}
     36 	@gzip dws-${VERSION}.tar
     37 	@rm -rf dws-${VERSION}
     38 
     39 install: all
     40 	@echo installing executable file to ${DESTDIR}${PREFIX}/bin
     41 	@mkdir -p ${DESTDIR}${PREFIX}/bin
     42 	@cp -f dws ${DESTDIR}${PREFIX}/bin
     43 	@chmod 755 ${DESTDIR}${PREFIX}/bin/dws
     44 
     45 uninstall:
     46 	@echo removing executable file from ${DESTDIR}${PREFIX}/bin
     47 	@rm -f ${DESTDIR}${PREFIX}/bin/dws
     48 
     49 .PHONY: all options clean dist install uninstall