merge Makefile

This commit is contained in:
lishu
2018-12-05 21:01:01 +08:00
parent 1013e334e1
commit 8357219423
4 changed files with 20 additions and 12 deletions

View File

@@ -7,9 +7,19 @@ PAPP_PATH=/home/mesasoft/frag_rssb/
#CFLAGS = -g3 -Wall -fPIC -O
INCLUDES = -I./inc/
INCLUDES += -I/usr/include/MESA/
INCLUDES += -I./support/hiredis-vip-master/
INCLUDES += -I./support/hiredisv4/
CFLAGS = -g3 -Wall -fPIC -D__STDC_FORMAT_MACROS
CFLAGS += $(INCLUDES)
ifeq ($(MODE), PIC)
CFLAGS += -DPIC_FUNC=1
TARGET = pic_rssb_maskey
else ifeq ($(MODE), VOIP)
CFLAGS += -DPIC_FUNC=1
TARGET = voip_rssb_maskey
else
TARGET = av_rssb_maskey
endif
#LDDICTATOR = -Wl,-wrap,malloc -Wl,-wrap,calloc -Wl,-wrap,free -Wl,-wrap,realloc
LDDICTATOR =
CC = g++
@@ -34,9 +44,6 @@ OBJECTS = $(SOURCES:.c=.o)
OBJECTSCPP = $(SOURCESCPP:.cpp=.o)
#DEPS = $(SOURCES:.c=.d)
TARGET = rssb_maskey
.PHONY:clean all
all:$(TARGET)