d0edb47896
the configure script checks for openldap and friends and we link with those libs just like we link all other third party libraries, and we no longer dlopen() those libraries. Our private header file lib/ldap.h was renamed to lib/curl_ldap.h due to this. I set a tag in CVS (curl-7_17_0-preldapfix) just before this commit, just in case.
39 lines
723 B
Makefile
39 lines
723 B
Makefile
#
|
|
# Build test apps for the Hiper project
|
|
# During dev at least, we use a static libcurl.
|
|
#
|
|
|
|
LDFLAGS = -lcrypt -lidn -lssl -lcrypto -lz -lresolv -L../ares/.libs \
|
|
-lcares
|
|
LIBCURL = -L../lib/.libs/ -lcurl
|
|
CFLAGS = -I../include -g
|
|
|
|
all: shiper hiper hipev ulimiter
|
|
|
|
hiper: hiper.o $(LIBCURL)
|
|
$(CC) -o $@ $< $(LIBCURL) $(LDFLAGS)
|
|
|
|
hiper.o: hiper.c
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
hipev: hipev.o $(LIBCURL)
|
|
$(CC) -o $@ $< $(LIBCURL) $(LDFLAGS) -levent
|
|
|
|
hipev.o: hipev.c
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
shiper: shiper.o $(LIBCURL)
|
|
$(CC) -o $@ $< $(LIBCURL) $(LDFLAGS)
|
|
|
|
shiper.o: shiper.c
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
ulimiter: ulimiter.c
|
|
$(CC) -o $@ $<
|
|
|
|
clean:
|
|
rm -f hiper.o hiper shiper shiper.o *~ ulimiter
|
|
|
|
$(LIBCURL):
|
|
(cd ../lib && make)
|