diff options
| author | lijie <[email protected]> | 2018-11-16 20:43:08 +0800 |
|---|---|---|
| committer | lijie <[email protected]> | 2018-11-16 20:43:08 +0800 |
| commit | b61723f018870507100d28c7671e3b6b7baa1e18 (patch) | |
| tree | b34d2be5ef855f5f744dc2c090303ef009e2349c /src/Makefile | |
| parent | 1d1886131c234808451d0cf07429742000377f6f (diff) | |
sapp可以运行,但是存在初始化顺序问题
Diffstat (limited to 'src/Makefile')
| -rw-r--r-- | src/Makefile | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/Makefile b/src/Makefile index 173523b..f1e4639 100644 --- a/src/Makefile +++ b/src/Makefile @@ -8,15 +8,19 @@ CXXFLAGS = -Wall -g -fPIC INCLUDES = -I ../include
+#INCLUDES += -I ../support/include
+
INCLUDES += -I /opt/MESA/include
INCLUDES += -I /opt/MESA/include/MESA
LIBS = -L /opt/MESA/lib
-LIBS += -lMESA_prof_load -lMESA_handle_logger -lpthread -lmaatframe -lMESA_htable
+#LIBS = -L ../support/lib
+
+LIBS += -lMESA_prof_load -lMESA_handle_logger -lpthread -lmaatframe -lMESA_htable -lmaxminddb
-TARGET = mrl
+TARGET = mrl.so
OBJS = mrl_main.o mrl_utils.o mrl_packet.o mrl_redis.o
@@ -25,7 +29,7 @@ OBJS = mrl_main.o mrl_utils.o mrl_packet.o mrl_redis.o all:$(TARGET)
$(TARGET):$(OBJS)
- $(CXX) $(LIBS) $^ -o $@
+ $(CXX) -shared $(CXXFLAGS) $(OBJS) $(LIBS) -o $@
$(OBJS):%.o:%.c
$(CXX) $(CXXFLAGS) $(INCLUDES) -c $< -o $@
@@ -34,4 +38,7 @@ clean: rm -rf *.o
install:
- cp $(TARGET) ../bin
+ cp $(TARGET) /home/lijie/sapp/plug/business/mrl
+ cp ../bin/conf/mrl.inf /home/lijie/sapp/plug/business/mrl
+ cp ../bin/conf/*.conf /home/lijie/sapp/mrl_conf/
+ cp ../bin/conf/all_ip_only_coun_v4.mmdb /home/lijie/sapp/mrl_conf
|
