aboutsummaryrefslogtreecommitdiff
path: root/hiper/Makefile
blob: ba3cc07099c19665e857e0be5035c63a17c1bbae (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
26
27
28
29
30
31
32
33
34
35
36
37
38
#
# Build test apps 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

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)