summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-12-29 04:53:45 -0500
committermidipix <writeonce@midipix.org>2016-01-01 22:50:23 -0500
commit8b8a8d15174ec92d653cea97ea64dd559a7285e4 (patch)
treec2e9dcda0363df0684b079a5c3cd456d1b9c8d7f
parent383aa6559ee06236b7600df8df17d7f3ab254ca3 (diff)
downloadapimagic-8b8a8d15174ec92d653cea97ea64dd559a7285e4.tar.bz2
apimagic-8b8a8d15174ec92d653cea97ea64dd559a7285e4.tar.xz
project: add libfirm and cparser dependencies.
-rw-r--r--Makefile.in3
-rw-r--r--config.project1
-rw-r--r--project/extras.mk4
3 files changed, 8 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in
index 2d589c6..67152e3 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1,3 +1,6 @@
+LIBCPARSER_A = /usr/local/lib/libcparser.a
+LIBFIRM_A = /usr/local/lib/libfirm.a
+
PACKAGE = @package@
PROJECT_DIR = @project_dir@
diff --git a/config.project b/config.project
index 1190ed1..1601ae5 100644
--- a/config.project
+++ b/config.project
@@ -28,6 +28,7 @@ mb_default_shell=sh
# switches
mb_default_cflags_debug=
mb_default_cflags_common="-std=c99 -D_XOPEN_SOURCE=700 -I\$(PROJECT_DIR)/src/internal -I\$(PROJECT_DIR)/include -Ibuild"
+mb_default_cflags_common="$mb_default_cflags_common -I/usr/local/include/cparser -I/usr/local/include/libfirm"
mb_default_cflags_cmdline=
mb_default_cflags_config=
mb_default_cflags_sysroot=
diff --git a/project/extras.mk b/project/extras.mk
index a6dbc77..e3a8526 100644
--- a/project/extras.mk
+++ b/project/extras.mk
@@ -1,3 +1,7 @@
CFLAGS_SHARED_ATTR += -DAMGC_PRE_ALPHA -DAMGC_BUILD
CFLAGS_STATIC_ATTR += -DAMGC_PRE_ALPHA -DAMGC_STATIC
CFLAGS_APP_ATTR += -DAMGC_APP
+
+LDFLAGS_APP += $(LIBCPARSER_A) $(LIBFIRM_A)
+LDFLAGS_SHARED += -lcparser -lfirm
+LDFLAGS_STATIC += -lcparser -lfirm