secgateway/Platform/user/pdeliv_u/Makefile

39 lines
993 B
Makefile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

######################################
#
######################################
#source file
#源文件,自动找所有.c和.cpp文件并将目标定义为同名.o文件
#SOURCE := $(wildcard *.c) $(wildcard *.cpp)
#OBJS := $(patsubst %.c,%.o,$(patsubst %.cpp,%.o,$(SOURCE)))
all: pdelivery_main dpi_rcv_test
.PHONY:all
OBJS1 = pdelivery_main.o
OBJS2 = dpi_rcv_test.o
#target you can change test to what you want
#目标文件名,输入任意你想要的执行文件名
#compile and lib parameter
#编译参数
CC := gcc
LIBS := -L../netlink_uapi -lnetlinku
LDFLAGS :=
DEFINES :=
INCLUDE := -I../lib -I../../../Common -I../netlink_uapi
CFLAGS := -g -Wall -O3 $(DEFINES) $(INCLUDE)
CXXFLAGS:= $(CFLAGS) -DHAVE_CONFIG_H
pdelivery_main : $(OBJS1)
$(CC) $(CXXFLAGS) -o pdelivery_main $(OBJS1) $(LDFLAGS) $(LIBS)
dpi_rcv_test : $(OBJS2)
$(CC) $(CXXFLAGS) -o dpi_rcv_test $(OBJS2) $(LDFLAGS) $(LIBS)
.PHONY:clean
clean:
-$(RM) pdelivery_main dpi_rcv_test $(OBJS1) $(OBJS2)