summarylogtreecommitdiffstats
path: root/Makefile.patch
blob: 32a905fb0c42f15ae4458d5bcc2896916f23eede (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
diff --git a/Makefile b/Makefile
index 32b9c1d..736e964 100644
--- a/Makefile
+++ b/Makefile
@@ -18,8 +18,11 @@ ifneq ($(OS),Windows_NT)
 endif
 
 all:
+	export LIBRARY_TYPE=relocateable
 	gprbuild $(GPRBUILD_FLAGS) -P gnat/spawn.gpr
 	gprbuild $(GPRBUILD_FLAGS) -P gnat/spawn_tests.gpr
+	gprbuild $(GPRBUILD_FLAGS) -P gnat/spawn_glib.gpr
+	gprbuild $(GPRBUILD_FLAGS) -P gnat/spawn_glib_tests.gpr
 check:
 	export LD_LIBRARY_PATH=.libs/spawn/relocatable; \
 	for TEST in ${SPAWN_TESTS}; do \
@@ -27,7 +30,13 @@ check:
 	done
 
 install:
+	export LIBRARY_TYPE=relocateable
 	gprinstall $(GPRINSTALL_FLAGS) -p -P gnat/spawn.gpr
+
+install-glib:
+	export LIBRARY_TYPE=relocateable
+	gprinstall $(GPRINSTALL_FLAGS) -p -P gnat/spawn_glib.gpr
+
 clean:
 	gprclean -q -P gnat/spawn.gpr