mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
Updated and modularised Makefiles
This commit is contained in:
parent
ac7a87b8fc
commit
5beb70d0c6
4 changed files with 12 additions and 12 deletions
|
@ -8,12 +8,15 @@ LIB_SRCS = $(addprefix lib/nodes/, file.c cbuilder.c) \
|
|||
log.c utils.c cfg.c hist.c timing.c pool.c list.c \
|
||||
queue.c memory.c advio.c \
|
||||
) \
|
||||
$(wildcard lib/hooks/*.c) \
|
||||
|
||||
LIB_CFLAGS = $(CFLAGS) -fPIC
|
||||
LIB_LDFLAGS = -shared
|
||||
LIB_LDLIBS = $(LDLIBS) -ldl -lrt
|
||||
|
||||
-include lib/hooks/Makefile.inc
|
||||
-include lib/apis/Makefile.inc
|
||||
-include lib/fpga/Makefile.inc
|
||||
|
||||
######## Node types ########
|
||||
|
||||
# Enable Socket node type when libnl3 is available
|
||||
|
@ -23,8 +26,6 @@ ifeq ($(shell pkg-config libnl-route-3.0; echo $$?),0)
|
|||
LIB_SRCS += $(addprefix lib/kernel/, nl.c tc.c if.c)
|
||||
LIB_SRCS += $(addprefix lib/, msg.c)
|
||||
LIB_PKGS += libnl-route-3.0
|
||||
else
|
||||
$(error Missing dependecy: libnl-3)
|
||||
endif
|
||||
endif
|
||||
|
||||
|
@ -33,10 +34,7 @@ ifndef WITHOUT_FPGA
|
|||
ifeq ($(shell pkg-config libxil; echo $$?),0)
|
||||
LIB_SRCS += $(addprefix lib/nodes/, fpga.c)
|
||||
LIB_SRCS += $(addprefix lib/kernel/, pci.c vfio.c)
|
||||
LIB_SRCS += $(wildcard lib/fpga/*.c)
|
||||
PKGS += libxil
|
||||
else
|
||||
$(error Missing dependecy: libxil)
|
||||
endif
|
||||
endif
|
||||
|
||||
|
@ -45,8 +43,6 @@ ifndef WITHOUT_NGSI
|
|||
ifeq ($(shell pkg-config libcurl jansson; echo $$?),0)
|
||||
LIB_SRCS += lib/nodes/ngsi.c
|
||||
LIB_PKGS += libcurl jansson
|
||||
else
|
||||
$(error Missing dependecies: libjansson)
|
||||
endif
|
||||
endif
|
||||
|
||||
|
@ -55,8 +51,6 @@ ifndef WITHOUT_WEBSOCKETS
|
|||
ifeq ($(shell pkg-config libwebsockets jansson; echo $$?),0)
|
||||
LIB_SRCS += lib/nodes/websocket.c
|
||||
LIB_PKGS += libwebsockets jansson
|
||||
else
|
||||
$(error Missing dependecies: libwebsockets or libjansson)
|
||||
endif
|
||||
endif
|
||||
|
||||
|
@ -73,8 +67,6 @@ ifneq (,$(wildcard thirdparty/opal/include/AsyncApi.h))
|
|||
CFLAGS += -m32
|
||||
LDFLAGS += -m32
|
||||
BUILDDIR := $(BUILDDIR)32
|
||||
else
|
||||
$(error Missing dependecy: libOpalUtils libOpalAsyncApiCore)
|
||||
endif
|
||||
endif
|
||||
|
||||
|
|
6
lib/fpga/Makefile.inc
Normal file
6
lib/fpga/Makefile.inc
Normal file
|
@ -0,0 +1,6 @@
|
|||
# Enable VILLASfpga support when libxil is available
|
||||
ifndef WITHOUT_FPGA
|
||||
ifeq ($(shell pkg-config libxil; echo $$?),0)
|
||||
LIB_SRCS += $(wildcard lib/fpga/*.c)
|
||||
endif
|
||||
endif
|
1
lib/hooks/Makefile.inc
Normal file
1
lib/hooks/Makefile.inc
Normal file
|
@ -0,0 +1 @@
|
|||
LIB_SRCS += $(wildcard lib/hooks/*.c)
|
1
lib/nodes/Makefile.inc
Normal file
1
lib/nodes/Makefile.inc
Normal file
|
@ -0,0 +1 @@
|
|||
LIB_SRC += $(wildcard lib/nodes/*.c)
|
Loading…
Add table
Reference in a new issue