Lines Matching +full:clean +full:- +full:command

2 # SPDX-License-Identifier: Apache-2.0
18 -include ${NSI_CONFIG_FILE}
35 NSI_ARCH?=-m32
37 NSI_COVERAGE?=--coverage
57 NSI_DEBUG?=-g
59 NSI_OPT?=-O0
61 NSI_WARNINGS?=-Wall -Wpedantic
63 NSI_CPPFLAGS?=-D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED
65 NO_PIE_CO:=-fno-pie -fno-pic
66 DEPENDFLAGS:=-MMD -MP
67 CFLAGS:=${NSI_DEBUG} ${NSI_WARNINGS} ${NSI_OPT} ${NO_PIE_CO} -DNSI_N_CPUS=${NSI_N_CPUS} \
68 -ffunction-sections -fdata-sections ${DEPENDFLAGS} -std=c11 ${NSI_BUILD_OPTIONS}
69 FINALLINK_FLAGS:=${NO_PIE_CO} -no-pie ${NSI_WARNINGS} \
70 -Wl,--gc-sections -ldl -pthread \
71 ${NSI_LINK_OPTIONS} -lm
84 INCLUDES:=-I${NSI_PATH}common/src/include/ \
85 -I${NSI_PATH}common/src \
89 INCLUDES+=-I${NSI_PATH}native/src/include/
97 -include ${DEPENDFILES}
102 @if [ ! -d ${NSI_BUILD_PATH} ]; then mkdir -p ${NSI_BUILD_PATH}; fi
106 @if [ ! -d $(dir $@) ]; then mkdir -p $(dir $@); fi
107 ${NSI_CC} ${NSI_CPPFLAGS} ${INCLUDES} ${CFLAGS} -c $< -o $@
110 @if [ ! -d $(dir $@) ]; then mkdir -p $(dir $@); fi
111 ${NSI_CC} ${NSI_CPPFLAGS} ${INCLUDES} ${CFLAGS} -c $< -o $@
114 ${NSI_CC} -x c -E -P $< -o $@ ${DEPENDFLAGS}
117 if [ -f $@ ]; then rm $@ ; fi
118 ${NSI_AR} -cr $@ ${OBJS}
121 @if [ -z $< ] || [ ! -f $< ]; then \
126 @if [ ! -d $(dir $@) ]; then mkdir -p $(dir $@); fi
127 ${NSI_OBJCOPY} --localize-hidden $< $@ -w --localize-symbol=_* ${NSI_LOCALIZE_OPTIONS}
131 ${NSI_CC} -Wl,--whole-archive ${LOCALIZED_EMBSW} ${NSI_BUILD_PATH}/${RUNNER_LIB} \
132 ${NSI_EXTRA_LIBS} -Wl,--no-whole-archive \
133 -o $@ ${FINALLINK_FLAGS} -T ${NSI_BUILD_PATH}/linker_script.ld
143 clean: target
145 find $(NSI_BUILD_PATH) -name "*.o" -or -name "*.exe" -or -name "*.a" -or -name "*.d" | xargs rm -f
148 find $(NSI_BUILD_PATH) -name "*.gcda" -or -name "*.gcno" | xargs rm -f ; true
150 clean_all: clean clean_coverage ;
152 .PHONY: clean clean_coverage clean_all link_with_esw runner_lib no_default all ${DEPENDFILES}
163 @echo " clean : clean all build output"
164 @echo " clean_coverage : clean all coverage files"
165 @echo " clean_all : clean + clean_coverage"
169 @echo "Note that you can use TAB to autocomplete rules in the command line in modern OSs"