From f0867e00ec84faa4cdb6167652393dc1c7d59788 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Wed, 29 Jul 2009 13:40:48 +0000 Subject: [PATCH] Compile with the -O2 and -pedantic flags --- src/Makefile | 2 +- src/project.conf | 2 +- src/target/Makefile | 2 +- src/target/project.conf | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Makefile b/src/Makefile index a3844f7..1946f6a 100644 --- a/src/Makefile +++ b/src/Makefile @@ -7,7 +7,7 @@ CC = cc CPPFLAGSF= CPPFLAGS= -I ../include CFLAGSF = -W -CFLAGS = -Wall -ansi -g +CFLAGS = -Wall -g -O2 -pedantic LDFLAGSF= -L $(PREFIX)/lib -Wl,-rpath $(PREFIX)/lib -l cpp RM = rm -f LN = ln -f diff --git a/src/project.conf b/src/project.conf index 3218c6f..de19291 100644 --- a/src/project.conf +++ b/src/project.conf @@ -2,7 +2,7 @@ subdirs=sets,target targets=c99 cppflags=-I ../include cflags_force=-W -cflags=-Wall -ansi -g +cflags=-Wall -g -O2 -pedantic ldflags_force=-L $(PREFIX)/lib -Wl,-rpath $(PREFIX)/lib -l cpp dist=Makefile,code.h,common.h,parser.h,scanner.h,tokenset.h diff --git a/src/target/Makefile b/src/target/Makefile index 9df03ef..42334d8 100644 --- a/src/target/Makefile +++ b/src/target/Makefile @@ -6,7 +6,7 @@ CC = cc CPPFLAGSF= CPPFLAGS= -I ../../include CFLAGSF = -W -CFLAGS = -Wall -g -fPIC +CFLAGS = -Wall -g -O2 -fPIC -pedantic AR = ar -rc RANLIB = ranlib LD = $(CC) -shared diff --git a/src/target/project.conf b/src/target/project.conf index ef3fb88..4c112b8 100644 --- a/src/target/project.conf +++ b/src/target/project.conf @@ -1,6 +1,6 @@ cppflags=-I ../../include cflags_force=-W -cflags=-Wall -g -fPIC +cflags=-Wall -g -O2 -fPIC -pedantic targets=as,graph dist=Makefile