Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions preload/posix/Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@

CFLAGS += -std=c99 -Wall -O3
CFLAGS += -std=c99 -pedantic -Wall
ALL_CFLAGS = -D_XOPEN_SOURCE=600 -fPIC -DFIU_ENABLE=1 \
-D_LARGEFILE64_SOURCE=1 -I. -I../../libfiu/ \
$(CFLAGS) $(CPPFLAGS) $(LDFLAGS)

ifdef DEBUG
ALL_CFLAGS += -g
endif
# Optimization CFLAGS, only used when doing a non-debug build.
OPT_CFLAGS = -O3

ifdef PROFILE
ALL_CFLAGS += -g -pg -fprofile-arcs -ftest-coverage
ifdef DEBUG
ALL_CFLAGS += -g
else
ifdef PROFILE
ALL_CFLAGS += -g -pg -fprofile-arcs -ftest-coverage
else
ALL_CFLAGS += $(OPT_CFLAGS)
endif
endif

ifdef POSIX_TRACE
Expand Down
17 changes: 11 additions & 6 deletions preload/run/Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@

CFLAGS += -std=c99 -Wall -O3
CFLAGS += -std=c99 -pedantic -Wall
ALL_CFLAGS = -D_XOPEN_SOURCE=600 -fPIC -DFIU_ENABLE=1 \
-I. -I../../libfiu/ \
$(CFLAGS) $(CPPFLAGS) $(LDFLAGS)

ifdef DEBUG
ALL_CFLAGS += -g
endif
# Optimization CFLAGS, only used when doing a non-debug build.
OPT_CFLAGS = -O3

ifdef PROFILE
ALL_CFLAGS += -g -pg -fprofile-arcs -ftest-coverage
ifdef DEBUG
ALL_CFLAGS += -g
else
ifdef PROFILE
ALL_CFLAGS += -g -pg -fprofile-arcs -ftest-coverage
else
ALL_CFLAGS += $(OPT_CFLAGS)
endif
endif

# prefix for installing the binaries
Expand Down
15 changes: 10 additions & 5 deletions tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@ CFLAGS += -std=c99 -pedantic -Wall
ALL_CFLAGS = -I../libfiu/ -L../libfiu/ \
-D_XOPEN_SOURCE=600 -D_GNU_SOURCE -fPIC -DFIU_ENABLE=1 $(CFLAGS)

ifdef DEBUG
ALL_CFLAGS += -g
endif
# Optimization CFLAGS, only used when doing a non-debug build.
OPT_CFLAGS = -O3

ifdef PROFILE
ALL_CFLAGS += -g -pg -fprofile-arcs -ftest-coverage
ifdef DEBUG
ALL_CFLAGS += -g
else
ifdef PROFILE
ALL_CFLAGS += -g -pg -fprofile-arcs -ftest-coverage
else
ALL_CFLAGS += $(OPT_CFLAGS)
endif
endif

ifneq ($(V), 1)
Expand Down
15 changes: 10 additions & 5 deletions tests/generated/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@ CFLAGS += -std=c99 -pedantic -Wall
ALL_CFLAGS = -I../../libfiu/ -L../../libfiu/ \
-D_XOPEN_SOURCE=600 -D_GNU_SOURCE -fPIC -DFIU_ENABLE=1 $(CFLAGS)

ifdef DEBUG
ALL_CFLAGS += -g
endif
# Optimization CFLAGS, only used when doing a non-debug build.
OPT_CFLAGS = -O3

ifdef PROFILE
ALL_CFLAGS += -g -pg -fprofile-arcs -ftest-coverage
ifdef DEBUG
ALL_CFLAGS += -g
else
ifdef PROFILE
ALL_CFLAGS += -g -pg -fprofile-arcs -ftest-coverage
else
ALL_CFLAGS += $(OPT_CFLAGS)
endif
endif

ifneq ($(V), 1)
Expand Down