blob: 2adb2a9c5af081b28e39481204266a15940b95a4 (
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
31
32
33
|
diff --git a/Makefile.in b/Makefile.in
index d03c7432..875af20b 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -49,6 +49,14 @@ datadir=@datadir@
datarootdir=@datarootdir@
exampledir=${datadir}/examples/gtkada/testgtk
+ifneq ($(strip $(CFLAGS)),)
+CARGS := -cargs $(CFLAGS)
+endif
+
+ifneq ($(strip $(LDFLAGS)),)
+LARGS := -largs $(LDFLAGS)
+endif
+
all:
ifeq (${BUILD_STATIC_PIC}, yes)
@@ -78,11 +86,11 @@ relocatable: build_library_type/relocatable
tools:
@echo "====== Building tools ====="
- ${GPRBUILD_FULL} -XLIBRARY_TYPE=$(LIBRARY_TYPE_FOR_TOOLS) -Psrc/tools/tools.gpr
+ ${GPRBUILD_FULL} -XLIBRARY_TYPE=$(LIBRARY_TYPE_FOR_TOOLS) -Psrc/tools/tools.gpr $(CARGS) $(LARGS)
build_library_type/%: src/gtkada-intl.adb
@echo "====== Building $(@F) libraries ====="
- ${GPRBUILD_FULL} -XLIBRARY_TYPE=$(@F) -Psrc/gtkada.gpr
+ ${GPRBUILD_FULL} -XLIBRARY_TYPE=$(@F) -Psrc/gtkada.gpr $(CARGS) $(LARGS)
ifeq (${HAVE_OPENGL}, True)
${GPRBUILD_FULL} -XLIBRARY_TYPE=$(@F) -Psrc/opengl/gtkada_gl.gpr
endif
|