diff -r a22a319f5129 -r 3e9290bf7249 Makefile --- a/Makefile Sat Mar 16 00:03:51 2013 +0400 +++ b/Makefile Mon Oct 20 22:59:08 2014 +0400 @@ -1,22 +1,22 @@ -# dwm - dynamic window manager # See LICENSE file for copyright and license details. +# Build system is based on build system of dwm. include config.mk SRC = dpoke.c OBJ = ${SRC:.c=.o} -all: options dpoke +all: options dpoke status options: @echo dpoke build options: - @echo "CFLAGS = ${CFLAGS}" - @echo "LDFLAGS = ${LDFLAGS}" + @echo "CFLAGS = ${DPOKE_CFLAGS}" + @echo "LDFLAGS = ${DPOKE_LDFLAGS}" @echo "CC = ${CC}" .c.o: @echo CC $< - @${CC} -c ${CFLAGS} $< + @${CC} -c ${DPOKE_CFLAGS} $< ${OBJ}: config.h config.mk @@ -26,19 +26,23 @@ dpoke: ${OBJ} @echo CC -o $@ - @${CC} -o $@ ${OBJ} ${LDFLAGS} + @${CC} -o $@ ${OBJ} ${DPOKE_LDFLAGS} clean: @echo cleaning @rm -f dpoke ${OBJ} dpoke-${VERSION}.tar.gz + @for dir in $(STATUS); do make -C $$dir clean; done dist: clean @echo creating dist tarball @mkdir -p dpoke-${VERSION} - @cp -R LICENSE Makefile README config.def.h config.mk \ - ${SRC} dpoke-${VERSION} + @cp -R LICENSE Makefile* README config.def.h config.mk \ + ${SRC} status-* dpoke-${VERSION} @tar -cf dpoke-${VERSION}.tar dpoke-${VERSION} @gzip dpoke-${VERSION}.tar @rm -rf dpoke-${VERSION} +status: + for dir in $(STATUS); do make -C $$dir; done + .PHONY: all options clean dist