2005-12-06 08:56:28 -05:00
|
|
|
#
|
2006-04-24 18:40:20 -04:00
|
|
|
# Build test apps for the Hiper project
|
2005-12-06 08:56:28 -05:00
|
|
|
# During dev at least, we use a static libcurl.
|
|
|
|
#
|
|
|
|
|
2007-08-11 16:57:54 -04:00
|
|
|
LDFLAGS = -lcrypt -lidn -lssl -lcrypto -lz -lresolv -L../ares/.libs \
|
2006-04-24 18:40:20 -04:00
|
|
|
-lcares
|
2005-12-06 08:56:28 -05:00
|
|
|
LIBCURL = -L../lib/.libs/ -lcurl
|
2006-04-10 10:58:38 -04:00
|
|
|
CFLAGS = -I../include -g
|
2005-12-06 08:56:28 -05:00
|
|
|
|
2006-04-24 18:40:20 -04:00
|
|
|
all: shiper hiper hipev ulimiter
|
2005-12-09 05:41:27 -05:00
|
|
|
|
2005-12-06 08:56:28 -05:00
|
|
|
hiper: hiper.o $(LIBCURL)
|
|
|
|
$(CC) -o $@ $< $(LIBCURL) $(LDFLAGS)
|
|
|
|
|
|
|
|
hiper.o: hiper.c
|
|
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
|
2006-04-24 18:40:20 -04:00
|
|
|
hipev: hipev.o $(LIBCURL)
|
|
|
|
$(CC) -o $@ $< $(LIBCURL) $(LDFLAGS) -levent
|
|
|
|
|
|
|
|
hipev.o: hipev.c
|
|
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
|
2005-12-20 04:19:30 -05:00
|
|
|
shiper: shiper.o $(LIBCURL)
|
|
|
|
$(CC) -o $@ $< $(LIBCURL) $(LDFLAGS)
|
|
|
|
|
|
|
|
shiper.o: shiper.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:
|
2005-12-20 04:19:30 -05:00
|
|
|
rm -f hiper.o hiper shiper shiper.o *~ ulimiter
|
2005-12-06 08:56:28 -05:00
|
|
|
|
|
|
|
$(LIBCURL):
|
|
|
|
(cd ../lib && make)
|