Browse code

ruxc: Makefile - set local paths for include and libs

Daniel-Constantin Mierla authored on 06/08/2021 06:26:29
Showing 1 changed files
... ...
@@ -18,8 +18,8 @@ endif
18 18
 endif
19 19
 
20 20
 ifeq ($(BUILDER),)
21
-	DEFS+= -I.
22
-	LIBS = -L. -lruxc
21
+	DEFS+= -I. -I$(LOCALBASE)/include -I$(SYSBASE)/include
22
+	LIBS = -L. -L$(LOCALBASE)/lib -lruxc
23 23
 else
24 24
 	DEFS+= $(shell pkg-config --cflags libruxc)
25 25
 	LIBS = $(shell pkg-config --libs libruxc)
Browse code

ruxc: new module with utility functions from libruxc

- first target is to provide http get/post functions that do not depend
on libcurl+libssl

Daniel-Constantin Mierla authored on 19/07/2021 06:32:48
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,32 @@
1
+#
2
+# secsipid module makefile
3
+#
4
+# WARNING: do not run this directly, it should be run by the main Makefile
5
+
6
+include ../../Makefile.defs
7
+auto_gen=
8
+NAME=ruxc.so
9
+
10
+ifeq ($(CROSS_COMPILE),)
11
+	BUILDER = $(shell which pkg-config)
12
+ifneq ($(BUILDER),)
13
+	PKGLIBRUXC = $(shell $(BUILDER) --exists libruxc > /dev/null 2>&1 ; echo $$? )
14
+ifneq ($(PKGLIBRUXC),0)
15
+	BUILDER =
16
+endif
17
+endif
18
+endif
19
+
20
+ifeq ($(BUILDER),)
21
+	DEFS+= -I.
22
+	LIBS = -L. -lruxc
23
+else
24
+	DEFS+= $(shell pkg-config --cflags libruxc)
25
+	LIBS = $(shell pkg-config --libs libruxc)
26
+endif
27
+
28
+ifeq ($(OS), darwin)
29
+LIBS+= -framework CoreFoundation -framework Security
30
+endif
31
+
32
+include ../../Makefile.modules