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

prepared Makefile for GTFPGA node type

This commit is contained in:
Steffen Vogel 2015-05-07 13:03:34 +02:00
parent 08f7dd5b25
commit 8cc90007fa
2 changed files with 12 additions and 1 deletions

View file

@ -1,7 +1,9 @@
TARGETS = server send random receive test
# Common dependencies for all binaries
OBJS = socket.o if.o utils.o msg.o node.o cfg.o tc.o hooks.o list.o path.o hist.o log.o socket.o file.o
OBJS = if.o utils.o msg.o node.o cfg.o tc.o hooks.o list.o path.o hist.o log.o
# Node types
OBJS += socket.o file.o
VPATH = src
@ -25,6 +27,13 @@ else
CFLAGS += -O3
endif
# Enabled GTFPGA support when libpci is available
ifneq (,$(wildcard /usr/include/pci/pci.h))
CFLAGS += -DENABLE_GTFPGA
LDFLAGS += -lpci
OBJS += gtfpga.o
endif
# Enable OPAL-RT Asynchronous Process support
OPALDIR = /usr/opalrt/common
#OPALDIR = ../opal

View file

@ -13,7 +13,9 @@
/* Node types */
#include "file.h"
#include "socket.h"
#ifdef ENABLE_GTFPGA
#include "gtfpga.h"
#endif
#ifdef ENABLE_OPAL_ASYNC
#include "opal.h"
#endif