# $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
-
-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
+
+