diff options
Diffstat (limited to 'examples/Makefile')
-rw-r--r-- | examples/Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/examples/Makefile b/examples/Makefile new file mode 100644 index 0000000..e2e3e9d --- /dev/null +++ b/examples/Makefile @@ -0,0 +1,24 @@ +CFLAGS+= -Wall -pedantic -g -ggdb +CFLAGS+= -L .. -Wl,-R.. -I .. +CFLAGS+= -ljim + +EXAMPLES= \ + jim_command \ + jim_hello \ + jim_inline \ + jim_list \ + jim_obj \ + jim_return + +all: libjim.so $(EXAMPLES) + +libjim.so: + @echo ----------------------------------------------------------- + @echo " Remember to call \"make libjim\" before trying our examples" + @echo ----------------------------------------------------------- + cp ../libjim.so libjim.so + +clean: + rm -rf $(EXAMPLES) + rm -rf *.core + rm -rf libjim.so |