2005-12-06 08:56:28 -05:00
|
|
|
#
|
|
|
|
# Build a little app for the Hiper project
|
|
|
|
# During dev at least, we use a static libcurl.
|
|
|
|
#
|
|
|
|
|
|
|
|
LDFLAGS = -lcrypt -lidn -lssl -lcrypto -ldl -lz -lresolv -L../ares/.libs -lcares
|
|
|
|
LIBCURL = -L../lib/.libs/ -lcurl
|
|
|
|
CFLAGS = -I../include -g -DHAVE_CURL_MULTI_SOCKET
|
|
|
|
|
2005-12-09 05:41:27 -05:00
|
|
|
all: hiper ulimiter
|
|
|
|
|
2005-12-06 08:56:28 -05:00
|
|
|
hiper: hiper.o $(LIBCURL)
|
|
|
|
$(CC) -o $@ $< $(LIBCURL) $(LDFLAGS)
|
|
|
|
|
|
|
|
hiper.o: hiper.c
|
|
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
|
2005-12-09 05:41:27 -05:00
|
|
|
ulimiter: ulimiter.c
|
|
|
|
$(CC) -o $@ $<
|
|
|
|
|
2005-12-06 08:56:28 -05:00
|
|
|
clean:
|
|
|
|
rm hiper.o hiper
|
|
|
|
|
|
|
|
$(LIBCURL):
|
|
|
|
(cd ../lib && make)
|