summaryrefslogtreecommitdiffstats
path: root/addons/deviceatlas/Makefile.inc
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 05:11:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 05:11:10 +0000
commitcff6d757e3ba609c08ef2aaa00f07e53551e5bf6 (patch)
tree08c4fc3255483ad397d712edb4214ded49149fd9 /addons/deviceatlas/Makefile.inc
parentAdding upstream version 2.9.7. (diff)
downloadhaproxy-cff6d757e3ba609c08ef2aaa00f07e53551e5bf6.tar.xz
haproxy-cff6d757e3ba609c08ef2aaa00f07e53551e5bf6.zip
Adding upstream version 3.0.0.upstream/3.0.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--addons/deviceatlas/Makefile.inc31
1 files changed, 31 insertions, 0 deletions
diff --git a/addons/deviceatlas/Makefile.inc b/addons/deviceatlas/Makefile.inc
new file mode 100644
index 0000000..07d950a
--- /dev/null
+++ b/addons/deviceatlas/Makefile.inc
@@ -0,0 +1,31 @@
+# DEVICEATLAS_SRC : DeviceAtlas API source root path
+
+
+CXX := c++
+CXXLIB := -lstdc++
+
+ifeq ($(DEVICEATLAS_SRC),)
+OPTIONS_LDFLAGS += -lda
+else
+DEVICEATLAS_INC = $(DEVICEATLAS_SRC)
+DEVICEATLAS_LIB = $(DEVICEATLAS_SRC)
+OPTIONS_LDFLAGS += -lpthread
+OPTIONS_CFLAGS += -I$(DEVICEATLAS_INC)
+ifeq ($(DEVICEATLAS_NOCACHE),)
+CXXFLAGS := $(OPTIONS_CFLAGS) -std=gnu++11
+OPTIONS_OBJS += $(DEVICEATLAS_SRC)/dacache.o
+OPTIONS_LDFLAGS += $(CXXLIB)
+else
+OPTIONS_CFLAGS += -DAPINOCACHE
+endif
+OPTIONS_OBJS += $(DEVICEATLAS_SRC)/dac.o
+OPTIONS_OBJS += $(DEVICEATLAS_SRC)/json.o
+OPTIONS_OBJS += $(DEVICEATLAS_SRC)/dasch.o
+OPTIONS_OBJS += $(DEVICEATLAS_SRC)/dadwarc.o
+OPTIONS_OBJS += $(DEVICEATLAS_SRC)/dadwcom.o
+OPTIONS_OBJS += $(DEVICEATLAS_SRC)/dadwcurl.o
+OPTIONS_OBJS += $(DEVICEATLAS_SRC)/Os/daunix.o
+endif
+
+addons/deviceatlas/dummy/%.o: addons/deviceatlas/dummy/%.cpp
+ $(cmd_CXX) $(CXXFLAGS) -c -o $@ $<