aewl
view Makefile @ 13:5cc5e55a132d
added protocol killing stuff
author | Anselm R. Garbe <garbeam@wmii.de> |
---|---|
date | Tue, 11 Jul 2006 16:14:22 +0200 |
parents | 7066ff2fe8bc |
children | 00d4d52b231f |
line source
1 # gridwm - grid window manager
2 # (C)opyright MMVI Anselm R. Garbe
4 include config.mk
6 WMSRC = bar.c client.c cmd.c draw.c event.c key.c util.c wm.c
7 WMOBJ = ${WMSRC:.c=.o}
8 MENSRC = menu.c draw.c util.c
9 MENOBJ = ${MENSRC:.c=.o}
10 SELSRC = gridsel.c util.c
11 SELOBJ = ${SELSRC:.c=.o}
12 MAN1 = gridwm.1 gridmenu.1
13 BIN = gridwm gridmenu gridsel
15 all: config gridwm gridmenu gridsel
16 @echo finished
18 config:
19 @echo gridwm build options:
20 @echo "LIBS = ${LIBS}"
21 @echo "CFLAGS = ${CFLAGS}"
22 @echo "LDFLAGS = ${LDFLAGS}"
23 @echo "CC = ${CC}"
25 .c.o:
26 @echo CC $<
27 @${CC} -c ${CFLAGS} $<
29 ${WMOBJ}: wm.h draw.h config.h util.h
31 gridmenu: ${MENOBJ}
32 @echo LD $@
33 @${CC} -o $@ ${MENOBJ} ${LDFLAGS}
35 gridwm: ${WMOBJ}
36 @echo LD $@
37 @${CC} -o $@ ${WMOBJ} ${LDFLAGS}
39 gridsel: ${SELOBJ}
40 @echo LD $@
41 @${CC} -o $@ ${SELOBJ} ${LDFLAGS}
43 clean:
44 rm -f gridwm gridmenu *.o core
46 dist: clean
47 mkdir -p gridwm-${VERSION}
48 cp -R Makefile README LICENSE config.mk *.h *.c ${MAN} gridwm-${VERSION}
49 tar -cf gridwm-${VERSION}.tar gridwm-${VERSION}
50 gzip gridwm-${VERSION}.tar
51 rm -rf gridwm-${VERSION}
53 install: all
54 @mkdir -p ${DESTDIR}${PREFIX}/bin
55 @cp -f ${BIN} ${DESTDIR}${PREFIX}/bin
56 @echo installed executable files to ${DESTDIR}${PREFIX}/bin
57 @mkdir -p ${DESTDIR}${MANPREFIX}/man1
58 @cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1
59 @echo installed manual pages to ${DESTDIR}${MANPREFIX}/man1
61 uninstall:
62 for i in ${BIN}; do \
63 rm -f ${DESTDIR}${PREFIX}/bin/`basename $$i`; \
64 done
65 for i in ${MAN1}; do \
66 rm -f ${DESTDIR}${MANPREFIX}/man1/`basename $$i`; \
67 done