Skip to content
Snippets Groups Projects
Commit f0b144dc authored by Nicolas Leclercq's avatar Nicolas Leclercq
Browse files

Reorganized the samples dir

parent f6225d3a
No related branches found
No related tags found
No related merge requests found
Showing
with 779 additions and 276 deletions
#==============================================================================
# Makefile to generate the YAT Task Test - NL & JM - SOLEIL
# Makefile to generate the YAT Test - NL - SOLEIL
#==============================================================================
#==============================================================================
......@@ -10,20 +10,25 @@ INCLUDE_DIRS = -I. -I../../include
#==============================================================================
# LIB DIRS
#==============================================================================
LIB_DIRS = -L../../lib/x86_64/static
LIB_DIRS = -L../../target/nar/lib/i386-Linux-g++/static
LIB_DIRS += -L../../src/.libs
#==============================================================================
# BINDING SHARED LIB: NAME & EXTENSION
# SRC FILE NAME
#===============================================================================
SRC = any_test.o
#==============================================================================
BIN_NAME = yattasktest
# BINARY NAME
#===============================================================================
BIN = anytest
#==============================================================================
# COMP$(CC)ILER/LINKER OPTIONS for GNU/LINUX
#==============================================================================
CC=g++
#------------------------------------------------------------------------------
CFLAGS = -pipe -W -DYAT_ENABLE_LOG
CFLAGS += -g -D_DEBUG
CFLAGS = -pipe -O2 -W -g
#------------------------------------------------------------------------------
LD=gcc
#------------------------------------------------------------------------------
......@@ -33,13 +38,12 @@ LDFLAGS =
#------------------------------------------------------------------------------
# LIBS
#------------------------------------------------------------------------------
LIBS = -lYATd -lpthread -lstdc++
LIBS = -lyat -lpthread -lstdc++ -ldl
#------------------------------------------------------------------------------
# OBJS FILES
#------------------------------------------------------------------------------
SRC_OBJS = ./my_task.o \
./main.o
SRC_OBJS = ./src/$(SRC)
#------------------------------------------------------------------------------
# RULE for .cpp files
......@@ -57,24 +61,15 @@ all: build
# RULE: build
#------------------------------------------------------------------------------
build: $(SRC_OBJS)
$(LD) -o $(BIN_NAME) $(LDFLAGS) $(SRC_OBJS) $(LIB_DIRS) $(LIBS)
#------------------------------------------------------------------------------
# RULE: install
#------------------------------------------------------------------------------
install:
mkdir -p ../../bin/linux
cp -f ./$(BIN_NAME) ../../bin/linux
rm -f ./$(BIN_NAME)
$(LD) -o $(BIN) $(LDFLAGS) $(SRC_OBJS) $(LIB_DIRS) $(LIBS)
#------------------------------------------------------------------------------
# RULE: clean
#------------------------------------------------------------------------------
clean:
rm -f *.o
rm -f *~
rm -f $(BIN_NAME)
rm -f ../../bin/linux/$(BIN_NAME)
rm -f ./src/*.o
rm -f ./src/*~
rm -f ./$(BIN)
......
<?xml version="1.0" encoding="utf-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>fr.soleil</groupId>
<artifactId>super-pom-C-CPP-device</artifactId>
<version>RELEASE</version>
</parent>
<groupId>fr.soleil.device</groupId>
<artifactId>yat-any-test-${aol}-${mode}</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>nar</packaging>
<name>AnyTester</name>
<description>a yat::Any test</description>
<build>
<plugins>
<plugin>
<groupId>org.freehep</groupId>
<artifactId>freehep-nar-plugin</artifactId>
<configuration>
<cpp>
<includePaths>
<includePath>${project.basedir}/src</includePath>
</includePaths>
<options>
<option>-Wno-uninitialized</option>
<option>-Wno-unused-parameter</option>
<option>-Wno-unused-variable</option>
</options>
</cpp>
</configuration>
</plugin>
</plugins>
</build>
<scm>
<connection>${scm.connection.svn.tango-cs}:share/yat</connection>
<developerConnection>${scm.developerConnection.svn.tango-cs}:share/yat</developerConnection>
<url>${scm.url.svn.tango-cs}/share/yat</url>
</scm>
<dependencies>
<dependency>
<groupId>fr.soleil.lib</groupId>
<artifactId>YAT-${aol}-${library}-${mode}</artifactId>
<version>1.7.2</version>
</dependency>
</dependencies>
<developers>
<developer>
<id>leclercq</id>
<name>leclercq</name>
<url>http://controle/</url>
<organization>Synchrotron Soleil</organization>
<organizationUrl>http://www.synchrotron-soleil.fr</organizationUrl>
<roles>
<role>manager</role>
</roles>
<timezone>1</timezone>
</developer>
</developers>
</project>
/*!
* \file
* \brief An example of yat::Task (and related classes) usage. .
* \author N. Leclercq, J. Malik - Synchrotron SOLEIL
* \brief An example of yat::any usage.
* \author N. Leclercq - Synchrotron SOLEIL
*/
#include <yat/threading/Mutex.h>
#include <yat/threading/Condition.h>
#include <yat/threading/Message.h>
#include <yat/Any.h>
#include <yat/any/Any.h>
#include <iostream>
int main(int argc, char* argv[])
......
#=============================================================================
# OUTPUT_TYPE can be one of the following :
# - 'STATIC_LIB' for a static library (.a)
# - 'DYNAMIC_LIB' for a dynamic library (.so)
# - 'DEVICE' for a device server (will automatically include and link
# with Tango dependencies)
# - 'SIMPLE_EXE' for an executable with no dependency (for exemple the test tool
# of a library with no Tango dependencies)
#
OUTPUT_TYPE = SIMPLE_EXE
#=============================================================================
# OUTPUT_DIR is the directory which contains the build result.
# if not set, the standard location is :
# - $HOME/DeviceServers if OUTPUT_TYPE is DEVICE
# - ../bin for others
#
OUTPUT_DIR = .
#=============================================================================
# PACKAGE_NAME is the name of the library/device/exe you want to build
# - for a device server, PACKAGE_NAME will be prefixed by 'ds_'
# - for a library (static or dynamic), PACKAGE_NAME will be prefixed by 'lib'
# - for a simple executable, PACKAGE_NAME will be the name of the executable
#
PACKAGE_NAME = yat_bitsstream_test
#=============================================================================
# INC_DIR_USER is the list of all include path needed by your sources
# - for a device server, tango dependencies are automatically appended
# - '-I ../include' and '-I .' are automatically appended in all cases
#
# -I$(SOLEIL_ROOT)/hw-support/ace/include for ACE library
# -I$(SOLEIL_ROOT)/hw-support/asl/include for ASL library
#-I/hkl/include for HKL library
# ...etc
#
INC_DIR_USER= -I../../include -I../../src
#=============================================================================
# LIB_DIR_USER is the list of user library directories
# - for a device server, tango libraries directories are automatically appended
# - '-L ../lib' is automatically appended in all cases
# -L $(SOLEIL_ROOT)/hw-support/ace/lib for ACE library
# -L $(SOLEIL_ROOT)/hw-support/asl/lib for ASL library
# -L $(SOLEIL_ROOT)/sw-support/hkl/lib for HKL library
# ...etc
#
LIB_DIR_USER= -L../../lib/static
#=============================================================================
# LFLAGS_USR is the list of user link flags
# - for a device server, tango libraries directories are automatically appended
# - '-ldl -lpthread' is automatically appended in all cases
#
# !!! ATTENTION !!!
# Be aware that the order matters.
# For example if you must link with libA, and if libA depends itself on libB
# you must use '-lA -lB' in this order as link flags, otherwise you will get
# 'undefined reference' errors
#
# -lACE for ACE
# -lASL for ASL
# -lHKL for HKL
#
LFLAGS_USR=-lYAT
#=============================================================================
# CXXFLAGS_USR lists the compilation flags specific for your library/device/exe
# This is the place where to put your compile-time macros using '-Dmy_macro'
#
# -DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ for ACE
#
#CXXFLAGS_USR=-DSIMULATED_AXIS
#
# include Standard TANGO compilation options
#
include ../../src/build/linux/tango.opt
#=============================================================================
# SVC_OBJS is the list of all objects needed to make the output
#
# $(OBJDIR)/ClassFactory.o \
# $(OBJDIR)/main.o \
# $(OBJDIR)/$(PACKAGE_NAME)Class.o \
# $(OBJDIR)/$(PACKAGE_NAME).o \
# $(OBJDIR)/$(PACKAGE_NAME)StateMachine.o
#
# other CPP source file path :
CPPDIRUSER=
SVC_OBJS = $(OBJDIR)/bitsstream_test.o
#
# Verbose mode
#
#.SILENT:
#
# include common targets
#
include ../../src/build/linux/common_target.opt
#==============================================================================
# Makefile to generate the YAT Test - NL - SOLEIL
#==============================================================================
#==============================================================================
# INCLUDE DIRS
#==============================================================================
INCLUDE_DIRS = -I. -I../../include
#==============================================================================
# LIB DIRS
#==============================================================================
LIB_DIRS = -L../../target/nar/lib/i386-Linux-g++/static
LIB_DIRS += -L../../src/.libs
#==============================================================================
# SRC FILE NAME
#===============================================================================
SRC = bitsstream_test.o
#==============================================================================
# BINARY NAME
#===============================================================================
BIN = bitsstreamtest
#==============================================================================
# COMP$(CC)ILER/LINKER OPTIONS for GNU/LINUX
#==============================================================================
CC=g++
#------------------------------------------------------------------------------
CFLAGS = -pipe -O2 -W -g
#------------------------------------------------------------------------------
LD=gcc
#------------------------------------------------------------------------------
LDFLAGS =
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
# LIBS
#------------------------------------------------------------------------------
LIBS = -lyat -lpthread -lstdc++ -ldl
#------------------------------------------------------------------------------
# OBJS FILES
#------------------------------------------------------------------------------
SRC_OBJS = ./src/$(SRC)
#------------------------------------------------------------------------------
# RULE for .cpp files
#------------------------------------------------------------------------------
.SUFFIXES: .o .cpp
.cpp.o:
$(CC) $(CFLAGS) $(INCLUDE_DIRS) -c -o $@ $<
#------------------------------------------------------------------------------
# RULE: all
#------------------------------------------------------------------------------
all: build
#------------------------------------------------------------------------------
# RULE: build
#------------------------------------------------------------------------------
build: $(SRC_OBJS)
$(LD) -o $(BIN) $(LDFLAGS) $(SRC_OBJS) $(LIB_DIRS) $(LIBS)
#------------------------------------------------------------------------------
# RULE: clean
#------------------------------------------------------------------------------
clean:
rm -f ./src/*.o
rm -f ./src/*~
rm -f ./$(BIN)
......
<?xml version="1.0" encoding="utf-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>fr.soleil</groupId>
<artifactId>super-pom-C-CPP-device</artifactId>
<version>RELEASE</version>
</parent>
<groupId>fr.soleil.device</groupId>
<artifactId>yat-bitsstream-test-${aol}-${mode}</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>nar</packaging>
<name>BitsStreamTester</name>
<description>a yat::BitsStream test</description>
<build>
<plugins>
<plugin>
<groupId>org.freehep</groupId>
<artifactId>freehep-nar-plugin</artifactId>
<configuration>
<cpp>
<includePaths>
<includePath>${project.basedir}/src</includePath>
</includePaths>
<options>
<option>-Wno-uninitialized</option>
<option>-Wno-unused-parameter</option>
<option>-Wno-unused-variable</option>
</options>
</cpp>
</configuration>
</plugin>
</plugins>
</build>
<scm>
<connection>${scm.connection.svn.tango-cs}:share/yat</connection>
<developerConnection>${scm.developerConnection.svn.tango-cs}:share/yat</developerConnection>
<url>${scm.url.svn.tango-cs}/share/yat</url>
</scm>
<dependencies>
<dependency>
<groupId>fr.soleil.lib</groupId>
<artifactId>YAT-${aol}-${library}-${mode}</artifactId>
<version>1.7.2</version>
</dependency>
</dependencies>
<developers>
<developer>
<id>leclercq</id>
<name>leclercq</name>
<url>http://controle/</url>
<organization>Synchrotron Soleil</organization>
<organizationUrl>http://www.synchrotron-soleil.fr</organizationUrl>
<roles>
<role>manager</role>
</roles>
<timezone>1</timezone>
</developer>
</developers>
</project>
#==============================================================================
# Makefile to generate the YAT Task Test - NL & JM - SOLEIL
# Makefile to generate the YAT Test - NL - SOLEIL
#==============================================================================
#==============================================================================
......@@ -10,20 +10,25 @@ INCLUDE_DIRS = -I. -I../../include
#==============================================================================
# LIB DIRS
#==============================================================================
LIB_DIRS = -L../../lib/static/linux
LIB_DIRS = -L../../target/nar/lib/i386-Linux-g++/static
LIB_DIRS += -L../../src/.libs
#==============================================================================
# BINDING SHARED LIB: NAME & EXTENSION
# SRC FILE NAME
#===============================================================================
SRC = callback_test.o
#==============================================================================
BIN_NAME = yatmisctests
# BINARY NAME
#===============================================================================
BIN = callbacktest
#==============================================================================
# COMP$(CC)ILER/LINKER OPTIONS for GNU/LINUX
#==============================================================================
CC=g++
#------------------------------------------------------------------------------
CFLAGS = -pipe -O2 -W -D_DEBUG -DYAT_ENABLE_LOG
CFLAGS += -g -D_DEBUG
CFLAGS = -pipe -O2 -W -g
#------------------------------------------------------------------------------
LD=gcc
#------------------------------------------------------------------------------
......@@ -33,12 +38,12 @@ LDFLAGS =
#------------------------------------------------------------------------------
# LIBS
#------------------------------------------------------------------------------
LIBS = -lYATd -lpthread -lstdc++
LIBS = -lyat -lpthread -lstdc++ -ldl
#------------------------------------------------------------------------------
# OBJS FILES
#------------------------------------------------------------------------------
SRC_OBJS = ./main.o
SRC_OBJS = ./src/$(SRC)
#------------------------------------------------------------------------------
# RULE for .cpp files
......@@ -50,30 +55,21 @@ SRC_OBJS = ./main.o
#------------------------------------------------------------------------------
# RULE: all
#------------------------------------------------------------------------------
all: build install
all: build
#------------------------------------------------------------------------------
# RULE: build
#------------------------------------------------------------------------------
build: $(SRC_OBJS)
$(LD) -o $(BIN_NAME) $(LDFLAGS) $(SRC_OBJS) $(LIB_DIRS) $(LIBS)
#------------------------------------------------------------------------------
# RULE: install
#------------------------------------------------------------------------------
install:
mkdir -p ../../bin/linux
cp -f ./$(BIN_NAME) ../../bin/linux
rm -f ./$(BIN_NAME)
$(LD) -o $(BIN) $(LDFLAGS) $(SRC_OBJS) $(LIB_DIRS) $(LIBS)
#------------------------------------------------------------------------------
# RULE: clean
#------------------------------------------------------------------------------
clean:
rm -f *.o
rm -f *~
rm -f $(BIN_NAME)
rm -f ../../bin/linux/$(BIN_NAME)
rm -f ./src/*.o
rm -f ./src/*~
rm -f ./$(BIN)
......
<?xml version="1.0" encoding="utf-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>fr.soleil</groupId>
<artifactId>super-pom-C-CPP-device</artifactId>
<version>RELEASE</version>
</parent>
<groupId>fr.soleil.device</groupId>
<artifactId>yat-callback-test-${aol}-${mode}</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>nar</packaging>
<name>CallbackTester</name>
<description>a yat::Callback test</description>
<build>
<plugins>
<plugin>
<groupId>org.freehep</groupId>
<artifactId>freehep-nar-plugin</artifactId>
<configuration>
<cpp>
<includePaths>
<includePath>${project.basedir}/src</includePath>
</includePaths>
<options>
<option>-Wno-uninitialized</option>
<option>-Wno-unused-parameter</option>
<option>-Wno-unused-variable</option>
</options>
</cpp>
</configuration>
</plugin>
</plugins>
</build>
<scm>
<connection>${scm.connection.svn.tango-cs}:share/yat</connection>
<developerConnection>${scm.developerConnection.svn.tango-cs}:share/yat</developerConnection>
<url>${scm.url.svn.tango-cs}/share/yat</url>
</scm>
<dependencies>
<dependency>
<groupId>fr.soleil.lib</groupId>
<artifactId>YAT-${aol}-${library}-${mode}</artifactId>
<version>1.7.2</version>
</dependency>
</dependencies>
<developers>
<developer>
<id>leclercq</id>
<name>leclercq</name>
<url>http://controle/</url>
<organization>Synchrotron Soleil</organization>
<organizationUrl>http://www.synchrotron-soleil.fr</organizationUrl>
<roles>
<role>manager</role>
</roles>
<timezone>1</timezone>
</developer>
</developers>
</project>
......@@ -5,7 +5,7 @@
*/
#include <iostream>
#include <yat/Callback.h>
#include <yat/utils/Callback.h>
/*
* The member and the static member of this class will be registered as callbacks
......
#==============================================================================
# Makefile to generate the YAT Test - NL - SOLEIL
#==============================================================================
#==============================================================================
# INCLUDE DIRS
#==============================================================================
INCLUDE_DIRS = -I. -I../../../include
#==============================================================================
# LIB DIRS
#==============================================================================
LIB_DIRS = -L../../../target/nar/lib/i386-Linux-g++/static
LIB_DIRS += -L../../../src/.libs
#==============================================================================
# COMP$(CC)ILER/LINKER OPTIONS for GNU/LINUX
#==============================================================================
CC=g++
#------------------------------------------------------------------------------
CFLAGS = -pipe -O2 -W -g
#------------------------------------------------------------------------------
LD=gcc
#------------------------------------------------------------------------------
LDFLAGS =
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
# LIBS
#------------------------------------------------------------------------------
LIBS = -lyat -lpthread -lstdc++ -ldl
#------------------------------------------------------------------------------
# OBJS FILES
#------------------------------------------------------------------------------
ALLOC_SRC_OBJS = ./src/allocator_test.o
#------------------------------------------------------------------------------
# RULE for .cpp files
#------------------------------------------------------------------------------
.SUFFIXES: .o .cpp
.cpp.o:
$(CC) $(CFLAGS) $(INCLUDE_DIRS) -c -o $@ $<
#------------------------------------------------------------------------------
# RULE: all
#------------------------------------------------------------------------------
all: build_alloc
#------------------------------------------------------------------------------
# RULE: build
#------------------------------------------------------------------------------
build_alloc: $(ALLOC_SRC_OBJS)
$(LD) -o allocatortest $(LDFLAGS) $(ALLOC_SRC_OBJS) $(LIB_DIRS) $(LIBS)
#------------------------------------------------------------------------------
# RULE: clean
#------------------------------------------------------------------------------
clean:
rm -f ./src/*.o
rm -f ./src/*~
rm -f ./allocatortest
<?xml version="1.0" encoding="utf-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>fr.soleil</groupId>
<artifactId>super-pom-C-CPP-device</artifactId>
<version>RELEASE</version>
</parent>
<groupId>fr.soleil.device</groupId>
<artifactId>yat-allocator-test-${aol}-${mode}</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>nar</packaging>
<name>AllocatorTester</name>
<description>a yat::Allocators test</description>
<build>
<plugins>
<plugin>
<groupId>org.freehep</groupId>
<artifactId>freehep-nar-plugin</artifactId>
<configuration>
<cpp>
<includePaths>
<includePath>${project.basedir}/src</includePath>
</includePaths>
<options>
<option>-Wno-uninitialized</option>
<option>-Wno-unused-parameter</option>
<option>-Wno-unused-variable</option>
</options>
</cpp>
</configuration>
</plugin>
</plugins>
</build>
<scm>
<connection>${scm.connection.svn.tango-cs}:share/yat</connection>
<developerConnection>${scm.developerConnection.svn.tango-cs}:share/yat</developerConnection>
<url>${scm.url.svn.tango-cs}/share/yat</url>
</scm>
<dependencies>
<dependency>
<groupId>fr.soleil.lib</groupId>
<artifactId>YAT-${aol}-${library}-${mode}</artifactId>
<version>1.7.2</version>
</dependency>
</dependencies>
<developers>
<developer>
<id>leclercq</id>
<name>leclercq</name>
<url>http://controle/</url>
<organization>Synchrotron Soleil</organization>
<organizationUrl>http://www.synchrotron-soleil.fr</organizationUrl>
<roles>
<role>manager</role>
</roles>
<timezone>1</timezone>
</developer>
</developers>
</project>
......@@ -5,13 +5,13 @@
#==============================================================================
# INCLUDE DIRS
#==============================================================================
INCLUDE_DIRS = -I. -I../../include
INCLUDE_DIRS = -I. -I../../../include
#==============================================================================
# LIB DIRS
#==============================================================================
#LIB_DIRS = -L../../target/nar/lib/i386-Linux-g++/static
LIB_DIRS = -L../../src/.libs
LIB_DIRS = -L../../../target/nar/lib/i386-Linux-g++/static
LIB_DIRS += -L../../../src/.libs
#==============================================================================
# COMP$(CC)ILER/LINKER OPTIONS for GNU/LINUX
......@@ -33,9 +33,7 @@ LIBS = -lyat -lpthread -lstdc++ -ldl
#------------------------------------------------------------------------------
# OBJS FILES
#------------------------------------------------------------------------------
SP_SRC_OBJS = ./sharedptr_test.o
SO_SRC_OBJS = ./shared_object_ptr_test.o
ALLOC_SRC_OBJS = ./allocator_test.o
SO_SRC_OBJS = ./src/shared_object_ptr_test.o
#------------------------------------------------------------------------------
# RULE for .cpp files
......@@ -47,7 +45,7 @@ ALLOC_SRC_OBJS = ./allocator_test.o
#------------------------------------------------------------------------------
# RULE: all
#------------------------------------------------------------------------------
all: build_so build_sp build_alloc
all: build_so
#------------------------------------------------------------------------------
# RULE: build
......@@ -55,19 +53,13 @@ all: build_so build_sp build_alloc
build_so: $(SO_SRC_OBJS)
$(LD) -o sharedobjectptrtest $(LDFLAGS) $(SO_SRC_OBJS) $(LIB_DIRS) $(LIBS)
build_sp: $(SP_SRC_OBJS)
$(LD) -o sharedptrtest $(LDFLAGS) $(SP_SRC_OBJS) $(LIB_DIRS) $(LIBS)
build_alloc: $(ALLOC_SRC_OBJS)
$(LD) -o allocatortest $(LDFLAGS) $(ALLOC_SRC_OBJS) $(LIB_DIRS) $(LIBS)
#------------------------------------------------------------------------------
# RULE: clean
#------------------------------------------------------------------------------
clean:
rm -f *.o
rm -f *~
rm -f ./sharedobjectptrtest ./sharedptrtest ./allocatortest
rm -f ./src/*.o
rm -f ./src/*~
rm -f ./sharedobjectptrtest
......
<?xml version="1.0" encoding="utf-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>fr.soleil</groupId>
<artifactId>super-pom-C-CPP-device</artifactId>
<version>RELEASE</version>
</parent>
<groupId>fr.soleil.device</groupId>
<artifactId>yat-sharedobject-test-${aol}-${mode}</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>nar</packaging>
<name>SharedObjectTester</name>
<description>a yat4::SharedObject test</description>
<build>
<plugins>
<plugin>
<groupId>org.freehep</groupId>
<artifactId>freehep-nar-plugin</artifactId>
<configuration>
<cpp>
<includePaths>
<includePath>${project.basedir}/src</includePath>
</includePaths>
<options>
<option>-Wno-uninitialized</option>
<option>-Wno-unused-parameter</option>
<option>-Wno-unused-variable</option>
</options>
</cpp>
</configuration>
</plugin>
</plugins>
</build>
<scm>
<connection>${scm.connection.svn.tango-cs}:share/yat</connection>
<developerConnection>${scm.developerConnection.svn.tango-cs}:share/yat</developerConnection>
<url>${scm.url.svn.tango-cs}/share/yat</url>
</scm>
<dependencies>
<dependency>
<groupId>fr.soleil.lib</groupId>
<artifactId>YAT-${aol}-${library}-${mode}</artifactId>
<version>1.7.2</version>
</dependency>
</dependencies>
<developers>
<developer>
<id>leclercq</id>
<name>leclercq</name>
<url>http://controle/</url>
<organization>Synchrotron Soleil</organization>
<organizationUrl>http://www.synchrotron-soleil.fr</organizationUrl>
<roles>
<role>manager</role>
</roles>
<timezone>1</timezone>
</developer>
</developers>
</project>
#==============================================================================
# Makefile to generate the YAT Test - NL & JM - SOLEIL
#==============================================================================
#==============================================================================
# INCLUDE DIRS
#==============================================================================
INCLUDE_DIRS = -I. -I../../../include
#==============================================================================
# LIB DIRS
#==============================================================================
LIB_DIRS = -L../../../target/nar/lib/i386-Linux-g++/static
LIB_DIRS += -L../../../src/.libs
#==============================================================================
# COMP$(CC)ILER/LINKER OPTIONS for GNU/LINUX
#==============================================================================
CC=g++
#------------------------------------------------------------------------------
CFLAGS = -pipe -O2 -W -g
#------------------------------------------------------------------------------
LD=gcc
#------------------------------------------------------------------------------
LDFLAGS =
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
# LIBS
#------------------------------------------------------------------------------
LIBS = -lyat -lpthread -lstdc++ -ldl
#------------------------------------------------------------------------------
# OBJS FILES
#------------------------------------------------------------------------------
SP_SRC_OBJS = ./src/sharedptr_test.o
#------------------------------------------------------------------------------
# RULE for .cpp files
#------------------------------------------------------------------------------
.SUFFIXES: .o .cpp
.cpp.o:
$(CC) $(CFLAGS) $(INCLUDE_DIRS) -c -o $@ $<
#------------------------------------------------------------------------------
# RULE: all
#------------------------------------------------------------------------------
all: build_sp
#------------------------------------------------------------------------------
# RULE: build
#------------------------------------------------------------------------------
build_sp: $(SP_SRC_OBJS)
$(LD) -o sharedptrtest $(LDFLAGS) $(SP_SRC_OBJS) $(LIB_DIRS) $(LIBS)
#------------------------------------------------------------------------------
# RULE: clean
#------------------------------------------------------------------------------
clean:
rm -f ./src/*.o
rm -f ./src/*~
rm -f ./sharedptrtest
<?xml version="1.0" encoding="utf-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>fr.soleil</groupId>
<artifactId>super-pom-C-CPP-device</artifactId>
<version>RELEASE</version>
</parent>
<groupId>fr.soleil.device</groupId>
<artifactId>yat-sharedptr-${aol}-${mode}</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>nar</packaging>
<name>SharedPtrTester</name>
<description>a yat::SharedPtr test</description>
<build>
<plugins>
<plugin>
<groupId>org.freehep</groupId>
<artifactId>freehep-nar-plugin</artifactId>
<configuration>
<cpp>
<includePaths>
<includePath>${project.basedir}/src</includePath>
</includePaths>
<options>
<option>-Wno-uninitialized</option>
<option>-Wno-unused-parameter</option>
<option>-Wno-unused-variable</option>
</options>
</cpp>
</configuration>
</plugin>
</plugins>
</build>
<scm>
<connection>${scm.connection.svn.tango-cs}:share/yat</connection>
<developerConnection>${scm.developerConnection.svn.tango-cs}:share/yat</developerConnection>
<url>${scm.url.svn.tango-cs}/share/yato</url>
</scm>
<dependencies>
<dependency>
<groupId>fr.soleil.lib</groupId>
<artifactId>YAT-${aol}-${library}-${mode}</artifactId>
<version>1.7.2</version>
</dependency>
</dependencies>
<developers>
<developer>
<id>leclercq</id>
<name>leclercq</name>
<url>http://controle/</url>
<organization>Synchrotron Soleil</organization>
<organizationUrl>http://www.synchrotron-soleil.fr</organizationUrl>
<roles>
<role>manager</role>
</roles>
<timezone>1</timezone>
</developer>
</developers>
</project>
#=============================================================================
# OUTPUT_TYPE can be one of the following :
# - 'STATIC_LIB' for a static library (.a)
# - 'DYNAMIC_LIB' for a dynamic library (.so)
# - 'DEVICE' for a device server (will automatically include and link
# with Tango dependencies)
# - 'SIMPLE_EXE' for an executable with no dependency (for exemple the test tool
# of a library with no Tango dependencies)
#
OUTPUT_TYPE = SIMPLE_EXE
#=============================================================================
# OUTPUT_DIR is the directory which contains the build result.
# if not set, the standard location is :
# - $HOME/DeviceServers if OUTPUT_TYPE is DEVICE
# - ../bin for others
#
OUTPUT_DIR = .
#=============================================================================
# PACKAGE_NAME is the name of the library/device/exe you want to build
# - for a device server, PACKAGE_NAME will be prefixed by 'ds_'
# - for a library (static or dynamic), PACKAGE_NAME will be prefixed by 'lib'
# - for a simple executable, PACKAGE_NAME will be the name of the executable
#
PACKAGE_NAME = yat_bitstream_and_socket_test
#=============================================================================
# INC_DIR_USER is the list of all include path needed by your sources
# - for a device server, tango dependencies are automatically appended
# - '-I ../include' and '-I .' are automatically appended in all cases
#
# -I$(SOLEIL_ROOT)/hw-support/ace/include for ACE library
# -I$(SOLEIL_ROOT)/hw-support/asl/include for ASL library
#-I/hkl/include for HKL library
# ...etc
#
INC_DIR_USER= -I../../include -I../../src
#=============================================================================
# LIB_DIR_USER is the list of user library directories
# - for a device server, tango libraries directories are automatically appended
# - '-L ../lib' is automatically appended in all cases
# -L $(SOLEIL_ROOT)/hw-support/ace/lib for ACE library
# -L $(SOLEIL_ROOT)/hw-support/asl/lib for ASL library
# -L $(SOLEIL_ROOT)/sw-support/hkl/lib for HKL library
# ...etc
#
LIB_DIR_USER= -L../../lib/static
#=============================================================================
# LFLAGS_USR is the list of user link flags
# - for a device server, tango libraries directories are automatically appended
# - '-ldl -lpthread' is automatically appended in all cases
#
# !!! ATTENTION !!!
# Be aware that the order matters.
# For example if you must link with libA, and if libA depends itself on libB
# you must use '-lA -lB' in this order as link flags, otherwise you will get
# 'undefined reference' errors
#
# -lACE for ACE
# -lASL for ASL
# -lHKL for HKL
#
LFLAGS_USR=-lYAT
#=============================================================================
# CXXFLAGS_USR lists the compilation flags specific for your library/device/exe
# This is the place where to put your compile-time macros using '-Dmy_macro'
#
# -DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ for ACE
#
#CXXFLAGS_USR=-DSIMULATED_AXIS
#
# include Standard TANGO compilation options
#
include ../../src/build/linux/tango.opt
#=============================================================================
# SVC_OBJS is the list of all objects needed to make the output
#
# $(OBJDIR)/ClassFactory.o \
# $(OBJDIR)/main.o \
# $(OBJDIR)/$(PACKAGE_NAME)Class.o \
# $(OBJDIR)/$(PACKAGE_NAME).o \
# $(OBJDIR)/$(PACKAGE_NAME)StateMachine.o
#
# other CPP source file path :
CPPDIRUSER=
SVC_OBJS = $(OBJDIR)/bitstream_and_socket_test.o
#
# Verbose mode
#
#.SILENT:
#
# include common targets
#
include ../../src/build/linux/common_target.opt
#==============================================================================
# Makefile to generate the YAT Test - NL - SOLEIL
#==============================================================================
#==============================================================================
# INCLUDE DIRS
#==============================================================================
INCLUDE_DIRS = -I. -I../../include
#==============================================================================
# LIB DIRS
#==============================================================================
LIB_DIRS = -L../../target/nar/lib/i386-Linux-g++/static
LIB_DIRS += -L../../src/.libs
#==============================================================================
# SRC FILE NAME
#===============================================================================
SRC = client_socket_test.o
#==============================================================================
# BINARY NAME
#===============================================================================
BIN = clientsockettest
#==============================================================================
# COMP$(CC)ILER/LINKER OPTIONS for GNU/LINUX
#==============================================================================
CC=g++
#------------------------------------------------------------------------------
CFLAGS = -pipe -O2 -W -g
#------------------------------------------------------------------------------
LD=gcc
#------------------------------------------------------------------------------
LDFLAGS =
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
# LIBS
#------------------------------------------------------------------------------
LIBS = -lyat -lpthread -lstdc++ -ldl
#------------------------------------------------------------------------------
# OBJS FILES
#------------------------------------------------------------------------------
SRC_OBJS = ./src/$(SRC)
#------------------------------------------------------------------------------
# RULE for .cpp files
#------------------------------------------------------------------------------
.SUFFIXES: .o .cpp
.cpp.o:
$(CC) $(CFLAGS) $(INCLUDE_DIRS) -c -o $@ $<
#------------------------------------------------------------------------------
# RULE: all
#------------------------------------------------------------------------------
all: build
#------------------------------------------------------------------------------
# RULE: build
#------------------------------------------------------------------------------
build: $(SRC_OBJS)
$(LD) -o $(BIN) $(LDFLAGS) $(SRC_OBJS) $(LIB_DIRS) $(LIBS)
#------------------------------------------------------------------------------
# RULE: clean
#------------------------------------------------------------------------------
clean:
rm -f ./src/*.o
rm -f ./src/*~
rm -f ./$(BIN)
......
<?xml version="1.0" encoding="utf-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>fr.soleil</groupId>
<artifactId>super-pom-C-CPP-device</artifactId>
<version>RELEASE</version>
</parent>
<groupId>fr.soleil.device</groupId>
<artifactId>yat-client-socket-test-${aol}-${mode}</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>nar</packaging>
<name>ClientSocketTester</name>
<description>a yat::ClientSocket test</description>
<build>
<plugins>
<plugin>
<groupId>org.freehep</groupId>
<artifactId>freehep-nar-plugin</artifactId>
<configuration>
<cpp>
<includePaths>
<includePath>${project.basedir}/src</includePath>
</includePaths>
<options>
<option>-Wno-uninitialized</option>
<option>-Wno-unused-parameter</option>
<option>-Wno-unused-variable</option>
</options>
</cpp>
</configuration>
</plugin>
</plugins>
</build>
<scm>
<connection>${scm.connection.svn.tango-cs}:share/yat</connection>
<developerConnection>${scm.developerConnection.svn.tango-cs}:share/yat</developerConnection>
<url>${scm.url.svn.tango-cs}/share/yat</url>
</scm>
<dependencies>
<dependency>
<groupId>fr.soleil.lib</groupId>
<artifactId>YAT-${aol}-${library}-${mode}</artifactId>
<version>1.7.2</version>
</dependency>
</dependencies>
<developers>
<developer>
<id>leclercq</id>
<name>leclercq</name>
<url>http://controle/</url>
<organization>Synchrotron Soleil</organization>
<organizationUrl>http://www.synchrotron-soleil.fr</organizationUrl>
<roles>
<role>manager</role>
</roles>
<timezone>1</timezone>
</developer>
</developers>
</project>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment