*** ./makefile_include.mk.ORIG Wed Jul 18 15:16:14 2018 --- ./makefile_include.mk Wed Jul 18 15:17:44 2018 *************** *** 76,82 **** # by giving them as a parameter to make: # make CFLAGS="-I./src/headers/ -DLTC_SOURCE ..." ... # ! LTC_CFLAGS += -I./src/headers/ -Wall -Wsign-compare -Wshadow -DLTC_SOURCE ifdef OLD_GCC LTC_CFLAGS += -W --- 76,82 ---- # by giving them as a parameter to make: # make CFLAGS="-I./src/headers/ -DLTC_SOURCE ..." ... # ! LTC_CFLAGS += -I./src/headers/ -DLTC_SOURCE ifdef OLD_GCC LTC_CFLAGS += -W *************** *** 84,98 **** # define this to help LTC_CFLAGS += -DLTC_NO_ROLC else ! LTC_CFLAGS += -Wextra # additional warnings ! LTC_CFLAGS += -Wsystem-headers -Wbad-function-cast -Wcast-align ! LTC_CFLAGS += -Wstrict-prototypes -Wpointer-arith ! LTC_CFLAGS += -Wdeclaration-after-statement ! LTC_CFLAGS += -Wwrite-strings endif ! LTC_CFLAGS += -Wno-type-limits ifdef LTC_DEBUG $(info Debug build) --- 84,98 ---- # define this to help LTC_CFLAGS += -DLTC_NO_ROLC else ! LTC_CFLAGS += # additional warnings ! LTC_CFLAGS += ! LTC_CFLAGS += ! LTC_CFLAGS += ! LTC_CFLAGS += endif ! LTC_CFLAGS += ifdef LTC_DEBUG $(info Debug build) *************** *** 112,121 **** ifndef IGNORE_SPEED # optimize for SPEED ! LTC_CFLAGS += -O3 -funroll-loops # add -fomit-frame-pointer. hinders debugging! ! LTC_CFLAGS += -fomit-frame-pointer endif endif # COMPILE_SMALL --- 112,121 ---- ifndef IGNORE_SPEED # optimize for SPEED ! LTC_CFLAGS += -O3 # add -fomit-frame-pointer. hinders debugging! ! LTC_CFLAGS += endif endif # COMPILE_SMALL *** ./makefile.ORIG Tue Oct 30 22:19:45 2018 --- ./makefile Tue Oct 30 22:20:07 2018 *************** *** 63,80 **** endif ${silent} $(CC) $(LTC_LDFLAGS) $(TOBJECTS) $(LIB_PRE) $(LIBNAME) $(LIB_POST) $(EXTRALIBS) -o $(TEST) - # build the demos from a template - define DEMO_template - $(1): $(call print-help,$(1),Builds the library and the '$(1)' demo) demos/$(1).o $$(LIBNAME) - ifneq ($V,1) - @echo " * $${CC} $$@" - endif - $${silent} $$(CC) $$(LTC_CFLAGS) $$< $$(LIB_PRE) $$(LIBNAME) $$(LIB_POST) $$(EXTRALIBS) -o $(1) - endef - - $(foreach demo, $(strip $(DEMOS)), $(eval $(call DEMO_template,$(demo)))) - - #This rule installs the library and the header files. This must be run #as root in order to have a high enough permission to write to the correct #directories and to set the owner and group to root. --- 63,68 ----