tis100

Reimplementation of Zachtronics TIS-100 as a TUI game
git clone https://git.sinitax.com/sinitax/tis100
Log | Files | Refs | sfeed.txt

Makefile (525B)


      1PREFIX ?= /usr/local
      2BINDIR ?= /bin
      3
      4CFLAGS = -Wunused-function -Wunused-variable -Wconversion -Wswitch
      5CFLAGS += -Og -g
      6
      7all: tis100 tis100-curses
      8
      9clean:
     10	rm -f tis100 tis100-curses
     11
     12tis100: tis100.c tpu.c util.c asm.c
     13	$(CC) -o $@ $^ $(CFLAGS)
     14
     15tis100-curses: tis100-curses.c tpu.c util.c asm.c
     16	$(CC) -o $@ $^ $(CFLAGS) -lncursesw
     17
     18install:
     19	install -m755 tis100 tis100-curses -t "$(DESTDIR)$(PREFIX)$(BINDIR)"
     20
     21uninstall:
     22	rm -f "$(DESTDIR)$(PREFIX)$(BINDIR)"/{tis100,tis100-curses}
     23
     24.PHONY: all clean install uninstall