equal
deleted
inserted
replaced
1 # gridwm - grid window manager |
1 # gridwm - grid 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 WMSRC = bar.c 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 WMOBJ = ${WMSRC:.c=.o} |
7 OBJ = ${SRC:.c=.o} |
8 MENSRC = menu.c draw.c util.c |
8 MAN1 = gridwm.1 |
9 MENOBJ = ${MENSRC:.c=.o} |
9 BIN = gridwm |
10 MAN1 = gridwm.1 gridmenu.1 |
|
11 BIN = gridwm gridmenu |
|
12 |
10 |
13 all: config gridwm gridmenu |
11 all: config gridwm |
14 @echo finished |
12 @echo finished |
15 |
13 |
16 config: |
14 config: |
17 @echo gridwm build options: |
15 @echo gridwm build options: |
18 @echo "LIBS = ${LIBS}" |
16 @echo "LIBS = ${LIBS}" |
22 |
20 |
23 .c.o: |
21 .c.o: |
24 @echo CC $< |
22 @echo CC $< |
25 @${CC} -c ${CFLAGS} $< |
23 @${CC} -c ${CFLAGS} $< |
26 |
24 |
27 ${WMOBJ}: wm.h draw.h config.h util.h |
25 ${OBJ}: wm.h |
28 |
26 |
29 gridmenu: ${MENOBJ} |
27 gridwm: ${OBJ} |
30 @echo LD $@ |
28 @echo LD $@ |
31 @${CC} -o $@ ${MENOBJ} ${LDFLAGS} |
29 @${CC} -o $@ ${OBJ} ${LDFLAGS} |
32 |
|
33 gridwm: ${WMOBJ} |
|
34 @echo LD $@ |
|
35 @${CC} -o $@ ${WMOBJ} ${LDFLAGS} |
|
36 |
30 |
37 clean: |
31 clean: |
38 rm -f gridwm gridmenu *.o core |
32 rm -f gridwm *.o core |
39 |
33 |
40 dist: clean |
34 dist: clean |
41 mkdir -p gridwm-${VERSION} |
35 mkdir -p gridwm-${VERSION} |
42 cp -R Makefile README LICENSE config.mk *.h *.c ${MAN} gridwm-${VERSION} |
36 cp -R Makefile README LICENSE config.mk *.h *.c ${MAN} gridwm-${VERSION} |
43 tar -cf gridwm-${VERSION}.tar gridwm-${VERSION} |
37 tar -cf gridwm-${VERSION}.tar gridwm-${VERSION} |