equal
deleted
inserted
replaced
3 |
3 |
4 include config.mk |
4 include config.mk |
5 |
5 |
6 SRC = client.c draw.c event.c main.c tag.c util.c |
6 SRC = client.c draw.c event.c main.c tag.c util.c |
7 OBJ = ${SRC:.c=.o} |
7 OBJ = ${SRC:.c=.o} |
8 CONFIG ?= config.default.h |
|
9 |
8 |
10 all: options dwm |
9 all: options dwm |
11 @echo finished |
10 @echo finished |
12 |
11 |
13 options: |
12 options: |
21 @${CC} -c ${CFLAGS} $< |
20 @${CC} -c ${CFLAGS} $< |
22 |
21 |
23 ${OBJ}: dwm.h config.h |
22 ${OBJ}: dwm.h config.h |
24 |
23 |
25 config.h: |
24 config.h: |
26 @echo creating $@ from ${CONFIG} |
25 @echo creating $@ from config.default.h |
27 @cp ${CONFIG} $@ |
26 @cp config.default.h $@ |
28 |
27 |
29 dwm: ${OBJ} |
28 dwm: ${OBJ} |
30 @echo LD $@ |
29 @echo LD $@ |
31 @${CC} -o $@ ${OBJ} ${LDFLAGS} |
30 @${CC} -o $@ ${OBJ} ${LDFLAGS} |
32 |
31 |