diff options
author | Keith Packard <keithp@keithp.com> | 2017-12-19 11:39:39 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2017-12-19 11:39:39 -0800 |
commit | ba472dda57e134fe0f0e4a571a6d0c1e5a1ea6eb (patch) | |
tree | 13d06b1cda9a80de42bcfbb06c5b550987f7b498 /src | |
parent | 53b99e0419cb44c7983e41026bf0430deae58940 (diff) |
altos/scheme: Clean up test CFLAGS
make it easy to switch between debug and optimized builds.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/scheme/test/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/scheme/test/Makefile b/src/scheme/test/Makefile index 898c75f3..ee46118e 100644 --- a/src/scheme/test/Makefile +++ b/src/scheme/test/Makefile @@ -9,7 +9,11 @@ HDRS=$(SCHEME_HDRS) ao_scheme_const.h OBJS=$(SRCS:.c=.o) -CFLAGS=-O3 -g -Wall -Wextra -I. -I.. -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast +#PGFLAGS=-pg -no-pie +OFLAGS=-O3 +#DFLAGS=-O0 + +CFLAGS=$(DFLAGS) $(OFLAGS) $(PGFLAGS) -g -Wall -Wextra -I. -I.. -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast ao-scheme: $(OBJS) cc $(CFLAGS) -o $@ $(OBJS) -lm @@ -23,4 +27,4 @@ clean:: rm -f $(OBJS) ao-scheme ao_scheme_const.h install: ao-scheme - cp $^ $$HOME/bin + install -t $$HOME/bin $^ |