📄 makefile
字号:
# # The contents of this file are subject to the Mozilla Public# License Version 1.1 (the "License"); you may not use this file# except in compliance with the License. You may obtain a copy# of the License at http://www.mozilla.org/MPL/# # Software distributed under the License is distributed on an# "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or# implied. See the License for the specific language governing# rights and limitations under the License.# # The Original Code is State Machine Compiler (SMC).# # The Initial Developer of the Original Code is Charles W. Rapp.# Portions created by Charles W. Rapp are# Copyright (C) 2000 - 2007. Charles W. Rapp.# All Rights Reserved.# # Contributor(s):## RCS ID# $Id: Makefile,v 1.8 2008/04/23 16:20:25 fperrad Exp $## CHANGE LOG# $Log: Makefile,v $# Revision 1.8 2008/04/23 16:20:25 fperrad# + fix #1934474 : wrong include path in C++ examples## Revision 1.7 2008/02/04 11:12:16 fperrad# + Exhibit options# + add a target 'table'# + add a target 'graph'## Revision 1.6 2007/12/28 12:34:40 cwrapp# Version 5.0.1 check-in.## Revision 1.5 2005/05/28 13:31:18 cwrapp# Updated C++ examples.## Revision 1.0 2003/12/14 19:39:20 charlesr# Initial revision################################################################### Macros.#SM_SOURCES= TcpConnection.smCOMMON_SOURCES= $(SM_SOURCES:.sm=_sm.cpp) \ Eventloop.cpp \ TcpSegment.cpp \ TcpConnection.cpp \ TcpClient.cpp \ TcpServer.cppSERVER_SOURCES= AppServer.cpp \ AppClient.cpp \ server.cppCLIENT_SOURCES= AppClient.cpp \ AppServer.cpp \ client.cppCOMMON_OBJECTS= $(COMMON_SOURCES:.cpp=.o)SERVER_OBJECTS= $(SERVER_SOURCES:.cpp=.o)CLIENT_OBJECTS= $(CLIENT_SOURCES:.cpp=.o)# Uncomment to turn off IOStreams for debug.# NO_STREAMS= -nostreams# Uncomment to turn on debug message generation.TRACE= -g $(NO_STREAMS)# Uncomment to turn on serialization.# SERIAL= -serial# Uncomment to turn off try/catch/rethrow generation.# NO_CATCH= -nocatch# Uncomment to turn off exception throws.# NO_EXCEPT= -noexSMC= java -jar ../../../bin/Smc.jarSMC_FLAGS= -c++ $(TRACE) $(SERIAL) $(NO_CATCH) $(NO_EXCEPT)CXX= c++CPPFLAGS= -g -Wall -Wextra -I../../../lib/C++# CPPFLAGS= -D_DEBUG -g -I. -I../../../lib/C++RM_F= rm -f################################################################## Rules.#%_sm.h %_sm.cpp : %.sm $(SMC) $(SMC_FLAGS) $<%_sm.dot : %.sm $(SMC) -graph -glevel 1 $<%_sm.html : %.sm $(SMC) -table $<all : server clientcommon : $(COMMON_OBJECTS)server : common $(SERVER_OBJECTS) $(CXX) -g -o $@ $(COMMON_OBJECTS) $(SERVER_OBJECTS)client : common $(CLIENT_OBJECTS) $(CXX) -g -o $@ $(COMMON_OBJECTS) $(CLIENT_OBJECTS)graph : $(SM_SOURCES:%.sm=%_sm.dot)table : $(SM_SOURCES:%.sm=%_sm.html)clean : -$(RM_F) server client -$(RM_F) $(COMMON_OBJECTS) $(SERVER_OBJECTS) $(CLIENT_OBJECTS) -$(RM_F) *_sm.h -$(RM_F) *_sm.cpp -$(RM_F) *_sm.dot -$(RM_F) *_sm.html
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -