2006-07-10 09:38:18 -05:00
|
|
|
# gridwm - grid window manager
|
|
|
|
# (C)opyright MMVI Anselm R. Garbe
|
|
|
|
|
|
|
|
include config.mk
|
|
|
|
|
2006-07-11 04:50:18 -05:00
|
|
|
WMSRC = bar.c client.c cmd.c draw.c event.c key.c util.c wm.c
|
2006-07-10 11:35:39 -05:00
|
|
|
WMOBJ = ${WMSRC:.c=.o}
|
2006-07-10 12:47:35 -05:00
|
|
|
MENSRC = menu.c draw.c util.c
|
2006-07-10 12:46:24 -05:00
|
|
|
MENOBJ = ${MENSRC:.c=.o}
|
2006-07-10 15:16:48 -05:00
|
|
|
MAN1 = gridwm.1 gridmenu.1
|
2006-07-11 11:19:01 -05:00
|
|
|
BIN = gridwm gridmenu
|
2006-07-10 09:38:18 -05:00
|
|
|
|
2006-07-11 11:19:01 -05:00
|
|
|
all: config gridwm gridmenu
|
2006-07-10 09:38:18 -05:00
|
|
|
@echo finished
|
|
|
|
|
2006-07-10 09:49:43 -05:00
|
|
|
config:
|
|
|
|
@echo gridwm build options:
|
|
|
|
@echo "LIBS = ${LIBS}"
|
|
|
|
@echo "CFLAGS = ${CFLAGS}"
|
|
|
|
@echo "LDFLAGS = ${LDFLAGS}"
|
|
|
|
@echo "CC = ${CC}"
|
|
|
|
|
2006-07-10 09:38:18 -05:00
|
|
|
.c.o:
|
|
|
|
@echo CC $<
|
|
|
|
@${CC} -c ${CFLAGS} $<
|
|
|
|
|
2006-07-10 12:46:24 -05:00
|
|
|
${WMOBJ}: wm.h draw.h config.h util.h
|
|
|
|
|
|
|
|
gridmenu: ${MENOBJ}
|
|
|
|
@echo LD $@
|
|
|
|
@${CC} -o $@ ${MENOBJ} ${LDFLAGS}
|
2006-07-10 09:38:18 -05:00
|
|
|
|
2006-07-10 11:35:39 -05:00
|
|
|
gridwm: ${WMOBJ}
|
2006-07-10 09:38:18 -05:00
|
|
|
@echo LD $@
|
2006-07-10 11:35:39 -05:00
|
|
|
@${CC} -o $@ ${WMOBJ} ${LDFLAGS}
|
2006-07-10 09:38:18 -05:00
|
|
|
|
|
|
|
clean:
|
2006-07-10 12:46:24 -05:00
|
|
|
rm -f gridwm gridmenu *.o core
|
2006-07-10 09:49:43 -05:00
|
|
|
|
|
|
|
dist: clean
|
|
|
|
mkdir -p gridwm-${VERSION}
|
2006-07-10 12:46:24 -05:00
|
|
|
cp -R Makefile README LICENSE config.mk *.h *.c ${MAN} gridwm-${VERSION}
|
2006-07-10 09:49:43 -05:00
|
|
|
tar -cf gridwm-${VERSION}.tar gridwm-${VERSION}
|
|
|
|
gzip gridwm-${VERSION}.tar
|
|
|
|
rm -rf gridwm-${VERSION}
|
|
|
|
|
|
|
|
install: all
|
|
|
|
@mkdir -p ${DESTDIR}${PREFIX}/bin
|
|
|
|
@cp -f ${BIN} ${DESTDIR}${PREFIX}/bin
|
|
|
|
@echo installed executable files to ${DESTDIR}${PREFIX}/bin
|
|
|
|
@mkdir -p ${DESTDIR}${MANPREFIX}/man1
|
|
|
|
@cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1
|
|
|
|
@echo installed manual pages to ${DESTDIR}${MANPREFIX}/man1
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
for i in ${BIN}; do \
|
|
|
|
rm -f ${DESTDIR}${PREFIX}/bin/`basename $$i`; \
|
|
|
|
done
|
|
|
|
for i in ${MAN1}; do \
|
|
|
|
rm -f ${DESTDIR}${MANPREFIX}/man1/`basename $$i`; \
|
|
|
|
done
|