提交 46819851 编写于 作者: 麦壳饼's avatar 麦壳饼

revert example's makefile

上级 cef59866
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.10
# Copyright (c) 2017 by TAOS Technologies, Inc.
# todo: library dependency, header file dependency
# Default target executed when no arguments are given to make.
default_target: all
ROOT=./
TARGET=exe
LFLAGS = '-Wl,-rpath,/usr/local/taos/driver/' -ltaos -lpthread -lm -lrt
#LFLAGS = '-Wl,-rpath,/home/zbm/project/td/debug/build/lib/' -L/home/zbm/project/td/debug/build/lib -ltaos -lpthread -lm -lrt
CFLAGS = -O3 -g -Wall -Wno-deprecated -fPIC -Wno-unused-result -Wconversion -Wno-char-subscripts -D_REENTRANT -Wno-format -D_REENTRANT -DLINUX -msse4.2 -Wno-unused-function -D_M_X64 \
-I/usr/local/taos/include -std=gnu99
.PHONY : default_target
all: $(TARGET)
# Allow only one "make -f Makefile2" at a time, but pass parallelism.
.NOTPARALLEL:
exe:
gcc $(CFLAGS) ./asyncdemo.c -o $(ROOT)/asyncdemo $(LFLAGS)
gcc $(CFLAGS) ./demo.c -o $(ROOT)/demo $(LFLAGS)
gcc $(CFLAGS) ./prepare.c -o $(ROOT)/prepare $(LFLAGS)
gcc $(CFLAGS) ./stream.c -o $(ROOT)/stream $(LFLAGS)
gcc $(CFLAGS) ./subscribe.c -o $(ROOT)subscribe $(LFLAGS)
#=============================================================================
# Special targets provided by cmake.
# Disable implicit rules so canonical targets will work.
.SUFFIXES:
# Remove some rules from gmake that .SUFFIXES does not remove.
SUFFIXES =
.SUFFIXES: .hpux_make_needs_suffix_list
# Produce verbose output by default.
VERBOSE = 1
# 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/bin/cmake
# The command to remove a file.
RM = /usr/bin/cmake -E remove -f
# Escaping for special characters.
EQUALS = =
# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /mnt/d/TDengine/TDengine
# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /mnt/d/TDengine/TDengine
#=============================================================================
# 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/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/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/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/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
.PHONY : install/local/fast
# Special rule for the target install
install: preinstall
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
/usr/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/bin/cmake -P cmake_install.cmake
.PHONY : install/fast
# Special rule for the target package
package: preinstall
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Run CPack packaging tool..."
cd /mnt/d/TDengine/TDengine && /usr/bin/cpack --config ./CPackConfig.cmake
.PHONY : package
# Special rule for the target package
package/fast: package
.PHONY : package/fast
# Special rule for the target package_source
package_source:
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Run CPack packaging tool for source..."
cd /mnt/d/TDengine/TDengine && /usr/bin/cpack --config ./CPackSourceConfig.cmake /mnt/d/TDengine/TDengine/CPackSourceConfig.cmake
.PHONY : package_source
# Special rule for the target package_source
package_source/fast: package_source
.PHONY : package_source/fast
# Special rule for the target edit_cache
edit_cache:
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "No interactive CMake dialog available..."
/usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available.
.PHONY : edit_cache
# Special rule for the target edit_cache
edit_cache/fast: edit_cache
.PHONY : edit_cache/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/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 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 /mnt/d/TDengine/TDengine && $(CMAKE_COMMAND) -E cmake_progress_start /mnt/d/TDengine/TDengine/CMakeFiles /mnt/d/TDengine/TDengine/tests/examples/c/CMakeFiles/progress.marks
cd /mnt/d/TDengine/TDengine && $(MAKE) -f CMakeFiles/Makefile2 tests/examples/c/all
$(CMAKE_COMMAND) -E cmake_progress_start /mnt/d/TDengine/TDengine/CMakeFiles 0
.PHONY : all
# The main clean target
clean:
cd /mnt/d/TDengine/TDengine && $(MAKE) -f CMakeFiles/Makefile2 tests/examples/c/clean
.PHONY : clean
# The main clean target
clean/fast: clean
.PHONY : clean/fast
# Prepare targets for installation.
preinstall: all
cd /mnt/d/TDengine/TDengine && $(MAKE) -f CMakeFiles/Makefile2 tests/examples/c/preinstall
.PHONY : preinstall
# Prepare targets for installation.
preinstall/fast:
cd /mnt/d/TDengine/TDengine && $(MAKE) -f CMakeFiles/Makefile2 tests/examples/c/preinstall
.PHONY : preinstall/fast
# clear depends
depend:
cd /mnt/d/TDengine/TDengine && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
.PHONY : depend
# Convenience name for target.
tests/examples/c/CMakeFiles/demo.dir/rule:
cd /mnt/d/TDengine/TDengine && $(MAKE) -f CMakeFiles/Makefile2 tests/examples/c/CMakeFiles/demo.dir/rule
.PHONY : tests/examples/c/CMakeFiles/demo.dir/rule
# Convenience name for target.
demo: tests/examples/c/CMakeFiles/demo.dir/rule
.PHONY : demo
# fast build rule for target.
demo/fast:
cd /mnt/d/TDengine/TDengine && $(MAKE) -f tests/examples/c/CMakeFiles/demo.dir/build.make tests/examples/c/CMakeFiles/demo.dir/build
.PHONY : demo/fast
demo.o: demo.c.o
.PHONY : demo.o
# target to build an object file
demo.c.o:
cd /mnt/d/TDengine/TDengine && $(MAKE) -f tests/examples/c/CMakeFiles/demo.dir/build.make tests/examples/c/CMakeFiles/demo.dir/demo.c.o
.PHONY : demo.c.o
demo.i: demo.c.i
.PHONY : demo.i
# target to preprocess a source file
demo.c.i:
cd /mnt/d/TDengine/TDengine && $(MAKE) -f tests/examples/c/CMakeFiles/demo.dir/build.make tests/examples/c/CMakeFiles/demo.dir/demo.c.i
.PHONY : demo.c.i
demo.s: demo.c.s
.PHONY : demo.s
# target to generate assembly for a file
demo.c.s:
cd /mnt/d/TDengine/TDengine && $(MAKE) -f tests/examples/c/CMakeFiles/demo.dir/build.make tests/examples/c/CMakeFiles/demo.dir/demo.c.s
.PHONY : demo.c.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 "... install"
@echo "... package"
@echo "... demo"
@echo "... package_source"
@echo "... edit_cache"
@echo "... rebuild_cache"
@echo "... list_install_components"
@echo "... demo.o"
@echo "... demo.i"
@echo "... demo.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 /mnt/d/TDengine/TDengine && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
.PHONY : cmake_check_build_system
rm $(ROOT)/asyncdemo
rm $(ROOT)/demo
rm $(ROOT)/prepare
rm $(ROOT)/stream
rm $(ROOT)/subscribe
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册