adde Makefile

This commit is contained in:
Geir Okkenhaug Jerstad 2024-08-18 11:09:05 +02:00
parent 5153dced8b
commit 719a91ab24
5 changed files with 64 additions and 46 deletions

20
tortoise/Makefile Normal file
View file

@ -0,0 +1,20 @@
# Basic Makefile for the tortoise package.
CFLAGS =
LIBS =
.PHONY: clean build run
build: tortoise
clean:
rm -f tortoise tortoise.o
run: tortoise
./tortoise
tortoise: tortoise.o
gcc $< -o $@ $(LIBS)
tortoise.o: tortoise.c
gcc -c $< -o $@ $(CFLAGS)