~ubuntu-branches/ubuntu/intrepid/curl/intrepid

« back to all changes in this revision

Viewing changes to docs/examples/makefile.dj

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-05-16 15:16:54 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20070516151654-jo48r81zempo1qav
Tags: 7.16.2-3ubuntu1
* Merge with Debian; remaining changes:
  - Drop the stunnel build dependency.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#  $Id: makefile.dj,v 1.7 2007-03-17 17:58:45 giva Exp $
1
2
#
2
3
#  Adapted for djgpp / Watt-32 / DOS by
3
4
#  Gisle Vanem <giva@bgnett.no>
4
5
#
5
6
 
6
 
include ../../packages/DOS/common.dj
7
 
 
8
 
CFLAGS += -I../../include -DFALSE=0 -DTRUE=1
9
 
 
10
 
LIBS = ../../lib/libcurl.a
 
7
TOPDIR = ../..
 
8
 
 
9
include $(TOPDIR)/packages/DOS/common.dj
 
10
 
 
11
CFLAGS += -DFALSE=0 -DTRUE=1
 
12
 
 
13
LIBS = $(TOPDIR)/lib/libcurl.a
11
14
 
12
15
ifeq ($(USE_SSL),1)
13
16
  LIBS += $(OPENSSL_ROOT)/lib/libssl.a $(OPENSSL_ROOT)/lib/libcrypt.a
15
18
 
16
19
LIBS += $(WATT32_ROOT)/lib/libwatt.a $(ZLIB_ROOT)/libz.a
17
20
 
18
 
PROGRAMS  = fopen.exe ftpget.exe ftpgetresp.exe ftpupload.exe \
19
 
            getinmemory.exe http-post.exe httpput.exe multi-app.exe \
20
 
            multi-double.exe multi-post.exe multi-single.exe \
21
 
            persistant.exe post-callback.exe postit2.exe \
22
 
            sepheaders.exe simple.exe simplessl.exe https.exe \
23
 
            ftp3rdparty.exe getinfo.exe anyauthput.exe \
24
 
            cookie_interface.exe
 
21
CSOURCES = fopen.c ftpget.c ftpgetresp.c ftpupload.c getinmemory.c  \
 
22
           http-post.c httpput.c https.c multi-app.c multi-double.c \
 
23
           multi-post.c multi-single.c persistant.c post-callback.c \
 
24
           postit2.c sepheaders.c simple.c simplepost.c simplessl.c \
 
25
           multi-debugcallback.c fileupload.c getinfo.c anyauthput.c \
 
26
           10-at-a-time.c # ftpuploadresume.c ftp3rdparty.c cookie_interface.c
 
27
 
 
28
PROGRAMS = $(CSOURCES:.c=.exe)
25
29
 
26
30
all: $(PROGRAMS)
 
31
        @echo Welcome to libcurl example program
27
32
 
28
33
%.exe: %.c
29
34
        $(CC) $(CFLAGS) -o $@ $^ $(LIBS)
30
35
        @echo
31
36
 
32
 
clean:
33
 
        rm -f $(PROGRAMS)
 
37
clean vclean realclean:
 
38
        - rm -f $(PROGRAMS) depend.dj
 
39
 
 
40
-include depend.dj
34
41