aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/makefile.dj
blob: 642a5b090c1b3eacee589f0af34ad35360fe1d7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#
#  Adapted for djgpp / Watt-32 / DOS by
#  Gisle Vanem <giva@bgnett.no>
#

include ../../packages/DOS/common.dj

CFLAGS += -I../../include

LIBS = ../../lib/libcurl.a

ifeq ($(USE_SSL),1)
  LIBS += $(OPENSSL_ROOT)/lib/libssl.a $(OPENSSL_ROOT)/lib/libcrypt.a
endif

LIBS += $(WATT32_ROOT)/lib/libwatt.a $(ZLIB_ROOT)/libz.a

PROGRAMS  = fopen.exe ftpget.exe ftpgetre.exe ftpuploa.exe getinmem.exe \
            http-pos.exe httpput.exe multi-ap.exe multi-do.exe          \
            multi-po.exe multi-si.exe persista.exe post-cal.exe         \
            postit2.exe sepheade.exe simple.exe simpless.exe

all: $(PROGRAMS)

.c.exe:
	$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
	@echo

clean:
	rm -f $(PROGRAMS)

- 1,32 ----
#
#  Adapted for djgpp / Watt-32 / DOS by
#  Gisle Vanem <giva@bgnett.no>
#

include ../../packages/DOS/common.dj

CFLAGS += -I../../include

LIBS = ../../lib/libcurl.a

ifeq ($(USE_SSL),1)
  LIBS += $(OPENSSL_ROOT)/lib/libssl.a $(OPENSSL_ROOT)/lib/libcrypt.a
endif

LIBS += $(WATT32_ROOT)/lib/libwatt.a $(ZLIB_ROOT)/libz.a

PROGRAMS  = fopen.exe ftpget.exe ftpgetre.exe ftpuploa.exe getinmem.exe \
            http-pos.exe httpput.exe multi-ap.exe multi-do.exe          \
            multi-po.exe multi-si.exe persista.exe post-cal.exe         \
            postit2.exe sepheade.exe simple.exe simpless.exe https.exe  \
            ftp3rdpa.exe getinfo.exe

all: $(PROGRAMS)

%.exe: %.c
	$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
	@echo

clean:
	rm -f $(PROGRAMS)