diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1ddb25d --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ +DEBUG ?= yes + +CFLAGS = -xc -ansi -Wall +ifeq '$(DEBUG)' 'yes' +CFLAGS += -g -O0 +else +CFLAGS += -O3 +endif + +tl_example: tl_example.c tl.c + gcc $(CFLAGS) $^ -I. -o $@ + +.PHONY: clean +clean: + rm -f tl_example |