# dwm - dynamic window manager
# See LICENSE file for copyright and license details.
include config.mk
SRC = dpoke.c
OBJ = ${SRC:.c=.o}
all: options dpoke
options:
@echo dpoke build options:
@echo "CFLAGS = ${CFLAGS}"
@echo "LDFLAGS = ${LDFLAGS}"
@echo "CC = ${CC}"
.c.o:
@echo CC $<
@${CC} -c ${CFLAGS} $<
${OBJ}: config.h config.mk
config.h:
@echo creating $@ from config.def.h
@cp config.def.h $@
dpoke: ${OBJ}
@echo CC -o $@
@${CC} -o $@ ${OBJ} ${LDFLAGS}
clean:
@echo cleaning
@rm -f dpoke ${OBJ} dpoke-${VERSION}.tar.gz
dist: clean
@echo creating dist tarball
@mkdir -p dpoke-${VERSION}
@cp -R LICENSE Makefile README config.def.h config.mk \
${SRC} dpoke-${VERSION}
@tar -cf dpoke-${VERSION}.tar dpoke-${VERSION}
@gzip dpoke-${VERSION}.tar
@rm -rf dpoke-${VERSION}
.PHONY: all options clean dist