equal
deleted
inserted
replaced
3 |
3 |
4 include config.mk |
4 include config.mk |
5 |
5 |
6 WMSRC = wm.c draw.c util.c |
6 WMSRC = wm.c draw.c util.c |
7 WMOBJ = ${WMSRC:.c=.o} |
7 WMOBJ = ${WMSRC:.c=.o} |
|
8 MENSRC = gridmenu.c draw.c util.c |
|
9 MENOBJ = ${MENSRC:.c=.o} |
8 MAN = gridwm.1 |
10 MAN = gridwm.1 |
9 BIN = gridwm gridmenu |
11 BIN = gridwm gridmenu |
10 |
12 |
11 all: config gridwm |
13 all: config gridwm gridmenu |
12 @echo finished |
14 @echo finished |
13 |
15 |
14 config: |
16 config: |
15 @echo gridwm build options: |
17 @echo gridwm build options: |
16 @echo "LIBS = ${LIBS}" |
18 @echo "LIBS = ${LIBS}" |
20 |
22 |
21 .c.o: |
23 .c.o: |
22 @echo CC $< |
24 @echo CC $< |
23 @${CC} -c ${CFLAGS} $< |
25 @${CC} -c ${CFLAGS} $< |
24 |
26 |
25 ${WMOBJ}: wm.h draw.h config.h |
27 ${WMOBJ}: wm.h draw.h config.h util.h |
|
28 |
|
29 gridmenu: ${MENOBJ} |
|
30 @echo LD $@ |
|
31 @${CC} -o $@ ${MENOBJ} ${LDFLAGS} |
26 |
32 |
27 gridwm: ${WMOBJ} |
33 gridwm: ${WMOBJ} |
28 @echo LD $@ |
34 @echo LD $@ |
29 @${CC} -o $@ ${WMOBJ} ${LDFLAGS} |
35 @${CC} -o $@ ${WMOBJ} ${LDFLAGS} |
30 |
36 |
31 clean: |
37 clean: |
32 rm -f gridwm *.o |
38 rm -f gridwm gridmenu *.o core |
33 |
39 |
34 dist: clean |
40 dist: clean |
35 mkdir -p gridwm-${VERSION} |
41 mkdir -p gridwm-${VERSION} |
36 cp -R Makefile README LICENSE config.mk ${WMSRC} ${MAN} gridwm-${VERSION} |
42 cp -R Makefile README LICENSE config.mk *.h *.c ${MAN} gridwm-${VERSION} |
37 tar -cf gridwm-${VERSION}.tar gridwm-${VERSION} |
43 tar -cf gridwm-${VERSION}.tar gridwm-${VERSION} |
38 gzip gridwm-${VERSION}.tar |
44 gzip gridwm-${VERSION}.tar |
39 rm -rf gridwm-${VERSION} |
45 rm -rf gridwm-${VERSION} |
40 |
46 |
41 install: all |
47 install: all |