summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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