aboutsummaryrefslogtreecommitdiff
path: root/hiper/Makefile
blob: aee1cdde9b0dc2c93976fde94019f0135ca193ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#
# 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

all: hiper ulimiter

hiper: hiper.o $(LIBCURL)
	$(CC) -o $@ $< $(LIBCURL) $(LDFLAGS)

hiper.o: hiper.c
	$(CC) $(CFLAGS) -c $<

ulimiter: ulimiter.c
	$(CC) -o $@ $<

clean:
	rm hiper.o hiper

$(LIBCURL):
	(cd ../lib && make)