1# Makefile for http_post
2
3# CONFIGURE: If you are using a SystemV-based operating system, such as
4# Solaris, you will need to uncomment this definition.
5#SYSV_LIBS =	-lnsl -lsocket
6
7# CONFIGURE: If you want to compile in support for https, uncomment these
8# definitions.  You will need to have already built OpenSSL, available at
9# http://www.openssl.org/  Make sure the SSL_TREE definition points to the
10# tree with your OpenSSL installation - depending on how you installed it,
11# it may be in /usr/local instead of /usr/local/ssl.
12#SSL_TREE =     /usr/local/ssl
13#SSL_DEFS =	-DUSE_SSL
14#SSL_INC =	-I$(SSL_TREE)/include
15#SSL_LIBS =	-L$(SSL_TREE)/lib -lssl -lcrypto
16
17
18BINDIR =	/usr/local/bin
19MANDIR =	/usr/local/man/man1
20CC =		cc
21CFLAGS =	-O $(SSL_DEFS) $(SSL_INC) -ansi -pedantic -U__STRICT_ANSI__ -Wall -Wpointer-arith -Wshadow -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wno-long-long
22LDFLAGS =	-s $(SSL_LIBS) $(SYSV_LIBS)
23
24all:		http_post
25
26http_post:	http_post.c
27	$(CC) $(CFLAGS) http_post.c $(LDFLAGS) -o http_post
28
29install:	all
30	rm -f $(BINDIR)/http_post
31	cp http_post $(BINDIR)
32	rm -f $(MANDIR)/http_post.1
33	cp http_post.1 $(MANDIR)
34
35clean:
36	rm -f http_post *.o core core.* *.core
37