Configuration of dwm for Mac Computers
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.5 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
  1. # dwm - dynamic window manager
  2. # (C)opyright MMVI-MMVII Anselm R. Garbe
  3. include config.mk
  4. SRC = client.c draw.c event.c main.c screen.c util.c
  5. OBJ = ${SRC:.c=.o}
  6. all: options dwm
  7. options:
  8. @echo dwm build options:
  9. @echo "CFLAGS = ${CFLAGS}"
  10. @echo "LDFLAGS = ${LDFLAGS}"
  11. @echo "CC = ${CC}"
  12. .c.o:
  13. @echo CC $<
  14. @${CC} -c ${CFLAGS} $<
  15. ${OBJ}: dwm.h config.h config.mk
  16. config.h:
  17. @echo creating $@ from config.default.h
  18. @cp config.default.h $@
  19. dwm: ${OBJ}
  20. @echo CC -o $@
  21. @${CC} -o $@ ${OBJ} ${LDFLAGS}
  22. @strip $@
  23. clean:
  24. @echo cleaning
  25. @rm -f dwm ${OBJ} dwm-${VERSION}.tar.gz
  26. dist: clean
  27. @echo creating dist tarball
  28. @mkdir -p dwm-${VERSION}
  29. @cp -R LICENSE Makefile README config.*.h config.mk \
  30. dwm.1 dwm.h ${SRC} dwm-${VERSION}
  31. @tar -cf dwm-${VERSION}.tar dwm-${VERSION}
  32. @gzip dwm-${VERSION}.tar
  33. @rm -rf dwm-${VERSION}
  34. install: all
  35. @echo installing executable file to ${DESTDIR}${PREFIX}/bin
  36. @mkdir -p ${DESTDIR}${PREFIX}/bin
  37. @cp -f dwm ${DESTDIR}${PREFIX}/bin
  38. @chmod 755 ${DESTDIR}${PREFIX}/bin/dwm
  39. @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
  40. @mkdir -p ${DESTDIR}${MANPREFIX}/man1
  41. @sed 's/VERSION/${VERSION}/g' < dwm.1 > ${DESTDIR}${MANPREFIX}/man1/dwm.1
  42. @chmod 644 ${DESTDIR}${MANPREFIX}/man1/dwm.1
  43. uninstall:
  44. @echo removing executable file from ${DESTDIR}${PREFIX}/bin
  45. @rm -f ${DESTDIR}${PREFIX}/bin/dwm
  46. @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1
  47. @rm -f ${DESTDIR}${MANPREFIX}/man1/dwm.1
  48. .PHONY: all options clean dist install uninstall