Hi This adds a Makefile to build the examples.
- Lauri
>From 29ed62a03fc38567db2cae5c4ba4589d31a5b790 Mon Sep 17 00:00:00 2001 From: Lauri Kasanen <[email protected]> Date: Thu, 23 Aug 2012 16:46:14 +0300 Subject: [PATCH 2/2] examples: Add a Makefile Signed-off-by: Lauri Kasanen <[email protected]> --- examples/Makefile | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-) create mode 100644 examples/Makefile diff --git a/examples/Makefile b/examples/Makefile new file mode 100644 index 0000000..4bcf670 --- /dev/null +++ b/examples/Makefile @@ -0,0 +1,24 @@ +CFLAGS += -Wall + +CFLAGS += $(shell pkg-config --cflags monkey) +LDFLAGS += $(shell pkg-config --libs monkey) + +.PHONY: all clean first + +all: first hello list quiz + +hello: hello.o + +list: list.o + +quiz: quiz.o + +first: + @echo -e "\n\tBuilding the examples." \ + "\n\n"\ + "\tThe build expects the library to be installed,\n"\ + "\tto work as closely as possible like an external app.\n\n" + + +clean: + rm -f *.o hello quiz list -- 1.7.2.1
_______________________________________________ Monkey mailing list [email protected] http://lists.monkey-project.com/listinfo/monkey
