更新Makefile以及脚本

main
HwangKC 2024-06-07 16:45:31 +08:00
parent 3f17997af2
commit 551db17c1e
3 changed files with 35 additions and 1 deletions

View File

@ -14,7 +14,8 @@ TARGET := commonAction
#编译参数 #编译参数
CC := g++ CC := g++
CXX := g++ CXX := g++
LIBS := -L/usr/local/lib -lhv -lmysqlcppconn -lmysqlclient_r -lcgicc -lpthread -ldl # LIBS := -L/usr/local/lib -lhv -lmysqlcppconn -lmysqlclient_r -lcgicc -lpthread -ldl
LIBS := -L/usr/local/mysql/lib/mysql -L/usr/local/lib -lhv -lmysqlcppconn-static -lmysqlclient_r -lpthread -ldl -static -lcgicc -lz
LDFLAGS := LDFLAGS :=
DEFINES := DEFINES :=
INCLUDE := -I. -I/usr/local/include INCLUDE := -I. -I/usr/local/include

View File

@ -0,0 +1,17 @@
#!/bin/sh
if [ -f "main.o" ]; then
echo "renew compiled files..."
rm -f main.o
fi
echo "Compiling..."
make -f Makefile
sleep 1
#echo "Coping..."
#arm-linux-gnueabihf-strip commonAction
cp commonAction /var/www/cgi-bin/
echo "Finish compiling and copyed"

View File

@ -0,0 +1,16 @@
#!/bin/sh
if [ -f "main.o" ]; then
echo "renew compiled files..."
rm -f main.o
fi
echo "Compiling..."
make -f Makefile.arm
sleep 1
echo "Stripping..."
arm-linux-gnueabihf-strip commonAction
echo "Finish compiling and stripping"