更新Makefile以及脚本
parent
3f17997af2
commit
551db17c1e
|
@ -14,7 +14,8 @@ TARGET := commonAction
|
|||
#编译参数
|
||||
CC := 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 :=
|
||||
DEFINES :=
|
||||
INCLUDE := -I. -I/usr/local/include
|
||||
|
|
|
@ -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"
|
|
@ -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"
|
Loading…
Reference in New Issue