Skip to content

Commit

Permalink
getcurrentstate before print
Browse files Browse the repository at this point in the history
  • Loading branch information
cindycia committed Sep 14, 2018
1 parent 38eca4a commit e47efa5
Show file tree
Hide file tree
Showing 14 changed files with 4,610 additions and 383 deletions.
1,655 changes: 1,606 additions & 49 deletions Makefile

Large diffs are not rendered by default.

277 changes: 249 additions & 28 deletions examples/cpp_models/adventurer/Makefile
Original file line number Diff line number Diff line change
@@ -1,39 +1,260 @@
# -----------------------
# Compiler/linker options
# -----------------------
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.10

CXX = g++
LDFLAGS = -O3 -Wall -Wno-sign-compare $(GPROF)
# Default target executed when no arguments are given to make.
default_target: all

# -----------
# Directories
# -----------
.PHONY : default_target

DESPOTHOME = ../../..
SRCDIR = src
INCDIR = $(DESPOTHOME)/include
LIBDIR = $(DESPOTHOME)/build
# Allow only one "make -f Makefile2" at a time, but pass parallelism.
.NOTPARALLEL:

# -----
# Files
# -----

SOURCES = $(shell find -L $(SRCDIR) -name '*.cpp')
BIN = adventurer
#=============================================================================
# Special targets provided by cmake.

# -------
# Targets
# -------
# Disable implicit rules so canonical targets will work.
.SUFFIXES:

.PHONY: all clean

all:
@cd $(DESPOTHOME) && make
$(CXX) $(LDFLAGS) $(SOURCES) -I $(INCDIR) $(LIBDIR)/*.o -o $(BIN)
# Remove some rules from gmake that .SUFFIXES does not remove.
SUFFIXES =

light:
@cd $(DESPOTHOME) && make
$(CXX) $(LDFLAGS) $(SOURCES) -I $(INCDIR) -L $(LIBDIR) -ldespot -o $(BIN)
.SUFFIXES: .hpux_make_needs_suffix_list


# Suppress display of executed commands.
$(VERBOSE).SILENT:


# A target that is always out of date.
cmake_force:

.PHONY : cmake_force

#=============================================================================
# Set environment variables for the build.

# The shell in which to execute make rules.
SHELL = /bin/sh

# The CMake executable.
CMAKE_COMMAND = /usr/local/bin/cmake

# The command to remove a file.
RM = /usr/local/bin/cmake -E remove -f

# Escaping for special characters.
EQUALS = =

# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /home/panpan/workspace/despot

# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /home/panpan/workspace/despot

#=============================================================================
# Targets provided globally by CMake.

# Special rule for the target install/strip
install/strip: preinstall
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..."
/usr/local/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
.PHONY : install/strip

# Special rule for the target install/strip
install/strip/fast: preinstall/fast
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..."
/usr/local/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
.PHONY : install/strip/fast

# Special rule for the target install/local
install/local: preinstall
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing only the local directory..."
/usr/local/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
.PHONY : install/local

# Special rule for the target install/local
install/local/fast: preinstall/fast
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing only the local directory..."
/usr/local/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
.PHONY : install/local/fast

# Special rule for the target rebuild_cache
rebuild_cache:
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
/usr/local/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
.PHONY : rebuild_cache

# Special rule for the target rebuild_cache
rebuild_cache/fast: rebuild_cache

.PHONY : rebuild_cache/fast

# Special rule for the target edit_cache
edit_cache:
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..."
/usr/local/bin/ccmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
.PHONY : edit_cache

# Special rule for the target edit_cache
edit_cache/fast: edit_cache

.PHONY : edit_cache/fast

# Special rule for the target install
install: preinstall
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
/usr/local/bin/cmake -P cmake_install.cmake
.PHONY : install

# Special rule for the target install
install/fast: preinstall/fast
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
/usr/local/bin/cmake -P cmake_install.cmake
.PHONY : install/fast

# Special rule for the target list_install_components
list_install_components:
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Available install components are: \"Unspecified\""
.PHONY : list_install_components

# Special rule for the target list_install_components
list_install_components/fast: list_install_components

.PHONY : list_install_components/fast

# The main all target
all: cmake_check_build_system
cd /home/panpan/workspace/despot && $(CMAKE_COMMAND) -E cmake_progress_start /home/panpan/workspace/despot/CMakeFiles /home/panpan/workspace/despot/examples/cpp_models/adventurer/CMakeFiles/progress.marks
cd /home/panpan/workspace/despot && $(MAKE) -f CMakeFiles/Makefile2 examples/cpp_models/adventurer/all
$(CMAKE_COMMAND) -E cmake_progress_start /home/panpan/workspace/despot/CMakeFiles 0
.PHONY : all

# The main clean target
clean:
rm -f $(BIN)
cd /home/panpan/workspace/despot && $(MAKE) -f CMakeFiles/Makefile2 examples/cpp_models/adventurer/clean
.PHONY : clean

# The main clean target
clean/fast: clean

.PHONY : clean/fast

# Prepare targets for installation.
preinstall: all
cd /home/panpan/workspace/despot && $(MAKE) -f CMakeFiles/Makefile2 examples/cpp_models/adventurer/preinstall
.PHONY : preinstall

# Prepare targets for installation.
preinstall/fast:
cd /home/panpan/workspace/despot && $(MAKE) -f CMakeFiles/Makefile2 examples/cpp_models/adventurer/preinstall
.PHONY : preinstall/fast

# clear depends
depend:
cd /home/panpan/workspace/despot && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
.PHONY : depend

# Convenience name for target.
examples/cpp_models/adventurer/CMakeFiles/despot_adventurer.dir/rule:
cd /home/panpan/workspace/despot && $(MAKE) -f CMakeFiles/Makefile2 examples/cpp_models/adventurer/CMakeFiles/despot_adventurer.dir/rule
.PHONY : examples/cpp_models/adventurer/CMakeFiles/despot_adventurer.dir/rule

# Convenience name for target.
despot_adventurer: examples/cpp_models/adventurer/CMakeFiles/despot_adventurer.dir/rule

.PHONY : despot_adventurer

# fast build rule for target.
despot_adventurer/fast:
cd /home/panpan/workspace/despot && $(MAKE) -f examples/cpp_models/adventurer/CMakeFiles/despot_adventurer.dir/build.make examples/cpp_models/adventurer/CMakeFiles/despot_adventurer.dir/build
.PHONY : despot_adventurer/fast

src/adventurer.o: src/adventurer.cpp.o

.PHONY : src/adventurer.o

# target to build an object file
src/adventurer.cpp.o:
cd /home/panpan/workspace/despot && $(MAKE) -f examples/cpp_models/adventurer/CMakeFiles/despot_adventurer.dir/build.make examples/cpp_models/adventurer/CMakeFiles/despot_adventurer.dir/src/adventurer.cpp.o
.PHONY : src/adventurer.cpp.o

src/adventurer.i: src/adventurer.cpp.i

.PHONY : src/adventurer.i

# target to preprocess a source file
src/adventurer.cpp.i:
cd /home/panpan/workspace/despot && $(MAKE) -f examples/cpp_models/adventurer/CMakeFiles/despot_adventurer.dir/build.make examples/cpp_models/adventurer/CMakeFiles/despot_adventurer.dir/src/adventurer.cpp.i
.PHONY : src/adventurer.cpp.i

src/adventurer.s: src/adventurer.cpp.s

.PHONY : src/adventurer.s

# target to generate assembly for a file
src/adventurer.cpp.s:
cd /home/panpan/workspace/despot && $(MAKE) -f examples/cpp_models/adventurer/CMakeFiles/despot_adventurer.dir/build.make examples/cpp_models/adventurer/CMakeFiles/despot_adventurer.dir/src/adventurer.cpp.s
.PHONY : src/adventurer.cpp.s

src/main.o: src/main.cpp.o

.PHONY : src/main.o

# target to build an object file
src/main.cpp.o:
cd /home/panpan/workspace/despot && $(MAKE) -f examples/cpp_models/adventurer/CMakeFiles/despot_adventurer.dir/build.make examples/cpp_models/adventurer/CMakeFiles/despot_adventurer.dir/src/main.cpp.o
.PHONY : src/main.cpp.o

src/main.i: src/main.cpp.i

.PHONY : src/main.i

# target to preprocess a source file
src/main.cpp.i:
cd /home/panpan/workspace/despot && $(MAKE) -f examples/cpp_models/adventurer/CMakeFiles/despot_adventurer.dir/build.make examples/cpp_models/adventurer/CMakeFiles/despot_adventurer.dir/src/main.cpp.i
.PHONY : src/main.cpp.i

src/main.s: src/main.cpp.s

.PHONY : src/main.s

# target to generate assembly for a file
src/main.cpp.s:
cd /home/panpan/workspace/despot && $(MAKE) -f examples/cpp_models/adventurer/CMakeFiles/despot_adventurer.dir/build.make examples/cpp_models/adventurer/CMakeFiles/despot_adventurer.dir/src/main.cpp.s
.PHONY : src/main.cpp.s

# Help Target
help:
@echo "The following are some of the valid targets for this Makefile:"
@echo "... all (the default if no target is provided)"
@echo "... clean"
@echo "... depend"
@echo "... install/strip"
@echo "... install/local"
@echo "... rebuild_cache"
@echo "... edit_cache"
@echo "... install"
@echo "... list_install_components"
@echo "... despot_adventurer"
@echo "... src/adventurer.o"
@echo "... src/adventurer.i"
@echo "... src/adventurer.s"
@echo "... src/main.o"
@echo "... src/main.i"
@echo "... src/main.s"
.PHONY : help



#=============================================================================
# Special targets to cleanup operation of make.

# Special rule to run CMake to check the build system integrity.
# No rule that depends on this can have commands that come from listfiles
# because they might be regenerated.
cmake_check_build_system:
cd /home/panpan/workspace/despot && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
.PHONY : cmake_check_build_system

Loading

0 comments on commit e47efa5

Please sign in to comment.