2005-12-06 14:56:28 +01: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
|
2006-04-10 16:58:38 +02:00
|
|
|
CFLAGS = -I../include -g
|
2005-12-06 14:56:28 +01:00
|
|
|
|
2005-12-20 10:19:30 +01:00
|
|
|
all: shiper hiper ulimiter
|
2005-12-09 11:41:27 +01:00
|
|
|
|
2005-12-06 14:56:28 +01:00
|
|
|
hiper: hiper.o $(LIBCURL)
|
|
|
|
$(CC) -o $@ $< $(LIBCURL) $(LDFLAGS)
|
|
|
|
|
|
|
|
hiper.o: hiper.c
|
|
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
|
2005-12-20 10:19:30 +01:00
|
|
|
shiper: shiper.o $(LIBCURL)
|
|
|
|
$(CC) -o $@ $< $(LIBCURL) $(LDFLAGS)
|
|
|
|
|
|
|
|
shiper.o: shiper.c
|
|
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
|
2005-12-09 11:41:27 +01:00
|
|
|
ulimiter: ulimiter.c
|
|
|
|
$(CC) -o $@ $<
|
|
|
|
|
2005-12-06 14:56:28 +01:00
|
|
|
clean:
|
2005-12-20 10:19:30 +01:00
|
|
|
rm -f hiper.o hiper shiper shiper.o *~ ulimiter
|
2005-12-06 14:56:28 +01:00
|
|
|
|
|
|
|
$(LIBCURL):
|
|
|
|
(cd ../lib && make)
|