From 0520a4aa48e03bc0a9740d0ff0ff0847029b1dc5 Mon Sep 17 00:00:00 2001
From: George Sedov <george.sedov@desy.de>
Date: Wed, 13 Oct 2021 17:26:42 +0200
Subject: [PATCH] Add missing Makefiles

---
 docs/site/examples/c/Makefile                 | 29 +++++++++++++++++++
 docs/site/versioned_examples/.gitignore       |  1 +
 .../version-21.06.0/c/Makefile                | 29 +++++++++++++++++++
 3 files changed, 59 insertions(+)
 create mode 100644 docs/site/examples/c/Makefile
 create mode 100644 docs/site/versioned_examples/.gitignore
 create mode 100644 docs/site/versioned_examples/version-21.06.0/c/Makefile

diff --git a/docs/site/examples/c/Makefile b/docs/site/examples/c/Makefile
new file mode 100644
index 000000000..ba3d4a872
--- /dev/null
+++ b/docs/site/examples/c/Makefile
@@ -0,0 +1,29 @@
+PROGRAM=asapo-consume
+
+LDFLAGS = "-Wl,-rpath,/opt/asapo/lib"
+CFLAGS += `PKG_CONFIG_PATH=/opt/asapo/lib/pkgconfig pkg-config --cflags libasapo-consumer`
+LIBS = `PKG_CONFIG_PATH=/opt/asapo/lib/pkgconfig pkg-config --libs libasapo-consumer`
+
+# for default installation
+#LDFLAGS =
+#CFLAGS += `pkg-config --cflags libasapo-consumer`
+#LIBS = `pkg-config --libs libasapo-consumer`
+
+RM=rm -f
+
+SRCS=consume.c
+OBJS=$(subst .c,.o,$(SRCS))
+
+all: $(PROGRAM)
+
+$(PROGRAM): $(OBJS)
+	$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
+
+%.o: %.cpp
+	$(CC) $(CFLAGS) $(INCLUDE) -c -o $@ $<
+
+clean:
+	$(RM) $(OBJS)
+
+distclean: clean
+	$(RM) $(PROGRAM)
diff --git a/docs/site/versioned_examples/.gitignore b/docs/site/versioned_examples/.gitignore
new file mode 100644
index 000000000..24600083d
--- /dev/null
+++ b/docs/site/versioned_examples/.gitignore
@@ -0,0 +1 @@
+!Makefile
diff --git a/docs/site/versioned_examples/version-21.06.0/c/Makefile b/docs/site/versioned_examples/version-21.06.0/c/Makefile
new file mode 100644
index 000000000..ba3d4a872
--- /dev/null
+++ b/docs/site/versioned_examples/version-21.06.0/c/Makefile
@@ -0,0 +1,29 @@
+PROGRAM=asapo-consume
+
+LDFLAGS = "-Wl,-rpath,/opt/asapo/lib"
+CFLAGS += `PKG_CONFIG_PATH=/opt/asapo/lib/pkgconfig pkg-config --cflags libasapo-consumer`
+LIBS = `PKG_CONFIG_PATH=/opt/asapo/lib/pkgconfig pkg-config --libs libasapo-consumer`
+
+# for default installation
+#LDFLAGS =
+#CFLAGS += `pkg-config --cflags libasapo-consumer`
+#LIBS = `pkg-config --libs libasapo-consumer`
+
+RM=rm -f
+
+SRCS=consume.c
+OBJS=$(subst .c,.o,$(SRCS))
+
+all: $(PROGRAM)
+
+$(PROGRAM): $(OBJS)
+	$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
+
+%.o: %.cpp
+	$(CC) $(CFLAGS) $(INCLUDE) -c -o $@ $<
+
+clean:
+	$(RM) $(OBJS)
+
+distclean: clean
+	$(RM) $(PROGRAM)
-- 
GitLab