diff options
author | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-07-19 08:41:04 -0400 |
---|---|---|
committer | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-07-19 08:41:04 -0400 |
commit | 299b166ff820e8413f0c34ed5a2e7afac46cd477 (patch) | |
tree | b0b8e1520af740e8a63fd132ebae82326054e12f /build |
initial commit
Diffstat (limited to 'build')
-rw-r--r-- | build/.gitignore | 5 | ||||
-rw-r--r-- | build/FindGlib.cmake | 42 | ||||
-rw-r--r-- | build/FinxdGlib.cmake | 42 | ||||
-rw-r--r-- | build/Makefile | 258 | ||||
-rw-r--r-- | build/cmake_install.cmake | 44 |
5 files changed, 391 insertions, 0 deletions
diff --git a/build/.gitignore b/build/.gitignore new file mode 100644 index 0000000..440dbee --- /dev/null +++ b/build/.gitignore @@ -0,0 +1,5 @@ +MakeCache.txt +CMakeFiles +Makefile +cmake_install.cmake +install_manifest.txt diff --git a/build/FindGlib.cmake b/build/FindGlib.cmake new file mode 100644 index 0000000..f1986c9 --- /dev/null +++ b/build/FindGlib.cmake @@ -0,0 +1,42 @@ +pkg_check_modules(GLIB_PKG glib-2.0) + +if (GLIB_PKG_FOUND) + find_path(GLIB_INCLUDE_DIR NAMES glib.h PATH_SUFFIXES glib-2.0 + PATHS + ${GLIB_PKG_INCLUDE_DIRS} + /usr/include/glib-2.0 + /usr/include + /usr/local/include + ) + find_path(GLIB_CONFIG_INCLUDE_DIR NAMES glibconfig.h PATHS ${GLIB_PKG_LIBDIR} PATH_SUFFIXES glib-2.0/include) + + find_library(GLIB_LIBRARIES NAMES glib-2.0 + PATHS + ${GLIB_PKG_LIBRARY_DIRS} + /usr/lib + /usr/local/lib + ) + +else (GLIB_PKG_FOUND) + # Find Glib even if pkg-config is not working (eg. cross compiling to Windows) + find_library(GLIB_LIBRARIES NAMES glib-2.0) + string (REGEX REPLACE "/[^/]*$" "" GLIB_LIBRARIES_DIR ${GLIB_LIBRARIES}) + + find_path(GLIB_INCLUDE_DIR NAMES glib.h PATH_SUFFIXES glib-2.0) + find_path(GLIB_CONFIG_INCLUDE_DIR NAMES glibconfig.h PATHS ${GLIB_LIBRARIES_DIR} PATH_SUFFIXES glib-2.0/include) + +endif (GLIB_PKG_FOUND) + +if (GLIB_INCLUDE_DIR AND GLIB_CONFIG_INCLUDE_DIR AND GLIB_LIBRARIES) + set(GLIB_INCLUDE_DIRS ${GLIB_INCLUDE_DIR} ${GLIB_CONFIG_INCLUDE_DIR}) +endif (GLIB_INCLUDE_DIR AND GLIB_CONFIG_INCLUDE_DIR AND GLIB_LIBRARIES) + +if(GLIB_INCLUDE_DIRS AND GLIB_LIBRARIES) + set(GLIB_FOUND TRUE CACHE INTERNAL "glib-2.0 found") + message(STATUS "Found glib-2.0: ${GLIB_INCLUDE_DIR}, ${GLIB_LIBRARIES}") +else(GLIB_INCLUDE_DIRS AND GLIB_LIBRARIES) + set(GLIB_FOUND FALSE CACHE INTERNAL "glib-2.0 found") + message(STATUS "glib-2.0 not found.") +endif(GLIB_INCLUDE_DIRS AND GLIB_LIBRARIES) + +mark_as_advanced(GLIB_INCLUDE_DIR GLIB_CONFIG_INCLUDE_DIR GLIB_INCLUDE_DIRS GLIB_LIBRARIES) diff --git a/build/FinxdGlib.cmake b/build/FinxdGlib.cmake new file mode 100644 index 0000000..f1986c9 --- /dev/null +++ b/build/FinxdGlib.cmake @@ -0,0 +1,42 @@ +pkg_check_modules(GLIB_PKG glib-2.0) + +if (GLIB_PKG_FOUND) + find_path(GLIB_INCLUDE_DIR NAMES glib.h PATH_SUFFIXES glib-2.0 + PATHS + ${GLIB_PKG_INCLUDE_DIRS} + /usr/include/glib-2.0 + /usr/include + /usr/local/include + ) + find_path(GLIB_CONFIG_INCLUDE_DIR NAMES glibconfig.h PATHS ${GLIB_PKG_LIBDIR} PATH_SUFFIXES glib-2.0/include) + + find_library(GLIB_LIBRARIES NAMES glib-2.0 + PATHS + ${GLIB_PKG_LIBRARY_DIRS} + /usr/lib + /usr/local/lib + ) + +else (GLIB_PKG_FOUND) + # Find Glib even if pkg-config is not working (eg. cross compiling to Windows) + find_library(GLIB_LIBRARIES NAMES glib-2.0) + string (REGEX REPLACE "/[^/]*$" "" GLIB_LIBRARIES_DIR ${GLIB_LIBRARIES}) + + find_path(GLIB_INCLUDE_DIR NAMES glib.h PATH_SUFFIXES glib-2.0) + find_path(GLIB_CONFIG_INCLUDE_DIR NAMES glibconfig.h PATHS ${GLIB_LIBRARIES_DIR} PATH_SUFFIXES glib-2.0/include) + +endif (GLIB_PKG_FOUND) + +if (GLIB_INCLUDE_DIR AND GLIB_CONFIG_INCLUDE_DIR AND GLIB_LIBRARIES) + set(GLIB_INCLUDE_DIRS ${GLIB_INCLUDE_DIR} ${GLIB_CONFIG_INCLUDE_DIR}) +endif (GLIB_INCLUDE_DIR AND GLIB_CONFIG_INCLUDE_DIR AND GLIB_LIBRARIES) + +if(GLIB_INCLUDE_DIRS AND GLIB_LIBRARIES) + set(GLIB_FOUND TRUE CACHE INTERNAL "glib-2.0 found") + message(STATUS "Found glib-2.0: ${GLIB_INCLUDE_DIR}, ${GLIB_LIBRARIES}") +else(GLIB_INCLUDE_DIRS AND GLIB_LIBRARIES) + set(GLIB_FOUND FALSE CACHE INTERNAL "glib-2.0 found") + message(STATUS "glib-2.0 not found.") +endif(GLIB_INCLUDE_DIRS AND GLIB_LIBRARIES) + +mark_as_advanced(GLIB_INCLUDE_DIR GLIB_CONFIG_INCLUDE_DIR GLIB_INCLUDE_DIRS GLIB_LIBRARIES) diff --git a/build/Makefile b/build/Makefile new file mode 100644 index 0000000..e10303e --- /dev/null +++ b/build/Makefile @@ -0,0 +1,258 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 2.8 + +# Default target executed when no arguments are given to make. +default_target: all +.PHONY : default_target + +#============================================================================= +# 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 + +# 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 + +# The program to use to edit the cache. +CMAKE_EDIT_COMMAND = /usr/bin/ccmake + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /fileserver2/home/mjc/git/Instrument + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /fileserver2/home/mjc/git/Instrument/build + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..." + /usr/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 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 + +# The main all target +all: cmake_check_build_system + $(CMAKE_COMMAND) -E cmake_progress_start /fileserver2/home/mjc/git/Instrument/build/CMakeFiles /fileserver2/home/mjc/git/Instrument/build/CMakeFiles/progress.marks + $(MAKE) -f CMakeFiles/Makefile2 all + $(CMAKE_COMMAND) -E cmake_progress_start /fileserver2/home/mjc/git/Instrument/build/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + $(MAKE) -f CMakeFiles/Makefile2 clean +.PHONY : clean + +# The main clean target +clean/fast: clean +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + $(MAKE) -f CMakeFiles/Makefile2 preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + $(MAKE) -f CMakeFiles/Makefile2 preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +#============================================================================= +# Target rules for targets named instr-client + +# Build rule for target. +instr-client: cmake_check_build_system + $(MAKE) -f CMakeFiles/Makefile2 instr-client +.PHONY : instr-client + +# fast build rule for target. +instr-client/fast: + $(MAKE) -f CMakeFiles/instr-client.dir/build.make CMakeFiles/instr-client.dir/build +.PHONY : instr-client/fast + +#============================================================================= +# Target rules for targets named instr-daemon + +# Build rule for target. +instr-daemon: cmake_check_build_system + $(MAKE) -f CMakeFiles/Makefile2 instr-daemon +.PHONY : instr-daemon + +# fast build rule for target. +instr-daemon/fast: + $(MAKE) -f CMakeFiles/instr-daemon.dir/build.make CMakeFiles/instr-daemon.dir/build +.PHONY : instr-daemon/fast + +instr-client.o: instr-client.c.o +.PHONY : instr-client.o + +# target to build an object file +instr-client.c.o: + $(MAKE) -f CMakeFiles/instr-client.dir/build.make CMakeFiles/instr-client.dir/instr-client.c.o +.PHONY : instr-client.c.o + +instr-client.i: instr-client.c.i +.PHONY : instr-client.i + +# target to preprocess a source file +instr-client.c.i: + $(MAKE) -f CMakeFiles/instr-client.dir/build.make CMakeFiles/instr-client.dir/instr-client.c.i +.PHONY : instr-client.c.i + +instr-client.s: instr-client.c.s +.PHONY : instr-client.s + +# target to generate assembly for a file +instr-client.c.s: + $(MAKE) -f CMakeFiles/instr-client.dir/build.make CMakeFiles/instr-client.dir/instr-client.c.s +.PHONY : instr-client.c.s + +instr-daemon.o: instr-daemon.c.o +.PHONY : instr-daemon.o + +# target to build an object file +instr-daemon.c.o: + $(MAKE) -f CMakeFiles/instr-daemon.dir/build.make CMakeFiles/instr-daemon.dir/instr-daemon.c.o +.PHONY : instr-daemon.c.o + +instr-daemon.i: instr-daemon.c.i +.PHONY : instr-daemon.i + +# target to preprocess a source file +instr-daemon.c.i: + $(MAKE) -f CMakeFiles/instr-daemon.dir/build.make CMakeFiles/instr-daemon.dir/instr-daemon.c.i +.PHONY : instr-daemon.c.i + +instr-daemon.s: instr-daemon.c.s +.PHONY : instr-daemon.s + +# target to generate assembly for a file +instr-daemon.c.s: + $(MAKE) -f CMakeFiles/instr-daemon.dir/build.make CMakeFiles/instr-daemon.dir/instr-daemon.c.s +.PHONY : instr-daemon.c.s + +response.o: response.c.o +.PHONY : response.o + +# target to build an object file +response.c.o: + $(MAKE) -f CMakeFiles/instr-daemon.dir/build.make CMakeFiles/instr-daemon.dir/response.c.o +.PHONY : response.c.o + +response.i: response.c.i +.PHONY : response.i + +# target to preprocess a source file +response.c.i: + $(MAKE) -f CMakeFiles/instr-daemon.dir/build.make CMakeFiles/instr-daemon.dir/response.c.i +.PHONY : response.c.i + +response.s: response.c.s +.PHONY : response.s + +# target to generate assembly for a file +response.c.s: + $(MAKE) -f CMakeFiles/instr-daemon.dir/build.make CMakeFiles/instr-daemon.dir/response.c.s +.PHONY : response.c.s + +signalobject.o: signalobject.c.o +.PHONY : signalobject.o + +# target to build an object file +signalobject.c.o: + $(MAKE) -f CMakeFiles/instr-daemon.dir/build.make CMakeFiles/instr-daemon.dir/signalobject.c.o +.PHONY : signalobject.c.o + +signalobject.i: signalobject.c.i +.PHONY : signalobject.i + +# target to preprocess a source file +signalobject.c.i: + $(MAKE) -f CMakeFiles/instr-daemon.dir/build.make CMakeFiles/instr-daemon.dir/signalobject.c.i +.PHONY : signalobject.c.i + +signalobject.s: signalobject.c.s +.PHONY : signalobject.s + +# target to generate assembly for a file +signalobject.c.s: + $(MAKE) -f CMakeFiles/instr-daemon.dir/build.make CMakeFiles/instr-daemon.dir/signalobject.c.s +.PHONY : signalobject.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 "... edit_cache" + @echo "... instr-client" + @echo "... instr-daemon" + @echo "... rebuild_cache" + @echo "... instr-client.o" + @echo "... instr-client.i" + @echo "... instr-client.s" + @echo "... instr-daemon.o" + @echo "... instr-daemon.i" + @echo "... instr-daemon.s" + @echo "... response.o" + @echo "... response.i" + @echo "... response.s" + @echo "... signalobject.o" + @echo "... signalobject.i" + @echo "... signalobject.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: + $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/build/cmake_install.cmake b/build/cmake_install.cmake new file mode 100644 index 0000000..aac7ddf --- /dev/null +++ b/build/cmake_install.cmake @@ -0,0 +1,44 @@ +# Install script for directory: /fileserver2/home/mjc/git/Instrument + +# Set the install prefix +IF(NOT DEFINED CMAKE_INSTALL_PREFIX) + SET(CMAKE_INSTALL_PREFIX "/usr/local") +ENDIF(NOT DEFINED CMAKE_INSTALL_PREFIX) +STRING(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +IF(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + IF(BUILD_TYPE) + STRING(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + ELSE(BUILD_TYPE) + SET(CMAKE_INSTALL_CONFIG_NAME "") + ENDIF(BUILD_TYPE) + MESSAGE(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +ENDIF(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + +# Set the component getting installed. +IF(NOT CMAKE_INSTALL_COMPONENT) + IF(COMPONENT) + MESSAGE(STATUS "Install component: \"${COMPONENT}\"") + SET(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + ELSE(COMPONENT) + SET(CMAKE_INSTALL_COMPONENT) + ENDIF(COMPONENT) +ENDIF(NOT CMAKE_INSTALL_COMPONENT) + +# Install shared libraries without execute permission? +IF(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) + SET(CMAKE_INSTALL_SO_NO_EXE "0") +ENDIF(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) + +IF(CMAKE_INSTALL_COMPONENT) + SET(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") +ELSE(CMAKE_INSTALL_COMPONENT) + SET(CMAKE_INSTALL_MANIFEST "install_manifest.txt") +ENDIF(CMAKE_INSTALL_COMPONENT) + +FILE(WRITE "/fileserver2/home/mjc/git/Instrument/build/${CMAKE_INSTALL_MANIFEST}" "") +FOREACH(file ${CMAKE_INSTALL_MANIFEST_FILES}) + FILE(APPEND "/fileserver2/home/mjc/git/Instrument/build/${CMAKE_INSTALL_MANIFEST}" "${file}\n") +ENDFOREACH(file) |