garbeam@0: # gridwm - grid window manager garbeam@0: # (C)opyright MMVI Anselm R. Garbe garbeam@0: garbeam@0: include config.mk garbeam@0: garbeam@8: WMSRC = bar.c client.c cmd.c draw.c event.c key.c util.c wm.c garbeam@2: WMOBJ = ${WMSRC:.c=.o} garbeam@4: MENSRC = menu.c draw.c util.c garbeam@3: MENOBJ = ${MENSRC:.c=.o} garbeam@11: SELSRC = gridsel.c util.c garbeam@11: SELOBJ = ${SELSRC:.c=.o} garbeam@5: MAN1 = gridwm.1 gridmenu.1 garbeam@11: BIN = gridwm gridmenu gridsel garbeam@0: garbeam@11: all: config gridwm gridmenu gridsel garbeam@0: @echo finished garbeam@0: garbeam@1: config: garbeam@1: @echo gridwm build options: garbeam@1: @echo "LIBS = ${LIBS}" garbeam@1: @echo "CFLAGS = ${CFLAGS}" garbeam@1: @echo "LDFLAGS = ${LDFLAGS}" garbeam@1: @echo "CC = ${CC}" garbeam@1: garbeam@0: .c.o: garbeam@0: @echo CC $< garbeam@0: @${CC} -c ${CFLAGS} $< garbeam@0: garbeam@3: ${WMOBJ}: wm.h draw.h config.h util.h garbeam@3: garbeam@3: gridmenu: ${MENOBJ} garbeam@3: @echo LD $@ garbeam@3: @${CC} -o $@ ${MENOBJ} ${LDFLAGS} garbeam@0: garbeam@2: gridwm: ${WMOBJ} garbeam@0: @echo LD $@ garbeam@2: @${CC} -o $@ ${WMOBJ} ${LDFLAGS} garbeam@0: garbeam@11: gridsel: ${SELOBJ} garbeam@11: @echo LD $@ garbeam@11: @${CC} -o $@ ${SELOBJ} ${LDFLAGS} garbeam@11: garbeam@0: clean: garbeam@3: rm -f gridwm gridmenu *.o core garbeam@1: garbeam@1: dist: clean garbeam@1: mkdir -p gridwm-${VERSION} garbeam@3: cp -R Makefile README LICENSE config.mk *.h *.c ${MAN} gridwm-${VERSION} garbeam@1: tar -cf gridwm-${VERSION}.tar gridwm-${VERSION} garbeam@1: gzip gridwm-${VERSION}.tar garbeam@1: rm -rf gridwm-${VERSION} garbeam@1: garbeam@1: install: all garbeam@1: @mkdir -p ${DESTDIR}${PREFIX}/bin garbeam@1: @cp -f ${BIN} ${DESTDIR}${PREFIX}/bin garbeam@1: @echo installed executable files to ${DESTDIR}${PREFIX}/bin garbeam@1: @mkdir -p ${DESTDIR}${MANPREFIX}/man1 garbeam@1: @cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1 garbeam@1: @echo installed manual pages to ${DESTDIR}${MANPREFIX}/man1 garbeam@1: garbeam@1: uninstall: garbeam@1: for i in ${BIN}; do \ garbeam@1: rm -f ${DESTDIR}${PREFIX}/bin/`basename $$i`; \ garbeam@1: done garbeam@1: for i in ${MAN1}; do \ garbeam@1: rm -f ${DESTDIR}${MANPREFIX}/man1/`basename $$i`; \ garbeam@1: done