equal
deleted
inserted
replaced
1 # gridwm - grid window manager |
1 # dwm - dynamic window manager |
2 # (C)opyright MMVI Anselm R. Garbe |
2 # (C)opyright MMVI Anselm R. Garbe |
3 |
3 |
4 include config.mk |
4 include config.mk |
5 |
5 |
6 SRC = client.c draw.c event.c kb.c mouse.c util.c wm.c |
6 SRC = client.c draw.c event.c kb.c mouse.c util.c wm.c |
7 OBJ = ${SRC:.c=.o} |
7 OBJ = ${SRC:.c=.o} |
8 MAN1 = gridwm.1 |
8 MAN1 = dwm.1 |
9 BIN = gridwm |
9 BIN = dwm |
10 |
10 |
11 all: config gridwm |
11 all: config dwm |
12 @echo finished |
12 @echo finished |
13 |
13 |
14 config: |
14 config: |
15 @echo gridwm build options: |
15 @echo dwm build options: |
16 @echo "LIBS = ${LIBS}" |
16 @echo "LIBS = ${LIBS}" |
17 @echo "CFLAGS = ${CFLAGS}" |
17 @echo "CFLAGS = ${CFLAGS}" |
18 @echo "LDFLAGS = ${LDFLAGS}" |
18 @echo "LDFLAGS = ${LDFLAGS}" |
19 @echo "CC = ${CC}" |
19 @echo "CC = ${CC}" |
20 |
20 |
22 @echo CC $< |
22 @echo CC $< |
23 @${CC} -c ${CFLAGS} $< |
23 @${CC} -c ${CFLAGS} $< |
24 |
24 |
25 ${OBJ}: wm.h |
25 ${OBJ}: wm.h |
26 |
26 |
27 gridwm: ${OBJ} |
27 dwm: ${OBJ} |
28 @echo LD $@ |
28 @echo LD $@ |
29 @${CC} -o $@ ${OBJ} ${LDFLAGS} |
29 @${CC} -o $@ ${OBJ} ${LDFLAGS} |
30 |
30 |
31 clean: |
31 clean: |
32 rm -f gridwm *.o core |
32 rm -f dwm *.o core |
33 |
33 |
34 dist: clean |
34 dist: clean |
35 mkdir -p gridwm-${VERSION} |
35 mkdir -p dwm-${VERSION} |
36 cp -R Makefile README LICENSE config.mk *.h *.c ${MAN} gridwm-${VERSION} |
36 cp -R Makefile README LICENSE config.mk *.h *.c ${MAN} dwm-${VERSION} |
37 tar -cf gridwm-${VERSION}.tar gridwm-${VERSION} |
37 tar -cf dwm-${VERSION}.tar dwm-${VERSION} |
38 gzip gridwm-${VERSION}.tar |
38 gzip dwm-${VERSION}.tar |
39 rm -rf gridwm-${VERSION} |
39 rm -rf dwm-${VERSION} |
40 |
40 |
41 install: all |
41 install: all |
42 @mkdir -p ${DESTDIR}${PREFIX}/bin |
42 @mkdir -p ${DESTDIR}${PREFIX}/bin |
43 @cp -f ${BIN} ${DESTDIR}${PREFIX}/bin |
43 @cp -f ${BIN} ${DESTDIR}${PREFIX}/bin |
44 @echo installed executable files to ${DESTDIR}${PREFIX}/bin |
44 @echo installed executable files to ${DESTDIR}${PREFIX}/bin |