0
|
1 |
# See LICENSE file for copyright and license details. |
1
|
2 |
# Build system is based on build system of dwm. |
0
|
3 |
|
|
4 |
include config.mk |
|
5 |
|
|
6 |
SRC = dpoke.c |
|
7 |
OBJ = ${SRC:.c=.o} |
|
8 |
|
1
|
9 |
all: options dpoke status |
0
|
10 |
|
|
11 |
options: |
|
12 |
@echo dpoke build options: |
1
|
13 |
@echo "CFLAGS = ${DPOKE_CFLAGS}" |
|
14 |
@echo "LDFLAGS = ${DPOKE_LDFLAGS}" |
0
|
15 |
@echo "CC = ${CC}" |
|
16 |
|
|
17 |
.c.o: |
|
18 |
@echo CC $< |
1
|
19 |
@${CC} -c ${DPOKE_CFLAGS} $< |
0
|
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 $@ |
1
|
29 |
@${CC} -o $@ ${OBJ} ${DPOKE_LDFLAGS} |
0
|
30 |
|
|
31 |
clean: |
|
32 |
@echo cleaning |
|
33 |
@rm -f dpoke ${OBJ} dpoke-${VERSION}.tar.gz |
1
|
34 |
@for dir in $(STATUS); do make -C $$dir clean; done |
0
|
35 |
|
|
36 |
dist: clean |
|
37 |
@echo creating dist tarball |
|
38 |
@mkdir -p dpoke-${VERSION} |
1
|
39 |
@cp -R LICENSE Makefile* README config.def.h config.mk \ |
|
40 |
${SRC} status-* dpoke-${VERSION} |
0
|
41 |
@tar -cf dpoke-${VERSION}.tar dpoke-${VERSION} |
|
42 |
@gzip dpoke-${VERSION}.tar |
|
43 |
@rm -rf dpoke-${VERSION} |
|
44 |
|
1
|
45 |
status: |
|
46 |
for dir in $(STATUS); do make -C $$dir; done |
|
47 |
|
0
|
48 |
.PHONY: all options clean dist |