From e64bdd67453b07419291036fd1874556e5b7ebef Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Mon, 12 Nov 2007 19:47:53 +0000 Subject: [PATCH] link with libfirm [r18370] --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1e85905..fa1af5d 100644 --- a/Makefile +++ b/Makefile @@ -1,19 +1,25 @@ GOAL = cparser +FIRM_HOME = $(HOME)/projects/firm +FIRM_BUILD = $(FIRM_HOME)/build/i686-pc-linux-gnu/debug/ +FIRM_CFLAGS = -I$(FIRM_HOME)/libfirm/include -I$(FIRM_HOME)/obstack -I$(FIRM_HOME)/libcore -I$(FIRM_HOME)/libcore/libcore -I$(FIRM_HOME) +FIRM_LIBS = -L$(FIRM_BUILD) -lfirm -llpp -lcore -lm -ldl + CFLAGS += -Wall -W -Werror -std=c99 -pedantic CFLAGS += -DHAVE_CONFIG_H CFLAGS += -I . CFLAGS += -O0 -g3 +CFLAGS += $(FIRM_CFLAGS) #CFLAGS += -O3 -march=pentium4 -fomit-frame-pointer -DNDEBUG -LFLAGS = +LFLAGS = $(FIRM_LIBS) SOURCES := \ - adt/array.c \ adt/hashset.c \ adt/strset.c \ adt/xmalloc.c \ ast.c \ + ast2firm.c \ lexer.c \ main.c \ parser.c \ -- 2.20.1