-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (21 loc) · 675 Bytes
/
Makefile
File metadata and controls
31 lines (21 loc) · 675 Bytes
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
CC= gcc
CFLAGS = -g -Wall -fPIC -g -Wall -D_GNU_SOURCE
CFLAGS+= -std=c99
CFLAGS+= `pkg-config --cflags glib-2.0`
CFLAGS+= `pkg-config --cflags gthread-2.0`
CFLAGS+= `pkg-config --cflags openssl`
LDFLAGS = -shared -lhiredis -levent -z muldefs
SRCS= re_redis_mod.c redis_storage.c
OBJECTS= $(SRCS:.c=.o)
BINSO= rtpengine-redis.so
all: $(SRCS) $(BINSO)
rtpengine:
cd ./rtpengine/daemon && $(MAKE)
$(BINSO): $(OBJECTS)
$(CC) $(OBJECTS) -o $@ $(LDFLAGS)
.cpp.o:
$(CC) $(CFLAGS) $< -o $@
rtpengine-redis: $(OBJECTS)
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LDFLAGS)
clean:
rm -f $(OBJECTS) $(BINSO) core core.*