From d45a5b21de22438c004e1db96a8f154da09cdc0e Mon Sep 17 00:00:00 2001 From: Oskari Timperi Date: Wed, 14 May 2014 22:27:34 +0300 Subject: Initial commit - tokenizing, parsing and basic eval support - arithmetic (+, -, *, /) - quote - atom for checking if the arg is an atom (i.e. not a list) - eq for checking equality - > for checking order - if - some unit testing - simple repl - mem management needs improvement :-) --- Makefile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f53a3f0 --- /dev/null +++ b/Makefile @@ -0,0 +1,27 @@ +SOURCES = parse.c list.c atom.c eval.c tokens.c +OBJECTS = $(SOURCES:.c=.o) + +CFLAGS = -Wall -g +LDFLAGS = + +CC = gcc +LD = gcc + +# ifneq ($(BUILD_TEST),) + +test: CFLAGS := $(CFLAGS) -DBUILD_TEST +test: $(OBJECTS) tst_main.o + $(LD) $(LDFLAGS) -o $@ $^ + +# else + +repl: $(OBJECTS) repl.o linenoise.o + $(LD) $(LDFLAGS) -o $@ $^ + +# endif + +.PHONY: clean +clean: + rm -f *.o + rm -f test + rm -f repl -- cgit v1.2.3