Add Makefile

This commit is contained in:
Bruce Hill 2024-09-08 20:34:26 -04:00
parent ba3413a9c9
commit eb47f61450
2 changed files with 20 additions and 0 deletions

17
examples/game/Makefile Normal file
View File

@ -0,0 +1,17 @@
game: game.tm box.tm color.tm player.tm world.tm
tomo -e game.tm
# Disable built-in makefile rules:
%: %.c
%.o: %.c
%: %.o
clean:
rm -vf game *.tm.*
play: game
./game
.PHONY: play, clean

View File

@ -8,3 +8,6 @@ interact with an external C library. To run the game:
```bash
tomo game.tm
```
An example [Makefile](Makefile) is also provided if you want to use `make` to
build the game and `make clean` to clean up the built files.