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.

67 lines
1.5 KiB

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