You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DWM/Makefile

62 lines
1.3 KiB

19 years ago
# gridwm - grid window manager
# (C)opyright MMVI Anselm R. Garbe
include config.mk
19 years ago
WMSRC = wm.c draw.c util.c
WMOBJ = ${WMSRC:.c=.o}
MENSRC = gridmenu.c draw.c util.c
MENOBJ = ${MENSRC:.c=.o}
19 years ago
MAN = gridwm.1
BIN = gridwm gridmenu
19 years ago
all: config gridwm gridmenu
19 years ago
@echo finished
19 years ago
config:
@echo gridwm build options:
@echo "LIBS = ${LIBS}"
@echo "CFLAGS = ${CFLAGS}"
@echo "LDFLAGS = ${LDFLAGS}"
@echo "CC = ${CC}"
19 years ago
.c.o:
@echo CC $<
@${CC} -c ${CFLAGS} $<
${WMOBJ}: wm.h draw.h config.h util.h
gridmenu: ${MENOBJ}
@echo LD $@
@${CC} -o $@ ${MENOBJ} ${LDFLAGS}
19 years ago
19 years ago
gridwm: ${WMOBJ}
19 years ago
@echo LD $@
19 years ago
@${CC} -o $@ ${WMOBJ} ${LDFLAGS}
19 years ago
clean:
rm -f gridwm gridmenu *.o core
19 years ago
dist: clean
mkdir -p gridwm-${VERSION}
cp -R Makefile README LICENSE config.mk *.h *.c ${MAN} gridwm-${VERSION}
19 years ago
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