-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
38 lines (26 loc) · 1.12 KB
/
Makefile
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
PREFIX=/opt/universal
CC = gcc
CFLAGS=-Wall -O0 -ggdb -I$(PREFIX)/include
LDFLAGS=-L$(PREFIX)/lib -Wl,-rpath,$(PREFIX)/lib -lzmq
all: zmq2 zmq3
zmq2: universal-pubsub universal-sub-pubsub universal-sub-push
zmq3: universal-sub-xpubxsub universal-sub-xpubxsub-timeout universal-xpubxsub
universal-pubsub: universal-pubsub.c
$(CC) -o $@ $(CFLAGS) $< $(LDFLAGS)
universal-sub-pubsub: universal-sub-pubsub.c
$(CC) -o $@ $(CFLAGS) $< $(LDFLAGS)
universal-sub-push: universal-sub-push.c
$(CC) -o $@ $(CFLAGS) $< $(LDFLAGS)
universal-xpubxsub: universal-xpubxsub.c
$(CC) -o $@ $(CFLAGS) $< $(LDFLAGS)
universal-sub-xpubxsub: universal-sub-xpubxsub.c
$(CC) -o $@ $(CFLAGS) $< $(LDFLAGS)
universal-sub-xpubxsub-timeout: universal-sub-xpubxsub-timeout.c
$(CC) -o $@ $(CFLAGS) $< $(LDFLAGS)
kv78-dump: kv78-dump.c
$(CC) $(LDFLAGS) $(CFLAGS) $< -o $@
install: all
mkdir -p $(PREFIX)/bin
cp universal-pubsub universal-sub-pubsub universal-xpubxsub universal-sub-xpubxsub universal-sub-xpubxsub-timeout $(PREFIX)/bin
clean:
rm -rf universal-pubsub universal-sub-pubsub universal-xpubxsub universal-sub-xpubxsub universal-sub-xpubxsub-timeout