Add Makefile
This commit is contained in:
parent
ba3413a9c9
commit
eb47f61450
17
examples/game/Makefile
Normal file
17
examples/game/Makefile
Normal 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
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user