From: thurston Date: Tue, 26 May 2009 03:11:48 +0000 (+0000) Subject: Added examples to the build system. X-Git-Tag: 2.0_alpha~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f030441972d961cc0d3eb20ec820307ad6a748e8;p=external%2Fragel.git Added examples to the build system. Put examples, contrib, doc and test in DIST_SUBDIRS. Added unicode2ragel.rb to EXTRA_DIST in contrib. git-svn-id: http://svn.complang.org/ragel/trunk@879 052ea7fc-9027-0410-9066-f65837a77df0 --- diff --git a/Makefile.am b/Makefile.am index 9db1064..0b0b131 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,5 +1,6 @@ -SUBDIRS = ragel aapl doc test contrib +SUBDIRS = ragel aapl +DIST_SUBDIRS = contrib examples test doc dist_doc_DATA = CREDITS ChangeLog EXTRA_DIST = ragel.vim diff --git a/configure.in b/configure.in index 12098fe..8df27b2 100644 --- a/configure.in +++ b/configure.in @@ -108,6 +108,7 @@ AC_OUTPUT( doc/Makefile doc/ragel.1 contrib/Makefile test/Makefile test/runtests + examples/Makefile ], [chmod +x test/runtests] ) diff --git a/contrib/Makefile.am b/contrib/Makefile.am index edecc5d..7ef7e8d 100644 --- a/contrib/Makefile.am +++ b/contrib/Makefile.am @@ -1,2 +1,2 @@ -EXTRA_DIST = ragel.make ragel.m4 +EXTRA_DIST = ragel.make ragel.m4 unicode2ragel.rb diff --git a/examples/Makefile b/examples/Makefile.am similarity index 95% rename from examples/Makefile rename to examples/Makefile.am index 863b57e..959af6a 100644 --- a/examples/Makefile +++ b/examples/Makefile.am @@ -30,14 +30,11 @@ TARGS = \ all: $(TARGS) -distclean clean: - rm -Rf *.o *.c *.cpp $(TARGS) +#%.o: %.c +# gcc $(CFLAGS) -Wall -g -c -O3 -o $@ $< -%.o: %.c - gcc $(CFLAGS) -Wall -g -c -O3 -o $@ $< - -%.o: %.cpp - g++ $(CXXFLAGS) -Wall -g -c -O3 -o $@ $< +#%.o: %.cpp +# g++ $(CXXFLAGS) -Wall -g -c -O3 -o $@ $< #########################################