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 SRC = wm.c |
6 WMSRC = wm.c draw.c util.c |
7 OBJ = ${SRC:.c=.o} |
7 WMOBJ = ${WMSRC:.c=.o} |
8 MAN = gridwm.1 |
8 MAN = gridwm.1 |
9 BIN = gridwm gridmenu |
9 BIN = gridwm gridmenu |
10 |
10 |
11 all: config gridwm |
11 all: config gridwm |
12 @echo finished |
12 @echo finished |
20 |
20 |
21 .c.o: |
21 .c.o: |
22 @echo CC $< |
22 @echo CC $< |
23 @${CC} -c ${CFLAGS} $< |
23 @${CC} -c ${CFLAGS} $< |
24 |
24 |
25 ${OBJ}: wm.h |
25 ${WMOBJ}: wm.h draw.h config.h |
26 |
26 |
27 gridwm: ${OBJ} |
27 gridwm: ${WMOBJ} |
28 @echo LD $@ |
28 @echo LD $@ |
29 @${CC} -o $@ ${OBJ} ${X11LDFLAGS} |
29 @${CC} -o $@ ${WMOBJ} ${LDFLAGS} |
30 |
30 |
31 clean: |
31 clean: |
32 rm -f gridwm *.o |
32 rm -f gridwm *.o |
33 |
33 |
34 dist: clean |
34 dist: clean |
35 mkdir -p gridwm-${VERSION} |
35 mkdir -p gridwm-${VERSION} |
36 cp -R Makefile README LICENSE config.mk ${SRC} ${MAN} gridwm-${VERSION} |
36 cp -R Makefile README LICENSE config.mk ${WMSRC} ${MAN} gridwm-${VERSION} |
37 tar -cf gridwm-${VERSION}.tar gridwm-${VERSION} |
37 tar -cf gridwm-${VERSION}.tar gridwm-${VERSION} |
38 gzip gridwm-${VERSION}.tar |
38 gzip gridwm-${VERSION}.tar |
39 rm -rf gridwm-${VERSION} |
39 rm -rf gridwm-${VERSION} |
40 |
40 |
41 install: all |
41 install: all |