📄 makefile
字号:
## All the Makefiles need to point to the Top.# This makes easier to move entire source # trees around. Especially since the # Makefiles are not all at the same level# with respect to the top.### TOP is ready /net/niobium/vobs/development/server# However, it should be specified relative to the# current directory so that it is easier to move# the entire source tree around.################################################TOP = ../..################################################# Include the global Make.rules. This file# contains rules and macros that are commonly# used. They can be overwritten if needed in# the local Makefile.################################################include $(TOP)/common/Make.rules################################################# The linker that WorkShop invokes appears to# be faster when linking against a static# library ( e.g. an archive file ) than when# linking a large number of objects. For this# reason, this makefile creates a static library# out of all the object files except the one# that contains the main() function. The object# file containing main() is then linked against# the static library to create the executable.################################################################################################# To add new source files to this build, just# add them to the list below.################################################################################################# This is the source file that contains the# main() function.################################################THREADLIB_SOURCE_FILES = CountingSemaphore.cpp################################################# These are the names of the static libraries that# will be created for linking.################################################################################################# This is the name of the static library that# will be created for linking.################################################THREADLIB = ../libThreadLib.a################################################# Define what this Makefile should build. In# this case, the Makefile will build the# executable define by the CORE macro above.################################################TARGET = $(THREADLIB)################################################# Since this is the first target that appears# in the Makefile, it becomes the default# target. This didn't work very well with # GNU make; that is why 'gmake all' had to# be used. However for clearmake, it is not# necessary to specify this target, just# use 'clarmake -C gnu'.################################################all: $(TARGET)################################################# Rule to create the static libraries used# for linking.################################################################################################# Rule for creating the executable defined by# the PERF_MGR macro.################################################INCPATH+=-I$(TOP)/thirdparty/JTC/include$(THREADLIB): $(THREADLIB_SOURCE_FILES:.cpp=.o) @$(PRINTF) "Creating archive library $@..... " $(AR) $@ $(THREADLIB_SOURCE_FILES:.cpp=.o) ################################################# Rule for cleaning, it deletes the executables,# the static library, the object files, and # invokes the 'CCadmin -clean' for WorkShop.## To clean: 'clearmake -C gnu clean'################################################clean: @$(PRINTF) "Cleaning ... " rm -f $(TARGET) rm -f $(THREADLIB_SOURCE_FILES:.cpp=.o) @$(PRINTF) "Done.\n"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -