emsApplication/applications/WebConfigure/cgiCommon/Makefile.arm

61 lines
1.3 KiB
Makefile
Raw Normal View History

2024-05-24 12:19:45 +08:00
######################################
#
######################################
#source file
<>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD>Զ<EFBFBD><D4B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.c<><63>.cpp<70>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD><EAB6A8>Ϊͬ<CEAA><CDAC>.o<>ļ<EFBFBD>
SOURCE := $(wildcard *.c) $(wildcard *.cpp)
OBJS := $(patsubst %.c,%.o,$(patsubst %.cpp,%.o,$(SOURCE)))
#target you can change test to what you want
#Ŀ<><C4BF><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA>ִ<EFBFBD><D6B4><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>
2024-06-05 20:52:33 +08:00
TARGET := commonAction
2024-05-24 12:19:45 +08:00
#compile and lib parameter
#<23><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
CC := arm-g++
CXX := arm-g++
2024-06-05 20:52:33 +08:00
LIBS := -L/usr/local/arm/lib -lhv -lmysqlcppconn-static -lmysqlclient_r -lpthread -ldl -static -lcgicc
#LIBS := -L/usr/local/arm/lib -lhv -lmysqlcppconn -lmysqlclient_r -lpthread -ldl -lcgicc
2024-05-24 12:19:45 +08:00
LDFLAGS :=
DEFINES :=
2024-06-05 20:52:33 +08:00
INCLUDE := -I. -I/usr/local/arm/include -I/usr/local/arm/include/mysql
2024-05-24 12:19:45 +08:00
CFLAGS := -Wall -O3 $(DEFINES) $(INCLUDE) -std=c++11
CXXFLAGS:= $(CFLAGS)
2024-06-05 20:52:33 +08:00
# <20><><EFBFBD><EFBFBD> DEBUG <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ
ifeq ($(DEBUG), 1)
CFLAGS += -g -D_DEBUG
else ifeq ($(debug),1)
CFLAGS += -g -D_DEBUG
endif
2024-05-24 12:19:45 +08:00
#i think you should do anything here
#<23><><EFBFBD><EFBFBD><EFBFBD>Ļ<EFBFBD><C4BB><EFBFBD><EFBFBD>ϲ<EFBFBD><CFB2><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD>κθĶ<CEB8><C4B6><EFBFBD>
.PHONY : everything objs clean veryclean rebuild
everything : $(TARGET)
all : $(TARGET)
objs : $(OBJS)
rebuild: veryclean everything
clean :
rm -fr *.so so
rm -fr *.o
veryclean : clean
rm -fr $(TARGET)
$(TARGET) : $(OBJS)
$(CC) $(CXXFLAGS) -o $@ $(OBJS) $(LDFLAGS) $(LIBS)