#这是一个linux应用程序的Makefile模板,只需修改下面几个变量的值即可
#TYPE有三种类型:app, driver, so
IP = 200.200.88.151
USER = root
TYPE = app
SRCDIR =
OUTDIR =
TARGET = str2int
TARGETDIR = /usr/sbin/webui/cgi-bin/
INCLUDE +=
LIB +=
CFLAGS +=
CXXFLAGS +=
CPPFLAGS +=
SOURCES +=
OBJS +=
#HTMLDIR=/usr/sbin/webui/html-chs/obj/
HTMLDIR=/virus/webui/html/networkconfig/
CGIDIR=/virus/webui/cgi-bin/
CONFIGDIR=/etc/sinfor/fw/
#如果想增加all或者install的依赖性,可以设置下面变量的值,然后增加相应的目标依赖
myall = myall
myinstall = myinstall
mycp = mycp
mycpp =
include Makefile.$(TYPE)
mycp:
scp -p -P 22345 *.ini USER@$(IP):$(CONFIGDIR)
scp -p -P 22345 *.cgi USER@$(IP):$(CGIDIR)
scp -p -P 22345 int/*.ini USER@$(IP):$(HTMLDIR)ini/
myall:
myinstall:
Makefile
最新推荐文章于 2021-03-22 17:42:38 发布