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.

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