author | Anselm R. Garbe <garbeam@wmii.de> |
Mon, 10 Jul 2006 19:47:35 +0200 | |
changeset 4 | 991bd8b0771e |
parent 3 | e969f3575b7a |
child 5 | e5018cae273f |
permissions | -rw-r--r-- |
0 | 1 |
# gridwm - grid window manager |
2 |
# (C)opyright MMVI Anselm R. Garbe |
|
3 |
||
4 |
include config.mk |
|
5 |
||
2 | 6 |
WMSRC = wm.c draw.c util.c |
7 |
WMOBJ = ${WMSRC:.c=.o} |
|
4
991bd8b0771e
renamed gridmenu.c into menu.c
Anselm R. Garbe <garbeam@wmii.de>
parents:
3
diff
changeset
|
8 |
MENSRC = menu.c draw.c util.c |
3
e969f3575b7a
several new changes, made gridmenu working
Anselm R. Garbe <garbeam@wmii.de>
parents:
2
diff
changeset
|
9 |
MENOBJ = ${MENSRC:.c=.o} |
1 | 10 |
MAN = gridwm.1 |
11 |
BIN = gridwm gridmenu |
|
0 | 12 |
|
3
e969f3575b7a
several new changes, made gridmenu working
Anselm R. Garbe <garbeam@wmii.de>
parents:
2
diff
changeset
|
13 |
all: config gridwm gridmenu |
0 | 14 |
@echo finished |
15 |
||
1 | 16 |
config: |
17 |
@echo gridwm build options: |
|
18 |
@echo "LIBS = ${LIBS}" |
|
19 |
@echo "CFLAGS = ${CFLAGS}" |
|
20 |
@echo "LDFLAGS = ${LDFLAGS}" |
|
21 |
@echo "CC = ${CC}" |
|
22 |
||
0 | 23 |
.c.o: |
24 |
@echo CC $< |
|
25 |
@${CC} -c ${CFLAGS} $< |
|
26 |
||
3
e969f3575b7a
several new changes, made gridmenu working
Anselm R. Garbe <garbeam@wmii.de>
parents:
2
diff
changeset
|
27 |
${WMOBJ}: wm.h draw.h config.h util.h |
e969f3575b7a
several new changes, made gridmenu working
Anselm R. Garbe <garbeam@wmii.de>
parents:
2
diff
changeset
|
28 |
|
e969f3575b7a
several new changes, made gridmenu working
Anselm R. Garbe <garbeam@wmii.de>
parents:
2
diff
changeset
|
29 |
gridmenu: ${MENOBJ} |
e969f3575b7a
several new changes, made gridmenu working
Anselm R. Garbe <garbeam@wmii.de>
parents:
2
diff
changeset
|
30 |
@echo LD $@ |
e969f3575b7a
several new changes, made gridmenu working
Anselm R. Garbe <garbeam@wmii.de>
parents:
2
diff
changeset
|
31 |
@${CC} -o $@ ${MENOBJ} ${LDFLAGS} |
0 | 32 |
|
2 | 33 |
gridwm: ${WMOBJ} |
0 | 34 |
@echo LD $@ |
2 | 35 |
@${CC} -o $@ ${WMOBJ} ${LDFLAGS} |
0 | 36 |
|
37 |
clean: |
|
3
e969f3575b7a
several new changes, made gridmenu working
Anselm R. Garbe <garbeam@wmii.de>
parents:
2
diff
changeset
|
38 |
rm -f gridwm gridmenu *.o core |
1 | 39 |
|
40 |
dist: clean |
|
41 |
mkdir -p gridwm-${VERSION} |
|
3
e969f3575b7a
several new changes, made gridmenu working
Anselm R. Garbe <garbeam@wmii.de>
parents:
2
diff
changeset
|
42 |
cp -R Makefile README LICENSE config.mk *.h *.c ${MAN} gridwm-${VERSION} |
1 | 43 |
tar -cf gridwm-${VERSION}.tar gridwm-${VERSION} |
44 |
gzip gridwm-${VERSION}.tar |
|
45 |
rm -rf gridwm-${VERSION} |
|
46 |
||
47 |
install: all |
|
48 |
@mkdir -p ${DESTDIR}${PREFIX}/bin |
|
49 |
@cp -f ${BIN} ${DESTDIR}${PREFIX}/bin |
|
50 |
@echo installed executable files to ${DESTDIR}${PREFIX}/bin |
|
51 |
@mkdir -p ${DESTDIR}${MANPREFIX}/man1 |
|
52 |
@cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1 |
|
53 |
@echo installed manual pages to ${DESTDIR}${MANPREFIX}/man1 |
|
54 |
||
55 |
uninstall: |
|
56 |
for i in ${BIN}; do \ |
|
57 |
rm -f ${DESTDIR}${PREFIX}/bin/`basename $$i`; \ |
|
58 |
done |
|
59 |
for i in ${MAN1}; do \ |
|
60 |
rm -f ${DESTDIR}${MANPREFIX}/man1/`basename $$i`; \ |
|
61 |
done |