-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
executable file
·67 lines (47 loc) · 1.74 KB
/
Makefile
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
65
66
67
# httpget uses httpget.c and utils.h in the lib directory
# html2txt is a very simple text-parsing program to strip HTML tags
# It has been compiled on the following platforms
# sunos solaris osf linux
# I am not able to port it and test it on every platform.
# This will get called from the wginstall script.
# Sunos, Linux use gcc
# Solaris requires specifying the nsl and socket libaries
# OSF uses cc
# 'another-config' uses gcc and the libraries
# If your OS isn't supported, try compiling (using make) for each
# option; if it compiles cleanly for one of the supported options,
# httpget should work just fine (you can test it from the command line).
# Good luck!
CC = gcc
OSFCC = cc
IRIXCC = cc
linux:
$(CC) -O -o lib/httpget lib/httpget.c
$(CC) -O -o lib/html2txt lib/html2txt.c
linuxsocks:
$(CC) -O -DSOCKS -lsocks5 -o lib/httpget lib/httpget.c
$(CC) -O -o lib/html2txt lib/html2txt.c
freebsd:
$(CC) -O -o lib/httpget lib/httpget.c
$(CC) -O -o lib/html2txt lib/html2txt.c
sco:
$(CC) -Dsco -DSYSV -s -O -o lib/httpget lib/httpget.c -lsocket
$(CC) -Dsco -DSYSV -s -O -o lib/html2txt lib/html2txt.c -lsocket
sunos:
$(CC) -O -o lib/httpget lib/httpget.c
$(CC) -O -o lib/html2txt lib/html2txt.c
solaris:
$(CC) -O -o lib/httpget lib/httpget.c -lnsl -lsocket
$(CC) -O -o lib/html2txt lib/html2txt.c
osf:
$(OSFCC) -O -o lib/httpget lib/httpget.c
$(OSFCC) -O -o lib/html2txt lib/html2txt.c
hpux:
$(OSFCC) -D_HPUX_SOURCE -Aa -O -o lib/httpget lib/httpget.c
$(OSFCC) -D_HPUX_SOURCE -Aa -O -o lib/html2txt lib/html2txt.c
irix:
$(IRIXCC) -O -o lib/httpget lib/httpget.c -lnsl -lsocket
$(IRIXCC) -O -o lib/html2txt lib/html2txt.c
another-config:
$(CC) -O -o lib/httpget lib/httpget.c -lnsl -lsocket
$(CC) -O -o lib/html2txt lib/html2txt.c