Sfoglia il codice sorgente

minimal_example2: moved to another directory

Evgeny Grin (Karlson2k) 1 anno fa
parent
commit
0d8fdad517

+ 6 - 4
src/Makefile.am

@@ -1,12 +1,14 @@
 # This Makefile.am is in the public domain
 
+examples_DIR = examples2
+
+SUBDIRS = . incl_priv include mhd2
+
 if BUILD_EXAMPLES
-examplesdirs = examples examples2
-else
-examplesdirs = 
+SUBDIRS += $(examples_DIR)
 endif
 
-SUBDIRS = incl_priv include mhd2 $(examplesdirs) tests .
+SUBDIRS += tests
 
 if RUN_LIBCURL_TESTS
 #SUBDIRS += testcurl

+ 1 - 5
src/examples/Makefile.am

@@ -25,8 +25,4 @@ $(top_builddir)/src/mhd2/libmicrohttpd2.la: $(top_builddir)/src/mhd2/Makefile
 
 
 # example programs
-noinst_PROGRAMS = \
-  minimal_example2
-
-minimal_example2_SOURCES = \
-  minimal_example2.c
+noinst_PROGRAMS = 

+ 2 - 4
src/examples2/Makefile.am

@@ -26,7 +26,5 @@ $(top_builddir)/src/mhd2/libmicrohttpd2.la: $(top_builddir)/src/mhd2/Makefile
 
 # example programs
 noinst_PROGRAMS = \
-  demo
-
-demo_SOURCES = \
-  demo.c
+  demo \
+  minimal_example2

+ 0 - 0
src/examples/minimal_example2.c → src/examples2/minimal_example2.c