X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fscheme%2Ftest%2FMakefile;h=8858f0f6e40a1c802f60f118e4d1fa39af9628b5;hb=0d9a3e0378f84ffc8447747150066eae33cd3229;hp=898c75f3a04efa71072dbfed16a5e6704503007d;hpb=5628b983497d9d03e10cccee157419210a49cfa9;p=fw%2Faltos diff --git a/src/scheme/test/Makefile b/src/scheme/test/Makefile index 898c75f3..8858f0f6 100644 --- a/src/scheme/test/Makefile +++ b/src/scheme/test/Makefile @@ -3,24 +3,30 @@ include ../Makefile-inc vpath %.o . vpath %.c .. vpath %.h .. +vpath %.scheme .. +vpath ao_scheme_make_const ../make-const SRCS=$(SCHEME_SRCS) ao_scheme_test.c 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 $(OBJS): $(HDRS) -ao_scheme_const.h: ../make-const/ao_scheme_make_const ../ao_scheme_const.scheme - ../make-const/ao_scheme_make_const -o $@ ../ao_scheme_const.scheme +ao_scheme_const.h: ao_scheme_make_const $(SCHEME_SCHEME) + $^ -o $@ clean:: rm -f $(OBJS) ao-scheme ao_scheme_const.h install: ao-scheme - cp $^ $$HOME/bin + install -t $$HOME/bin $^