| 1 |
# |
| 2 |
# neon source directory Makefile |
| 3 |
# |
| 4 |
# Use the NEON_NORMAL_BUILD or NEON_LIBTOOL_BUILD autoconf |
| 5 |
# macros to set up this Makefile correctly. |
| 6 |
# |
| 7 |
|
| 8 |
SHELL = @SHELL@ |
| 9 |
|
| 10 |
# Installation paths |
| 11 |
prefix = @prefix@ |
| 12 |
exec_prefix = @exec_prefix@ |
| 13 |
libdir = @libdir@ |
| 14 |
|
| 15 |
# Build paths |
| 16 |
VPATH = @srcdir@ |
| 17 |
top_builddir = @top_builddir@ |
| 18 |
top_srcdir = @top_srcdir@ |
| 19 |
|
| 20 |
# Toolchain settings. |
| 21 |
CC = @CC@ |
| 22 |
AR = @AR@ |
| 23 |
RANLIB = @RANLIB@ |
| 24 |
LIBTOOL = @LIBTOOL@ |
| 25 |
|
| 26 |
# Flags |
| 27 |
CPPFLAGS = @DEFS@ @CPPFLAGS@ |
| 28 |
CFLAGS = @CFLAGS@ |
| 29 |
LDFLAGS = @LDFLAGS@ |
| 30 |
NEON_LINK_FLAGS = @NEON_LINK_FLAGS@ |
| 31 |
# Note: don't substitute @LIBS@ in here; during a bundled |
| 32 |
# build of this directory, @LIBS@ may include -lneon. |
| 33 |
LIBS = @NEON_LIBS@ @NEON_LTLIBS@ |
| 34 |
|
| 35 |
COMPILE = $(CC) $(CPPFLAGS) $(CFLAGS) |
| 36 |
LT_COMPILE = $(LIBTOOL) --quiet --mode=compile $(COMPILE) |
| 37 |
LINK = $(LIBTOOL) --quiet --mode=link $(CC) -no-undefined $(LDFLAGS) |
| 38 |
|
| 39 |
NEON_BASEOBJS = ne_request.@NEON_OBJEXT@ ne_session.@NEON_OBJEXT@ \ |
| 40 |
ne_basic.@NEON_OBJEXT@ ne_string.@NEON_OBJEXT@ \ |
| 41 |
ne_uri.@NEON_OBJEXT@ ne_dates.@NEON_OBJEXT@ \ |
| 42 |
ne_alloc.@NEON_OBJEXT@ ne_md5.@NEON_OBJEXT@ \ |
| 43 |
ne_utils.@NEON_OBJEXT@ ne_socket.@NEON_OBJEXT@ \ |
| 44 |
ne_auth.@NEON_OBJEXT@ ne_redirect.@NEON_OBJEXT@ \ |
| 45 |
ne_compress.@NEON_OBJEXT@ ne_i18n.@NEON_OBJEXT@ \ |
| 46 |
ne_pkcs11.@NEON_OBJEXT@ ne_socks.@NEON_OBJEXT@ \ |
| 47 |
ne_ntlm.@NEON_OBJEXT@ |
| 48 |
|
| 49 |
NEON_DAVOBJS = $(NEON_BASEOBJS) \ |
| 50 |
ne_207.@NEON_OBJEXT@ ne_xml.@NEON_OBJEXT@ \ |
| 51 |
ne_props.@NEON_OBJEXT@ ne_locks.@NEON_OBJEXT@ \ |
| 52 |
ne_xmlreq.@NEON_OBJEXT@ |
| 53 |
|
| 54 |
OBJECTS = @NEONOBJS@ @NEON_EXTRAOBJS@ |
| 55 |
|
| 56 |
.SUFFIXES: |
| 57 |
.SUFFIXES: .c .lo .o |
| 58 |
|
| 59 |
NEON_TARGET = @NEON_TARGET@ |
| 60 |
|
| 61 |
# Thanks to gettext for this neat trick. |
| 62 |
all: all-@NEON_BUILD_BUNDLED@ |
| 63 |
|
| 64 |
all-yes: $(NEON_TARGET) |
| 65 |
all-no: |
| 66 |
@echo "Bundled neon build not being used." |
| 67 |
|
| 68 |
.c.lo: |
| 69 |
$(LT_COMPILE) -c $< -o $@ |
| 70 |
.c.o: |
| 71 |
$(COMPILE) -c $< -o $@ |
| 72 |
|
| 73 |
libneon.la: $(OBJECTS) |
| 74 |
$(LINK) -rpath $(libdir) $(NEON_LINK_FLAGS) -o $@ $(OBJECTS) $(LIBS) |
| 75 |
|
| 76 |
libneon.a: $(OBJECTS) |
| 77 |
@rm -f $@ |
| 78 |
$(AR) cru $@ $(OBJECTS) |
| 79 |
$(RANLIB) $@ |
| 80 |
|
| 81 |
clean: |
| 82 |
rm -f $(NEON_TARGET) *.o *.lo *.bbg *.bb *.gc* |
| 83 |
rm -rf .libs |
| 84 |
|
| 85 |
c++.c: |
| 86 |
find . -name ne_\*.h -print | sed 's/.*/#include "&"/;/ne_priv/d' > $@ |
| 87 |
echo "int main(void) {}" >> $@ |
| 88 |
|
| 89 |
check-c++: c++.c |
| 90 |
c++ -I. c++.c |
| 91 |
|
| 92 |
check-incl: |
| 93 |
@for f in ne_*.h; do \ |
| 94 |
echo Checking $$f...; \ |
| 95 |
echo "#include \"$$f\"" > checkincl.c; \ |
| 96 |
$(COMPILE) -c checkincl.c -o checkincl.o || exit 1; done |
| 97 |
|
| 98 |
# Update generated dependencies below; requires cc -MM as in gcc. |
| 99 |
update-deps: |
| 100 |
for f in `echo $(OBJECTS) | sed 's/\\.@NEON_OBJEXT@/.c/g;s/ne_openssl.c//;s/ne_gnutls.c//;s/ne_pkcs11.c//;s/ne_stubssl.c//'`; do \ |
| 101 |
$(CC) $(CPPFLAGS) -MM -c $$f; \ |
| 102 |
done | sed 's, \.\./, $$(top_builddir)/,g;s, /[^ ]*.h,,g;/^ .$$/d;s/\.o: /.@NEON''_OBJEXT@: /' > new-deps |
| 103 |
sed '/[-]--CUT---/q' Makefile.in > Makefile.new |
| 104 |
cat Makefile.new new-deps > Makefile.in |
| 105 |
rm new-deps Makefile.new |
| 106 |
|
| 107 |
ne_openssl.@NEON_OBJEXT@: ne_openssl.c $(top_builddir)/config.h ne_ssl.h ne_defs.h ne_string.h \ |
| 108 |
ne_alloc.h ne_session.h ne_uri.h ne_socket.h ne_internal.h ne_private.h \ |
| 109 |
ne_request.h ne_utils.h ne_pkcs11.h ne_privssl.h |
| 110 |
ne_stubssl.@NEON_OBJEXT@: ne_stubssl.c $(top_builddir)/config.h ne_ssl.h ne_defs.h ne_session.h \ |
| 111 |
ne_uri.h ne_socket.h |
| 112 |
ne_pkcs11.@NEON_OBJEXT@: ne_pkcs11.c $(top_builddir)/config.h ne_pkcs11.h ne_defs.h ne_session.h \ |
| 113 |
ne_ssl.h ne_uri.h ne_socket.h ne_internal.h ne_privssl.h \ |
| 114 |
ne_alloc.h ne_private.h ne_request.h ne_utils.h ne_string.h |
| 115 |
ne_gnutls.@NEON_OBJEXT@: ne_gnutls.c $(top_builddir)/config.h ne_ssl.h ne_defs.h \ |
| 116 |
ne_string.h ne_alloc.h ne_session.h ne_uri.h ne_socket.h ne_internal.h \ |
| 117 |
ne_private.h ne_request.h ne_utils.h ne_privssl.h |
| 118 |
#### ---CUT--- DO NOT REMOVE THIS LINE. Generated dependencies follow. #### |
| 119 |
ne_request.@NEON_OBJEXT@: ne_request.c $(top_builddir)/config.h ne_internal.h ne_defs.h ne_alloc.h \ |
| 120 |
ne_request.h ne_utils.h ne_string.h ne_session.h ne_ssl.h ne_uri.h \ |
| 121 |
ne_socket.h ne_private.h |
| 122 |
ne_session.@NEON_OBJEXT@: ne_session.c $(top_builddir)/config.h ne_session.h ne_ssl.h ne_defs.h \ |
| 123 |
ne_uri.h ne_socket.h ne_alloc.h ne_utils.h ne_internal.h ne_string.h \ |
| 124 |
ne_dates.h ne_private.h ne_request.h |
| 125 |
ne_basic.@NEON_OBJEXT@: ne_basic.c $(top_builddir)/config.h ne_request.h ne_utils.h ne_defs.h \ |
| 126 |
ne_string.h ne_alloc.h ne_session.h ne_ssl.h ne_uri.h ne_socket.h \ |
| 127 |
ne_basic.h ne_207.h ne_xml.h ne_locks.h ne_dates.h ne_internal.h |
| 128 |
ne_string.@NEON_OBJEXT@: ne_string.c $(top_builddir)/config.h ne_alloc.h ne_defs.h ne_string.h |
| 129 |
ne_uri.@NEON_OBJEXT@: ne_uri.c $(top_builddir)/config.h ne_string.h ne_defs.h ne_alloc.h ne_uri.h |
| 130 |
ne_dates.@NEON_OBJEXT@: ne_dates.c $(top_builddir)/config.h ne_alloc.h ne_defs.h ne_dates.h \ |
| 131 |
ne_string.h |
| 132 |
ne_alloc.@NEON_OBJEXT@: ne_alloc.c $(top_builddir)/config.h ne_alloc.h ne_defs.h |
| 133 |
ne_md5.@NEON_OBJEXT@: ne_md5.c $(top_builddir)/config.h ne_md5.h ne_defs.h ne_string.h ne_alloc.h |
| 134 |
ne_utils.@NEON_OBJEXT@: ne_utils.c $(top_builddir)/config.h ne_utils.h ne_defs.h ne_string.h \ |
| 135 |
ne_alloc.h ne_dates.h |
| 136 |
ne_socket.@NEON_OBJEXT@: ne_socket.c $(top_builddir)/config.h ne_privssl.h ne_ssl.h ne_defs.h \ |
| 137 |
ne_socket.h ne_internal.h ne_utils.h ne_string.h ne_alloc.h ne_sspi.h |
| 138 |
ne_auth.@NEON_OBJEXT@: ne_auth.c $(top_builddir)/config.h ne_md5.h ne_defs.h ne_dates.h \ |
| 139 |
ne_request.h ne_utils.h ne_string.h ne_alloc.h ne_session.h ne_ssl.h \ |
| 140 |
ne_uri.h ne_socket.h ne_auth.h ne_internal.h |
| 141 |
ne_redirect.@NEON_OBJEXT@: ne_redirect.c $(top_builddir)/config.h ne_session.h ne_ssl.h ne_defs.h \ |
| 142 |
ne_uri.h ne_socket.h ne_request.h ne_utils.h ne_string.h ne_alloc.h \ |
| 143 |
ne_redirect.h ne_internal.h |
| 144 |
ne_compress.@NEON_OBJEXT@: ne_compress.c $(top_builddir)/config.h ne_request.h ne_utils.h \ |
| 145 |
ne_defs.h ne_string.h ne_alloc.h ne_session.h ne_ssl.h ne_uri.h \ |
| 146 |
ne_socket.h ne_compress.h ne_internal.h |
| 147 |
ne_i18n.@NEON_OBJEXT@: ne_i18n.c $(top_builddir)/config.h ne_i18n.h ne_defs.h |
| 148 |
ne_socks.@NEON_OBJEXT@: ne_socks.c $(top_builddir)/config.h ne_internal.h ne_defs.h ne_string.h \ |
| 149 |
ne_alloc.h ne_socket.h ne_ssl.h ne_utils.h |
| 150 |
ne_207.@NEON_OBJEXT@: ne_207.c $(top_builddir)/config.h ne_alloc.h ne_defs.h ne_utils.h ne_xml.h \ |
| 151 |
ne_207.h ne_request.h ne_string.h ne_session.h ne_ssl.h ne_uri.h \ |
| 152 |
ne_socket.h ne_basic.h ne_internal.h |
| 153 |
ne_xml.@NEON_OBJEXT@: ne_xml.c $(top_builddir)/config.h ne_internal.h ne_defs.h ne_alloc.h \ |
| 154 |
ne_xml.h ne_utils.h ne_string.h |
| 155 |
ne_props.@NEON_OBJEXT@: ne_props.c $(top_builddir)/config.h ne_alloc.h ne_defs.h ne_xml.h \ |
| 156 |
ne_props.h ne_request.h ne_utils.h ne_string.h ne_session.h ne_ssl.h \ |
| 157 |
ne_uri.h ne_socket.h ne_207.h ne_basic.h ne_locks.h ne_internal.h |
| 158 |
ne_locks.@NEON_OBJEXT@: ne_locks.c $(top_builddir)/config.h ne_alloc.h ne_defs.h ne_request.h \ |
| 159 |
ne_utils.h ne_string.h ne_session.h ne_ssl.h ne_uri.h ne_socket.h \ |
| 160 |
ne_xml.h ne_locks.h ne_basic.h ne_props.h ne_207.h ne_internal.h \ |
| 161 |
ne_xmlreq.h |
| 162 |
ne_xmlreq.@NEON_OBJEXT@: ne_xmlreq.c $(top_builddir)/config.h ne_internal.h ne_defs.h ne_xmlreq.h \ |
| 163 |
ne_request.h ne_utils.h ne_string.h ne_alloc.h ne_session.h ne_ssl.h \ |
| 164 |
ne_uri.h ne_socket.h ne_xml.h ne_basic.h |
| 165 |
ne_oldacl.@NEON_OBJEXT@: ne_oldacl.c $(top_builddir)/config.h ne_request.h ne_utils.h ne_defs.h \ |
| 166 |
ne_string.h ne_alloc.h ne_session.h ne_ssl.h ne_uri.h ne_socket.h \ |
| 167 |
ne_locks.h ne_acl.h ne_xml.h |
| 168 |
ne_acl3744.@NEON_OBJEXT@: ne_acl3744.c $(top_builddir)/config.h ne_request.h ne_utils.h ne_defs.h \ |
| 169 |
ne_string.h ne_alloc.h ne_session.h ne_ssl.h ne_uri.h ne_socket.h \ |
| 170 |
ne_locks.h ne_acl.h ne_xml.h |