Configuration file for DWM on MacBook Air
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.

61 lines
1.4 KiB

18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
  1. # gridwm - grid window manager
  2. # (C)opyright MMVI Anselm R. Garbe
  3. include config.mk
  4. WMSRC = bar.c client.c draw.c event.c util.c wm.c
  5. WMOBJ = ${WMSRC:.c=.o}
  6. MENSRC = menu.c draw.c util.c
  7. MENOBJ = ${MENSRC:.c=.o}
  8. MAN1 = gridwm.1 gridmenu.1
  9. BIN = gridwm gridmenu
  10. all: config gridwm gridmenu
  11. @echo finished
  12. config:
  13. @echo gridwm build options:
  14. @echo "LIBS = ${LIBS}"
  15. @echo "CFLAGS = ${CFLAGS}"
  16. @echo "LDFLAGS = ${LDFLAGS}"
  17. @echo "CC = ${CC}"
  18. .c.o:
  19. @echo CC $<
  20. @${CC} -c ${CFLAGS} $<
  21. ${WMOBJ}: wm.h draw.h config.h util.h
  22. gridmenu: ${MENOBJ}
  23. @echo LD $@
  24. @${CC} -o $@ ${MENOBJ} ${LDFLAGS}
  25. gridwm: ${WMOBJ}
  26. @echo LD $@
  27. @${CC} -o $@ ${WMOBJ} ${LDFLAGS}
  28. clean:
  29. rm -f gridwm gridmenu *.o core
  30. dist: clean
  31. mkdir -p gridwm-${VERSION}
  32. cp -R Makefile README LICENSE config.mk *.h *.c ${MAN} gridwm-${VERSION}
  33. tar -cf gridwm-${VERSION}.tar gridwm-${VERSION}
  34. gzip gridwm-${VERSION}.tar
  35. rm -rf gridwm-${VERSION}
  36. install: all
  37. @mkdir -p ${DESTDIR}${PREFIX}/bin
  38. @cp -f ${BIN} ${DESTDIR}${PREFIX}/bin
  39. @echo installed executable files to ${DESTDIR}${PREFIX}/bin
  40. @mkdir -p ${DESTDIR}${MANPREFIX}/man1
  41. @cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1
  42. @echo installed manual pages to ${DESTDIR}${MANPREFIX}/man1
  43. uninstall:
  44. for i in ${BIN}; do \
  45. rm -f ${DESTDIR}${PREFIX}/bin/`basename $$i`; \
  46. done
  47. for i in ${MAN1}; do \
  48. rm -f ${DESTDIR}${MANPREFIX}/man1/`basename $$i`; \
  49. done