Commit 60d23683 authored by Klint Youngmeyer's avatar Klint Youngmeyer
Browse files

Initial commit

parents
if(EXISTS "/etc/emac/toolchain-selector.cmake")
include(/etc/emac/toolchain-selector.cmake)
else()
MESSAGE(FATAL_ERROR "ERROR: Toolchain selection file could not be found at /etc/emac/toolchain-selector.cmake")
endif()
cmake_minimum_required(VERSION 2.6)
project (master)
add_executable(master master.c)
file(WRITE "${CMAKE_SOURCE_DIR}/QtCreatorDeployment.txt" "${REMOTE}")
#Version Information
SET(TC_ARMV5_MAJOR_VERSION 1)
SET(TC_ARMV5_MINOR_VERSION 0)
SET(TC_ARMV5_PATCH_VERSION 0)
SET(TC_ARMV5_VERSION ${TC_ARMV5_MAJOR_VERSION}.${TC_ARMV5_MINOR_VERSION}.${TC_ARMV5_PATCH_VERSION})
SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_SYSTEM_VERSION 1)
SET(CMAKE_C_COMPILER /opt/emac/5.0.0/sysroots/i686-emacsdk-linux/usr/bin/arm-emac-linux-gnueabi/arm-emac-linux-gnueabi-gcc)
SET(CMAKE_CXX_COMPILER /opt/emac/5.0.0/sysroots/i686-emacsdk-linux/usr/bin/arm-emac-linux-gnueabi/arm-emac-linux-gnueabi-g++)
SET(CMAKE_FIND_ROOT_PATH /opt/emac/5.0.0/sysroots/armv5te-emac-linux-gnueabi/)
SET(CMAKE_C_FLAGS " -march=armv5te -marm -mthumb-interwork -pipe -feliminate-unused-debug-types -Wall -MMD")
SET(CMAKE_CXX_FLAGS " -march=armv5te -marm -mthumb-interwork -pipe -feliminate-unused-debug-types -fpermissive -Wall -MMD")
SET(CMAKE_C_FLAGS_DEBUG "-O0 -g ${CMAKE_C_FLAGS}")
SET(CMAKE_C_FLAGS_RELEASE "-O2 -s ${CMAKE_C_FLAGS}")
SET(CMAKE_C_FLAGS_MINSIZEREL "-O3 -s ${CMAKE_C_FLAGS}")
SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g ${CMAKE_CXX_FLAGS}")
SET(CMAKE_CXX_FLAGS_RELEASE "-O2 -s ${CMAKE_CXX_FLAGS}")
SET(CMAKE_CXX_FLAGS_MINSIZEREL "-O3 -s ${CMAKE_CXX_FLAGS}")
#Custom Build Config
SET(CMAKE_C_FLAGS_CUSTOM "-O1 -s ${CMAKE_C_FLAGS}")
SET(CMAKE_CXX_FLAGS_CUSTOM "-O1 -s ${CMAKE_CXX_FLAGS}")
###
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "-s") ## Strip binary
#Version Information
SET(TC_ARMV7_MAJOR_VERSION 1)
SET(TC_ARMV7_MINOR_VERSION 0)
SET(TC_ARMV7_PATCH_VERSION 0)
SET(TC_ARMV7_VERSION ${TC_ARMV7_MAJOR_VERSION}.${TC_ARMV7_MINOR_VERSION}.${TC_ARMV7_PATCH_VERSION})
SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_SYSTEM_VERSION 1)
SET(CMAKE_C_COMPILER /opt/emac/5.0.0/sysroots/i686-emacsdk-linux/usr/bin/arm-emac-linux-gnueabi/arm-emac-linux-gnueabi-gcc)
SET(CMAKE_CXX_COMPILER /opt/emac/5.0.0/sysroots/i686-emacsdk-linux/usr/bin/arm-emac-linux-gnueabi/arm-emac-linux-gnueabi-g++)
SET(CMAKE_FIND_ROOT_PATH /opt/emac/5.0.0/sysroots/armv7a-vfp-neon-emac-linux-gnueabi/)
SET(CMAKE_C_FLAGS " -march=armv7-a -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -pipe -feliminate-unused-debug-types -Wall -MMD")
SET(CMAKE_CXX_FLAGS " -march=armv7-a -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -pipe -feliminate-unused-debug-types -fpermissive -Wall -MMD")
SET(CMAKE_C_FLAGS_DEBUG "-O0 -g ${CMAKE_C_FLAGS}")
SET(CMAKE_C_FLAGS_RELEASE "-O2 -s ${CMAKE_C_FLAGS}")
SET(CMAKE_C_FLAGS_MINSIZEREL "-O3 -s ${CMAKE_C_FLAGS}")
SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g ${CMAKE_CXX_FLAGS}")
SET(CMAKE_CXX_FLAGS_RELEASE "-O2 -s ${CMAKE_CXX_FLAGS}")
SET(CMAKE_CXX_FLAGS_MINSIZEREL "-O3 -s ${CMAKE_CXX_FLAGS}")
#Custom Build Config
SET(CMAKE_C_FLAGS_CUSTOM "-O1 -s ${CMAKE_C_FLAGS}")
SET(CMAKE_CXX_FLAGS_CUSTOM "-O1 -s ${CMAKE_CXX_FLAGS}")
###
#set(CMAKE_EXE_LINKER_FLAGS_RELEASE "-s") ## Strip binary
#Version Information
SET(TC_CORE2_MAJOR_VERSION 1)
SET(TC_CORE2_MINOR_VERSION 0)
SET(TC_CORE2_PATCH_VERSION 0)
SET(TC_CORE2_VERSION ${TC_CORE2_MAJOR_VERSION}.${TC_CORE2_MINOR_VERSION}.${TC_CORE2_PATCH_VERSION})
SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_SYSTEM_VERSION 1)
SET(CMAKE_C_COMPILER /opt/emac/5.0.0/sysroots/i686-emacsdk-linux/usr/bin/i586-emac-linux/i586-emac-linux-gcc)
SET(CMAKE_CXX_COMPILER /opt/emac/5.0.0/sysroots/i686-emacsdk-linux/usr/bin/i586-emac-linux/i586-emac-linux-g++)
SET(CMAKE_FIND_ROOT_PATH /opt/emac/5.0.0/sysroots/core2-emac-linux/)
SET(CMAKE_C_FLAGS " -m32 -march=core2 -msse3 -mtune=generic -mfpmath=sse -pipe -feliminate-unused-debug-types -Wall -MMD")
SET(CMAKE_CXX_FLAGS " -m32 -march=core2 -msse3 -mtune=generic -mfpmath=sse -pipe -feliminate-unused-debug-types -fpermissive -Wall -MMD")
SET(CMAKE_C_FLAGS_DEBUG "-O0 -g ${CMAKE_C_FLAGS}")
SET(CMAKE_C_FLAGS_RELEASE "-O2 -s ${CMAKE_C_FLAGS}")
SET(CMAKE_C_FLAGS_MINSIZEREL "-O3 -s ${CMAKE_C_FLAGS}")
SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g ${CMAKE_CXX_FLAGS}")
SET(CMAKE_CXX_FLAGS_RELEASE "-O2 -s ${CMAKE_CXX_FLAGS}")
SET(CMAKE_CXX_FLAGS_MINSIZEREL "-O3 -s ${CMAKE_CXX_FLAGS}")
#Custom Build Config
SET(CMAKE_C_FLAGS_CUSTOM "-O1 -s ${CMAKE_C_FLAGS}")
SET(CMAKE_CXX_FLAGS_CUSTOM "-O1 -s ${CMAKE_CXX_FLAGS}")
###
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "-s") ## Strip binary for RELEASE
#Version Information
SET(TC_I586_MAJOR_VERSION 1)
SET(TC_I586_MINOR_VERSION 0)
SET(TC_I586_PATCH_VERSION 0)
SET(TC_I586_VERSION ${TC_I586_MAJOR_VERSION}.${TC_I586_MINOR_VERSION}.${TC_I586_PATCH_VERSION})
SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_SYSTEM_VERSION 1)
SET(CMAKE_C_COMPILER /opt/emac/5.0.0/sysroots/i686-emacsdk-linux/usr/bin/i586-emac-linux/i586-emac-linux-gcc)
SET(CMAKE_CXX_COMPILER /opt/emac/5.0.0/sysroots/i686-emacsdk-linux/usr/bin/i586-emac-linux/i586-emac-linux-g++)
SET(CMAKE_FIND_ROOT_PATH /opt/emac/5.0.0/sysroots/core2-emac-linux/)
SET(CMAKE_C_FLAGS " -m32 -march=i586 -pipe -feliminate-unused-debug-types -Wall -MMD")
SET(CMAKE_CXX_FLAGS " -m32 -march=i586 -pipe -feliminate-unused-debug-types -fpermissive -Wall -MMD")
SET(CMAKE_C_FLAGS_DEBUG "-O0 -g ${CMAKE_C_FLAGS}")
SET(CMAKE_C_FLAGS_RELEASE "-O2 -s ${CMAKE_C_FLAGS}")
SET(CMAKE_C_FLAGS_MINSIZEREL "-O3 -s ${CMAKE_C_FLAGS}")
SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g ${CMAKE_CXX_FLAGS}")
SET(CMAKE_CXX_FLAGS_RELEASE "-O2 -s ${CMAKE_CXX_FLAGS}")
SET(CMAKE_CXX_FLAGS_MINSIZEREL "-O3 -s ${CMAKE_CXX_FLAGS}")
#Custom Build Config
SET(CMAKE_C_FLAGS_CUSTOM "-O1 -s ${CMAKE_C_FLAGS}")
SET(CMAKE_CXX_FLAGS_CUSTOM "-O1 -s ${CMAKE_CXX_FLAGS}")
###
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "-s") ## Strip binary for RELEASE
#Version Information
SET(TC_X86_MAJOR_VERSION 1)
SET(TC_X86_MINOR_VERSION 0)
SET(TC_X86_PATCH_VERSION 0)
SET(TC_X86_VERSION ${TC_X86_MAJOR_VERSION}.${TC_X86_MINOR_VERSION}.${TC_X86_PATCH_VERSION})
SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_SYSTEM_VERSION 1)
SET(CMAKE_C_COMPILER /opt/emac/5.0/sysroots/i686-emacsdk-linux/usr/bin/i586-emac-linux/i586-emac-linux-gcc)
SET(CMAKE_CXX_COMPILER /opt/emac/5.0/sysroots/i686-emacsdk-linux/usr/bin/i586-emac-linux/i586-emac-linux-g++)
SET(CMAKE_FIND_ROOT_PATH /opt/emac/5.0/sysroots/core2-emac-linux/)
SET(CMAKE_C_FLAGS " -m32 -march=core2 -msse3 -mtune=generic -mfpmath=sse -pipe -feliminate-unused-debug-types -Wall -MMD")
SET(CMAKE_CXX_FLAGS " -m32 -march=core2 -msse3 -mtune=generic -mfpmath=sse -pipe -feliminate-unused-debug-types -fpermissive -Wall -MMD")
SET(CMAKE_C_FLAGS_DEBUG "-O0 -g ${CMAKE_C_FLAGS}")
SET(CMAKE_C_FLAGS_RELEASE "-O2 -s ${CMAKE_C_FLAGS}")
SET(CMAKE_C_FLAGS_MINSIZEREL "-O3 -s ${CMAKE_C_FLAGS}")
SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g ${CMAKE_CXX_FLAGS}")
SET(CMAKE_CXX_FLAGS_RELEASE "-O2 -s ${CMAKE_CXX_FLAGS}")
SET(CMAKE_CXX_FLAGS_MINSIZEREL "-O3 -s ${CMAKE_CXX_FLAGS}")
#Custom Build Config
SET(CMAKE_C_FLAGS_CUSTOM "-O1 -s ${CMAKE_C_FLAGS}")
SET(CMAKE_CXX_FLAGS_CUSTOM "-O1 -s ${CMAKE_CXX_FLAGS}")
###
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "-s") ## Strip binary for RELEASE
if(EXISTS "/etc/emac/toolchain-selector.cmake")
include(/etc/emac/toolchain-selector.cmake)
else()
MESSAGE(FATAL_ERROR "ERROR: Toolchain selection file could not be found at /etc/emac/toolchain-selector.cmake")
endif()
cmake_minimum_required(VERSION 2.6)
project (indexed_atod_test)
add_executable(indexed_atod_test indexed_atod_test.c)
file(WRITE "${CMAKE_SOURCE_DIR}/QtCreatorDeployment.txt" "${REMOTE}")
This diff is collapsed.
#ifndef GPIO_CHAR_H_
#define GPIO_CHAR_H_
/* Userspace version of kernel header file */
#include <linux/ioctl.h>
#define RTDM_CLASS_GPIO 0x80
#define DDRREAD _IOR(RTDM_CLASS_GPIO,0,char)
#define DDRWRITE _IOW(RTDM_CLASS_GPIO,0,char)
#define DATAREAD _IOR(RTDM_CLASS_GPIO,1,char)
#define DATAWRITE _IOW(RTDM_CLASS_GPIO,1,char)
/* additions for the char driver */
#define INDEXREAD _IOR(RTDM_CLASS_GPIO,2,char)
#define INDEXWRITE _IOW(RTDM_CLASS_GPIO,2,char)
#endif /*GPIO_CHAR_H_*/
/**
* @file indexed_atod_test.c
*
* Example application for reading all channels of an indexed atod device
* on EMAC OE Linux. Examples of this type of device are the processor
* AtoDs on the SoM-9260/9G20 and the IPAC-9302 and the mcp3208 external
* AtoD devices on the SoM-150ES carrier (through the /dev/mcp3208-gpio
* device. This interface uses the EMAC ioex class to provide a GPIO-like
* device where each channel can be read directly.(see also the egpc project).
*
* @author EMAC, Inc. <support@emacinc.com>
*
* Copyright (C) 2009 EMAC, Inc.
*/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include <sys/types.h>
#include <asm/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <stdint.h>
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include "gpio_char.h" /* get the ioctl commands */
int main(int argc, char *argv[])
{
__u32 index;
__u32 data;
int file_des;
int channels;
if (argc != 3) {
fprintf(stderr, "Usage: indexed_atod_test DEVICE CHANNELS\n");
fprintf(stderr, "i.e. : ./indexed_atod_test /dev/indexed_atod 4\n");
}
if ((file_des = open(argv[1], O_RDWR)) == -1) {
fprintf(stderr,"Error opening device file: %s: %s\n", argv[1], strerror(errno));
return -1;
}
channels = atoi(argv[2]);
for(index = 0; index < channels; index++)
{
/* set the index */
if (ioctl(file_des, INDEXWRITE, &index) == -1) {
fprintf(stderr,"error setting index: %s\n", strerror(errno));
return -1;
}
usleep(1); /* this seems to be necessary for the IPAC-9302 */
/* read the data */
if (ioctl(file_des, DATAREAD, &data) == -1) {
fprintf(stderr,"error reading data\n");
return -1;
}
printf("[%d] = %d\n", index, data);
}
close(file_des);
return 0;
}
if(EXISTS "/etc/emac/toolchain-selector.cmake")
include(/etc/emac/toolchain-selector.cmake)
else()
MESSAGE(FATAL_ERROR "ERROR: Toolchain selection file could not be found at /etc/emac/toolchain-selector.cmake")
endif()
cmake_minimum_required(VERSION 2.6)
project (brightness)
find_package(PkgConfig REQUIRED)
pkg_check_modules(GTK2 REQUIRED gtk+-2.0)
include_directories(${GTK2_INCLUDE_DIRS})
link_directories(${GTK2_LIBRARY_DIRS})
add_executable( brightness brightness.c )
add_definitions(${GTK2_CFLAGS_OTHER})
target_link_libraries(brightness ${GTK2_LIBRARIES})
file(WRITE "${CMAKE_SOURCE_DIR}/QtCreatorDeployment.txt" "${REMOTE}")
cmake_minimum_required(VERSION 2.6)
project (brightness)
find_package(PkgConfig REQUIRED)
pkg_check_modules(GTK2 REQUIRED gtk-2.0)
include_directories(../../target_root/usr/include/gtk-2.0
include_directories(../../target_root/usr/include/glib-2.0
include_directories(../../target_root/usr/include/cairo
include_directories(../../target_root/usr/include/pango-1.0
include_directories(../../target_root/usr/include/atk-1.0
include_directories(../../target_root/usr/lib/gtk-2.0/include
#include_directories(${GTK2_INCLUDE_DIRS})
#link_directories(${GTK2_LIBRARY_DIRS})
add_definitions(${GTK2_CFLAGS_OTHER})
add_executable(brightness brightness.c)
target_link_libraries(brightness ${GTK2_LIBRARIES})
#CFLAGS+=-I$(ROOT)/usr/include/gtk-2.0 \
# -I$(ROOT)/usr/include/glib-2.0 \
# -I$(ROOT)/usr/include/cairo \
# -I$(ROOT)/usr/include/pango-1.0 \
# -I$(ROOT)/usr/include/atk-1.0 \
# -I$(ROOT)/usr/lib/gtk-2.0/include
#DYNLIBS=-lX11 -lXext -lgtk-x11-2.0 -lgdk-x11-2.0 -lgmodule-2.0 -lglib-2.0
#TARGET=brightness
#CFILES=brightness.c
#OBJS=$(CFILES:.c=.o)
#DEPS=$(OBJS:.o=.d)
#default: all
#all: $(TARGET)
#$(TARGET): $(OBJS) Makefile
# $(CC) *.o $(SLIBS) -o $(TARGET) $(DYNLIBS)
#%.o: %.c
# $(CC) $(VERBOSE) -c $(CFILES) $(CFLAGS)
#upload: all
# $(WPUT) $(TARGET) ftp://$(LOGIN):$(PASSWORD)@$(TARGET_IP)/../../tmp/$(TARGET)
#clean:
# $(RM) *.o *.gdb $(TARGET) $(DEPS)
#-include $(DEPS)
if(DEFINED ARCH)
else()
SET(ARCH "def")
endif()
if(DEFINED REMOTE)
else()
SET(REMOTE "/tmp\n")
endif()
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release" CACHE STRING
"Choose the type of build, options are: Debug Release
MinSizeRel."
FORCE)
endif(NOT CMAKE_BUILD_TYPE)
if(${ARCH} STREQUAL "x86")
if(EXISTS "../toolchain.x86.cmake")
SET(CMAKE_TOOLCHAIN_FILE ../toolchain.x86.cmake)
else()
MESSAGE(FATAL_ERROR "Warning: x86 toolchain is not installed")
endif()
elseif(${ARCH} STREQUAL "armv5")
if(EXISTS "../toolchain.armv5te.cmake")
SET(CMAKE_TOOLCHAIN_FILE ../toolchain.armv5te.cmake)
else()
MESSAGE(FATAL_ERROR "Warning: armv5 toolchain is not installed")
endif()
elseif(${ARCH} STREQUAL "armv7")
if(EXISTS "../toolchain.armv7a.cmake")
SET(CMAKE_TOOLCHAIN_FILE ../toolchain.armv7a.cmake)
else()
MESSAGE(FATAL_ERROR "Warning: armv7 toolchain is not installed")
endif()
elseif(${ARCH} STREQUAL "def")
MESSAGE(STATUS "Using system compiler")
else()
MESSAGE(FATAL_ERROR "ERROR: Not a valid toolchain name. Options are: x86, armv5, and armv7")
endif()
#### Set flags useful for cross-compiling ####
##set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
##set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY NEVER)
##set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE NEVER)
##############################################
cmake_minimum_required(VERSION 2.6)
project (brightness)
find_package(PkgConfig REQUIRED)
pkg_check_modules(GTK2 REQUIRED gtk+-2.0)
include_directories(${GTK2_INCLUDE_DIRS})
link_directories(${GTK2_LIBRARY_DIRS})
#set(TARGROOT "/home/klint/EMAC-OE-arm-linux-gnueabi-SDK_4.0/target_root")
#set(INCLDIR "/home/klint/EMAC-OE-arm-linux-gnueabi-SDK_4.0/target_root/usr/include")
#
#include_directories(
# ${INCLDIR}/gtk-2.0
# ${INCLDIR}/glib-2.0
# ${INCLDIR}/glib-2.0/gtk
# ${INCLDIR}/cairo
# ${INCLDIR}/pango-1.0
# ${INCLDIR}/atk-1.0
# /usr/lib/gtk-2.0/include
# /home/klint/EMAC-OE-arm-linux-gnueabi-SDK_4.0/target_root/usr/lib/gtk-2.0/include
# )
#
#set( CMAKE_INCLUDE_PATH "/home/klint/EMAC-OE-arm-linux-gnueabi-SDK_4.0/target_root/usr/lib/gtk-2.0/include/:/home/klint/EMAC-OE-arm-linux-gnueabi-SDK_4.0/target_root/usr/include" )
#
#
#link_directories( /home/klint/EMAC-OE-arm-linux-gnueabi-SDK_4.0/target_root/usr/lib )
add_executable( brightness brightness.c )
add_definitions(${GTK2_CFLAGS_OTHER})
target_link_libraries(brightness ${GTK2_LIBRARIES})
## ${INCLDIR}/gtk-2.0/gtk/gtk.h ${TARGROOT}/usr/lib/gtk-2.0/include/gdkconfig.h )
##find_package(PkgConfig)
##pkg_check_modules(GTKMM gtkmm-2.0)
#target_link_libraries( brightness
# X11
# Xext
# gtk-x11-2.0
# gdk-x11-2.0
# gmodule-2.0
# glib-2.0
# )
# 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 = /home/klint/cmake-2.8.12.2-Linux-i386/bin/cmake
# The command to remove a file.
RM = /home/klint/cmake-2.8.12.2-Linux-i386/bin/cmake -E remove -f
# Escaping for special characters.
EQUALS = =
# 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 = /home/klint/SDK/projects_cmake/brightness
# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /home/klint/SDK/projects_cmake/brightness
#=============================================================================
# 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..."
/home/klint/cmake-2.8.12.2-Linux-i386/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 /home/klint/SDK/projects_cmake/brightness/CMakeFiles /home/klint/SDK/projects_cmake/brightness/CMakeFiles/progress.marks
$(MAKE) -f CMakeFiles/Makefile2 all
$(CMAKE_COMMAND) -E cmake_progress_start /home/klint/SDK/projects_cmake/brightness/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 brightness
# Build rule for target.
brightness: cmake_check_build_system
$(MAKE) -f CMakeFiles/Makefile2 brightness
.PHONY : brightness
# fast build rule for target.
brightness/fast:
$(MAKE) -f CMakeFiles/brightness.dir/build.make CMakeFiles/brightness.dir/build
.PHONY : brightness/fast
brightness.o: brightness.c.o
.PHONY : brightness.o
# target to build an object file
brightness.c.o:
$(MAKE) -f CMakeFiles/brightness.dir/build.make CMakeFiles/brightness.dir/brightness.c.o
.PHONY : brightness.c.o
brightness.i: brightness.c.i
.PHONY : brightness.i
# target to preprocess a source file
brightness.c.i:
$(MAKE) -f CMakeFiles/brightness.dir/build.make CMakeFiles/brightness.dir/brightness.c.i
.PHONY : brightness.c.i
brightness.s: brightness.c.s
.PHONY : brightness.s
# target to generate assembly for a file
brightness.c.s:
$(MAKE) -f CMakeFiles/brightness.dir/build.make CMakeFiles/brightness.dir/brightness.c.s
.PHONY : brightness.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 "... brightness"
@echo "... edit_cache"
@echo "... rebuild_cache"
@echo "... brightness.o"
@echo "... brightness.i"
@echo "... brightness.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
include ../global.properties
ROOT=$(SDKBASE)target_root