📄 makefile
字号:
OSNAME = $(shell uname -s)PlatForm=supportedifeq ($(OSNAME), SunOS)CPlus = CCCPlusFlags = -O2 -w -mt -xarch=v8 SYSLIBS=-ldl -lnsl -lsocket -lposix4 else ifeq ($(OSNAME), Linux)CPlus = g++CPlusFlags = -O2 -wSYSLIBS= -rdynamic -lrt -lpthread -lcryptelsePlatForm=notsupportedall: echo "CSQL is not supported on $(OSNAME) platform"endifendifINCL= -I$(CSQL_INSTALL_ROOT)/install/include -I../../../includeLIBS= -L$(CSQL_INSTALL_ROOT)/lib -lcsqlsql -lcsql -lcsqlsqllog -lcsqlnwTARGETS = \ test001\ test002\ test003\ test004ifeq ($(PlatForm), supported)all: $(TARGETS)endif .c.o:.c $(CPlus) $(CPlusFlags) $(INCL) -c -o $@ $<test001: paratest1.o $(CPlus) $(CPlusFlags) -o $@ $< $(LIBS) -lcsqlsql -lcsqlsqllog -lcsqlodbcadapter -lcsql -lcsqlnw -lodbc -lcsqlgw $(SYSLIBS)test002:paratest2.o $(CPlus) $(CPlusFlags) -o $@ $< $(LIBS) -lcsqlsql -lcsqlsqllog -lcsqlodbcadapter -lcsql -lcsqlnw -lodbc -lcsqlgw $(SYSLIBS)test003:paratest3.o $(CPlus) $(CPlusFlags) -o $@ $< $(LIBS) -lcsqlsql -lcsqlsqllog -lcsqlodbcadapter -lcsql -lcsqlnw -lodbc -lcsqlgw $(SYSLIBS)test004:paratest4.o $(CPlus) $(CPlusFlags) -o $@ $< $(LIBS) -lcsqlsql -lcsqlsqllog -lcsqlodbcadapter -lcsql -lcsqlnw -lodbc -lcsqlgw $(SYSLIBS)clean: rm -f *.o ${TARGETS}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -