Simple Terminal from SuckLess
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.

53 lines
1.1 KiB

  1. # st - simple terminal
  2. # See LICENSE file for copyright and license details.
  3. include config.mk
  4. SRC = st.c
  5. OBJ = ${SRC:.c=.o}
  6. all: options st
  7. options:
  8. @echo st build options:
  9. @echo "CFLAGS = ${CFLAGS}"
  10. @echo "LDFLAGS = ${LDFLAGS}"
  11. @echo "CC = ${CC}"
  12. config.h:
  13. cp config.def.h config.h
  14. .c.o:
  15. @echo CC $<
  16. @${CC} -c ${CFLAGS} $<
  17. ${OBJ}: config.h config.mk
  18. st: ${OBJ}
  19. @echo CC -o $@
  20. @${CC} -o $@ ${OBJ} ${LDFLAGS}
  21. clean:
  22. @echo cleaning
  23. @rm -f st ${OBJ} st-${VERSION}.tar.gz
  24. dist: clean
  25. @echo creating dist tarball
  26. @mkdir -p st-${VERSION}
  27. @cp -R LICENSE Makefile README config.mk config.h st.info ${SRC} st-${VERSION}
  28. @tar -cf st-${VERSION}.tar st-${VERSION}
  29. @gzip st-${VERSION}.tar
  30. @rm -rf st-${VERSION}
  31. install: all
  32. @echo installing executable file to ${DESTDIR}${PREFIX}/bin
  33. @mkdir -p ${DESTDIR}${PREFIX}/bin
  34. @cp -f st ${DESTDIR}${PREFIX}/bin
  35. @chmod 755 ${DESTDIR}${PREFIX}/bin/st
  36. @tic -s st.info
  37. uninstall:
  38. @echo removing executable file from ${DESTDIR}${PREFIX}/bin
  39. @rm -f ${DESTDIR}${PREFIX}/bin/st
  40. .PHONY: all options clean dist install uninstall