1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

updated build-system to build AsyncIP by default

This commit is contained in:
Steffen Vogel 2017-04-24 13:06:59 +02:00
parent 8c4f291fd9
commit 48a5b8ed0d
4 changed files with 21 additions and 17 deletions

View file

@ -16,8 +16,7 @@ FROM fedora:latest
MAINTAINER Steffen Vogel <stvogel@eonerc.rwth-aachen.de>
# Toolchain
RUN dnf -y update && \
dnf -y install \
RUN dnf -y install \
gcc gcc-c++ \
pkgconfig make cmake \
autoconf automake autogen libtool \
@ -25,8 +24,7 @@ RUN dnf -y update && \
texinfo git
# Dependencies
RUN dnf -y update && \
dnf -y install \
RUN dnf -y install \
openssl openssl-devel \
libconfig-devel \
libnl3-devel \
@ -34,8 +32,7 @@ RUN dnf -y update && \
jansson-devel
# Several tools only needed for developement and testing
RUN dnf -y update && \
dnf -y install \
RUN dnf -y install \
doxygen dia graphviz \
openssh-clients \
rpmdevtools rpm-build \
@ -45,6 +42,12 @@ RUN dnf -y update && \
valgrind \
gdb
# 32bit versions of some standard libraries for RT-LAB code
RUN dnf -y install \
libstdc++-devel.i686 \
libuuid-devel.i686 \
glibc-devel.i686
# Tools for debugging, coverage, profiling
RUN pip install \
gcovr

View file

@ -15,7 +15,7 @@
###################################################################################
# Project modules
MODULES = lib plugins src tests thirdparty tools packaging doc etc web
MODULES = clients lib plugins src tests thirdparty tools packaging doc etc web
# Default prefix for install target
PREFIX ?= /usr/local

View file

@ -1,19 +1,20 @@
ASYNCIP_PATH = $(SRCDIR)/clients/opal/udp/models/send_receive
ASYNCIP_PATH = $(SRCDIR)/clients/opal/villas_udp/models/send_receive
clients: clients-opal
clients-opal:
$(MAKE) -C $(ASYNCIP_PATH) -f Makefile.mk AsyncIP \
RTLAB_INTEL_COMPILER=0 \
ASYNCIP_OPTS = RTLAB_INTEL_COMPILER=0 \
PROTOCOL=GTNET_SKT \
OPAL_LIBS="-lSystem -luuid" \
OPAL_LIBPATH=-L$(SRCDIR)/thirdparty/libopal/ \
OPAL_INCPATH=-I$(SRCDIR)/thirdparty/libopal/include/opal
clients: clients-opal
clients-opal:
$(MAKE) -C $(ASYNCIP_PATH) -f Makefile.mk AsyncIP $(ASYNCIP_OPTS)
clean-clients:
$(MAKE) -C $(ASYNCIP_PATH) -f Makefile.mk clean
$(MAKE) -C $(ASYNCIP_PATH) -f Makefile.mk clean $(ASYNCIP_OPTS)
install-clients:
$(MAKE) -C $(ASYNCIP_PATH) -f Makefile.mk install
$(MAKE) -C $(ASYNCIP_PATH) -f Makefile.mk install $(ASYNCIP_OPTS)
.PHONY: clients clean-clients install-clients

View file

@ -1,6 +1,6 @@
TARGET = AsyncIP
VPATH = $(SRCDIR)/src
VPATH = src
RTLAB_INTEL_COMPILER ?= 1
@ -49,7 +49,7 @@ install: $(TARGET)
install -m 0755 -D -t $(DESTDIR)$(PREFIX)/bin $(TARGET)
clean:
rm -f $(OBJS) $(TARGET)
rm -f $(OBJS) $(OBJS:%.o=%.d) $(TARGET)
$(TARGET): $(OBJS)
$(LD) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)