...
 
Commits (6)
PREFIX ?= /usr/local
CLASS = Hexapito
OBJ = Hexapito.o \
Actuators.o \
Geometry.o \
SharedMemory.o \
SignalHandling.o \
Hxptopi.o \
Hxptohyd.o \
HxptoIcepap.o \
HxptoNoMotor.o
DEPS = Actuators.h \
ESRFHexapode.h \
SharedMemory.h \
SignalHandling.h \
MessageHandling.h \
EsrfHexapodeErrors.h \
ESRFHexapito.h
CFLAGS = -g -DHAVE_SYS_SIGNAL_H -D_GNU_SOURCE -Dlinux -Dunix \
-I. -I$(PREFIX)/include -I$(PREFIX)/include/deep
LFLAGS = -L$(PREFIX)/lib -ldeep -lm -lpthread
%.o: %.c $(DEPS)
$(CC) $(CFLAGS) -c -o $@ $<
$(CLASS): $(OBJ)
$(CXX) -o $(CLASS) $^ $(LFLAGS)
install: $(CLASS)
cp $(CLASS) $(PREFIX)/bin
.PHONY: install clean
clean:
rm -f $(CLASS) *.o *~ core
PREFIX ?= /usr/local
CLASS = Hexapode
OBJ = $(CLASS).o \
$(CLASS)Class.o \
$(CLASS)StateMachine.o \
SharedMemory.o \
Auxiliary.o \
main.o \
ClassFactory.o
DEPS = $(CLASS).h \
$(CLASS)Class.h
CXXFLAGS = -g -std=c++0x -D_REENTRANT -Dlinux \
-I. -I./c-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 $@ $<
SharedMemory.o: c-source/SharedMemory.c
$(CXX) $(CXXFLAGS) -c $< -o SharedMemory.o
Auxiliary.o: c-source/Auxiliary.c
$(CXX) $(CXXFLAGS) -c $< -o Auxiliary.o
$(CLASS): $(OBJ)
$(CXX) -o $(CLASS) $^ $(LFLAGS)
install: $(CLASS)
cp $(CLASS) $(PREFIX)/bin
.PHONY: install clean
clean:
rm -f $(CLASS) *.o *~ core
cp ${RECIPE_DIR}/Makefile .
cp ${RECIPE_DIR}/Hexapito_Makefile ./c-source
make -j4
make install
cd ./c-source
make -f Hexapito_Makefile -j4
make -f Hexapito_Makefile 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:
host:
- tango
- libdeep
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
run:
- tango
- libdeep
about:
home:
license: LGPL
summary: Tango ESRF Hexapode server