Changed the makefile so the doc/examples/ programs are never built in a
[platform/upstream/curl.git] / docs / examples / Makefile.am
index c09183b..83069d4 100644 (file)
@@ -2,16 +2,26 @@
 # $Id$
 #
 
-AUTOMAKE_OPTIONS = foreign no-dependencies
-
-EXTRA_DIST = README curlgtk.c sepheaders.c simple.c postit2.c          \
- persistant.c ftpget.c Makefile.example multithread.c getinmemory.c    \
- ftpupload.c httpput.c simplessl.c ftpgetresp.c http-post.c            \
- post-callback.c multi-app.c multi-double.c multi-single.c             \
- multi-post.c fopen.c simplepost.c makefile.dj curlx.c https.c         \
- multi-debugcallback.c fileupload.c getinfo.c ftp3rdparty.c debug.c    \
- anyauthput.c htmltitle.cc htmltidy.c opensslthreadlock.c              \
- cookie_interface.c cacertinmem.c synctime.c sampleconv.c
-
-all:
-       @echo "done"
+AUTOMAKE_OPTIONS = foreign nostdinc
+
+EXTRA_DIST = README Makefile.example Makefile.inc Makefile.m32 \
+       makefile.dj $(COMPLICATED_EXAMPLES)
+
+INCLUDES = -I$(top_srcdir)/include
+
+LIBDIR = $(top_builddir)/lib
+
+if STATICLIB
+# we need this define when building with a static lib on Windows
+STATICCPPFLAGS = -DCURL_STATICLIB
+endif
+
+CPPFLAGS = -DCURL_NO_OLDIES $(STATICCPPFLAGS)
+
+# Dependencies
+LDADD = $(LIBDIR)/libcurl.la
+
+# Makefile.inc provides the check_PROGRAMS and COMPLICATED_EXAMPLES defines
+include Makefile.inc
+
+