diff --git a/server/Makefile b/server/Makefile index c947856da..79282308e 100644 --- a/server/Makefile +++ b/server/Makefile @@ -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 diff --git a/server/src/node.c b/server/src/node.c index 7ac9b60e0..ec4584faa 100644 --- a/server/src/node.c +++ b/server/src/node.c @@ -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