0
|
1 |
# dwm - dynamic window manager
|
|
2 |
# See LICENSE file for copyright and license details.
|
|
3 |
|
|
4 |
include config.mk
|
|
5 |
|
|
6 |
SRC = dpoke.c
|
|
7 |
OBJ = ${SRC:.c=.o}
|
|
8 |
|
|
9 |
all: options dpoke
|
|
10 |
|
|
11 |
options:
|
|
12 |
@echo dpoke 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.h config.mk
|
|
22 |
|
|
23 |
config.h:
|
|
24 |
@echo creating $@ from config.def.h
|
|
25 |
@cp config.def.h $@
|
|
26 |
|
|
27 |
dpoke: ${OBJ}
|
|
28 |
@echo CC -o $@
|
|
29 |
@${CC} -o $@ ${OBJ} ${LDFLAGS}
|
|
30 |
|
|
31 |
clean:
|
|
32 |
@echo cleaning
|
|
33 |
@rm -f dpoke ${OBJ} dpoke-${VERSION}.tar.gz
|
|
34 |
|
|
35 |
dist: clean
|
|
36 |
@echo creating dist tarball
|
|
37 |
@mkdir -p dpoke-${VERSION}
|
|
38 |
@cp -R LICENSE Makefile README config.def.h config.mk \
|
|
39 |
${SRC} dpoke-${VERSION}
|
|
40 |
@tar -cf dpoke-${VERSION}.tar dpoke-${VERSION}
|
|
41 |
@gzip dpoke-${VERSION}.tar
|
|
42 |
@rm -rf dpoke-${VERSION}
|
|
43 |
|
|
44 |
.PHONY: all options clean dist
|