2048 over SSH https://ascii.town
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.

38 lines
715B

  1. CHROOT_USER = play
  2. CHROOT_GROUP = ${CHROOT_USER}
  3. CFLAGS += -std=c11 -Wall -Wextra
  4. LDFLAGS = -static
  5. LDLIBS = -lcurses
  6. -include config.mk
  7. OBJS += play.o
  8. OBJS += 2048.o
  9. all: tags play
  10. play: ${OBJS}
  11. ${CC} ${LDFLAGS} ${OBJS} ${LDLIBS} -o $@
  12. tags: *.c
  13. ctags -w *.c
  14. chroot.tar: play
  15. install -d -o root -g wheel \
  16. root \
  17. root/bin \
  18. root/home \
  19. root/usr/share/misc
  20. install -d -o ${CHROOT_USER} -g ${CHROOT_GROUP} root/home/${CHROOT_USER}
  21. cp -fp /usr/share/misc/termcap.db root/usr/share/misc
  22. cp -fp /rescue/sh root/bin
  23. install play root/bin
  24. tar -c -f chroot.tar -C root bin home usr
  25. clean:
  26. rm -fr play ${OBJS} tags chroot.tar root
  27. install: chroot.tar
  28. tar -x -f chroot.tar -C /home/${CHROOT_USER}