Commit 7cb39bd8 authored by Jens Meyer's avatar Jens Meyer

Hexapode conda package files

parent fba34ec9
Pipeline #12640 failed with stages
in 17 seconds
CXX ?= c++
PREFIX ?= /usr/local
CLASS = Hexapito
OBJ = c-source/Hexapito.o \
c-source/Actuators.o \
c-source/Geometry.o \
c-source/SharedMemory.o \
c-source/SignalHandling.o \
c-source/Hxptopi.o \
c-source/Hxptohyd.o \
c-source/HxptoIcepap.o \
c-source/HxptoNoMotor.o
DEPS = c-source/Actuators.h \
c-source/ESRFHexapode.h \
c-source/SharedMemory.h \
c-source/SignalHandling.h \
c-source/MessageHandling.h \
c-source/EsrfHexapodeErrors.h \
c-source/ESRFHexapito.h
CFLAGS = -g -DHAVE_SYS_SIGNAL_H -D_GNU_SOURCE -Dlinux -Dunix \
-Ic-source -I$(PREFIX)/include -I$(PREFIX)/include/deep
LFLAGS = -L$(PREFIX)/lib \
-ldeep -lm -lpthread
%.o: %.c $(DEPS)
$(CC) $(CFLAGS) -c -o $@ $<
$(CLASS): $(OBJ)
$(CC) -o $(CLASS) $^ $(LFLAGS)
install: $(CLASS)
cp $(CLASS) $(PREFIX)/bin
.PHONY: install clean
clean:
rm -f $(CLASS) *.o *~ core
CXX ?= c++
PREFIX ?= /usr/local
CLASS = Hexapode
OBJ = $(CLASS).o \
$(CLASS)Class.o \
$(CLASS)StateMachine.o \
c-source/SharedMemory.c \
c-source/Auxiliary.c \
main.o \
ClassFactory.o
DEPS = $(CLASS).h \
$(CLASS)Class.h
CXXFLAGS = -g -std=c++0x -D_REENTRANT -Dlinux \
-I. -Ic-source -I$(PREFIX)/include -I$(PREFIX)/include/tango -I$(PREFIX)/include/deep
LFLAGS = -L$(PREFIX)/lib \
-ltango -llog4tango \
-lomniORB4 -lomniDynamic4 -lomnithread -lCOS4 -lzmq -ldeep
%.o: %.cpp $(DEPS)
$(CXX) $(CXXFLAGS) -c -o $@ $<
$(CLASS): $(OBJ)
$(CXX) -o $(CLASS) $^ $(LFLAGS)
install: $(CLASS)
cp $(CLASS) $(PREFIX)/bin
.PHONY: install clean
clean:
rm -f $(CLASS) *.o *~ core
export CC=${PREFIX}/bin/gcc
export CXX=${PREFIX}/bin/g++
cp ${RECIPE_DIR}/Makefile src/
cp ${RECIPE_DIR}/Hexapito_Makefile src/
make -C src/ -j4
make -C src/ install
make -f Hexapito_Malefile -C src/ -j4
make -f Hexapito_Malefile -C src/ install
{% set version = "1.0" %}
package:
name: tango-hexapode
version: {{ version }}
source:
git_url: https://gitlab.esrf.fr/meyer/esrf-hexapode.git
git_rev: master
requirements:
build:
- deep
- tango
- gcc
run:
- libgcc
- tango
- deep
about:
home:
license: LGPL
summary: Tango ESRF Hexapode server
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment