diff --git a/Makefile b/Makefile index 0b86720..822fb52 100644 --- a/Makefile +++ b/Makefile @@ -107,7 +107,7 @@ $(B)/common/options.h: src/common/options.h.in $(B)/common/mtest.o: src/common/mtest.h $(math.OBJS): src/common/mtest.h -$(B)/api/main: $(api.OBJS) +$(B)/api/main.exe: $(api.OBJS) api/main.OBJS:=$(api.OBJS) $(api.OBJS):$(B)/common/options.h $(api.OBJS):CFLAGS+=-pedantic-errors -Werror -Wno-unused -D_XOPEN_SOURCE=700 diff --git a/config.mak.def b/config.mak.def index aa3d1e5..49b49c1 100644 --- a/config.mak.def +++ b/config.mak.def @@ -1,5 +1,6 @@ CFLAGS += -pipe -std=c99 -D_POSIX_C_SOURCE=200809L -Wall -Wno-unused-function -Wno-missing-braces -Wno-unused -Wno-overflow CFLAGS += -Wno-unknown-pragmas -fno-builtin -frounding-math +CFLAGS += -Werror=implicit-function-declaration -Werror=implicit-int -Werror=pointer-sign -Werror=pointer-arith CFLAGS += -g LDFLAGS += -g LDLIBS += -lpthread -lm -lrt diff --git a/src/functional/dlopen.mk b/src/functional/dlopen.mk index a794074..7551578 100644 --- a/src/functional/dlopen.mk +++ b/src/functional/dlopen.mk @@ -1,3 +1,3 @@ -$(N).BINS:=$(B)/$(N) +$(N).BINS:=$(B)/$(N).exe $(N).LDFLAGS:=-rdynamic $(B)/$(N).err: $(B)/$(D)/dlopen_dso.so diff --git a/src/functional/tls_align.mk b/src/functional/tls_align.mk index 654f7c9..a829b84 100644 --- a/src/functional/tls_align.mk +++ b/src/functional/tls_align.mk @@ -1,6 +1,6 @@ $(N).LDLIBS := $(B)/$(D)/tls_align_dso.so $(N)-static.LDLIBS := $(B)/$(D)/tls_align_dso.o -$(B)/$(N): $(B)/$(D)/tls_align_dso.so -$(B)/$(N)-static: $(B)/$(D)/tls_align_dso.o +$(B)/$(N).exe: $(B)/$(D)/tls_align_dso.so +$(B)/$(N)-static.exe: $(B)/$(D)/tls_align_dso.o diff --git a/src/functional/tls_align_dlopen.mk b/src/functional/tls_align_dlopen.mk index b462446..bd5b740 100644 --- a/src/functional/tls_align_dlopen.mk +++ b/src/functional/tls_align_dlopen.mk @@ -1,2 +1,2 @@ -$(N).BINS=$(B)/$(N) +$(N).BINS=$(B)/$(N).exe $(B)/$(N).err: $(B)/$(D)/tls_align_dso.so