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.

60 lines
1.3 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
  1. # dwm - dynamic window manager
  2. # (C)opyright MMVI Anselm R. Garbe
  3. include config.mk
  4. SRC = client.c draw.c event.c main.c tag.c util.c
  5. OBJ = ${SRC:.c=.o}
  6. MAN1 = dwm.1
  7. BIN = dwm
  8. all: options dwm
  9. @echo finished
  10. options:
  11. @echo dwm build options:
  12. @echo "CFLAGS = ${CFLAGS}"
  13. @echo "LDFLAGS = ${LDFLAGS}"
  14. @echo "CC = ${CC}"
  15. .c.o:
  16. @echo CC $<
  17. @${CC} -c ${CFLAGS} $<
  18. ${OBJ}: dwm.h
  19. dwm: ${OBJ}
  20. @echo LD $@
  21. @${CC} -o $@ ${OBJ} ${LDFLAGS}
  22. clean:
  23. rm -f dwm *.o dwm-${VERSION}.tar.gz
  24. dist: clean
  25. mkdir -p dwm-${VERSION}
  26. cp -R Makefile README LICENSE config.mk *.h *.c ${MAN1} dwm-${VERSION}
  27. tar -cf dwm-${VERSION}.tar dwm-${VERSION}
  28. gzip dwm-${VERSION}.tar
  29. rm -rf dwm-${VERSION}
  30. install: all
  31. @mkdir -p ${DESTDIR}${PREFIX}/bin
  32. @cp -f ${BIN} ${DESTDIR}${PREFIX}/bin
  33. @for i in ${BIN}; do \
  34. chmod 755 ${DESTDIR}${PREFIX}/bin/`basename $$i`; \
  35. done
  36. @echo installed executable files to ${DESTDIR}${PREFIX}/bin
  37. @mkdir -p ${DESTDIR}${MANPREFIX}/man1
  38. @cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1
  39. @for i in ${MAN1}; do \
  40. chmod 444 ${DESTDIR}${MANPREFIX}/man1/`basename $$i`; \
  41. done
  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