diff --git a/example/Makefile b/example/Makefile index b238200..db73873 100644 --- a/example/Makefile +++ b/example/Makefile @@ -24,7 +24,7 @@ ifeq (,$(filter _out_%,$(notdir $(CURDIR)))) else #----- End Boilerplate -VPATH = $(SRCDIR) +VPATH = $(SRCDIR) CARGO ?= cargo STRIP ?= strip @@ -94,6 +94,7 @@ ifeq ($(LTO), 1) CFLAGS += -flto endif + # TODO: wildcard does not work with VPATH _c_src := src/announce.c src/brightness_tester.c src/header_logger.c \ src/moving_line.c src/random_stuff.c src/wiping_clear.c @@ -120,5 +121,16 @@ build-rust: FORCE FORCE: ; +help: + @echo "You have the choice of the following parameters:" + @echo "" + @echo "Variable | Description | Default | Values" + @echo "---------+-----------------------------------+-----------+---------------------------" + @echo "CARGO | which cargo binary to use | 'cargo' | 'rustup run nightly cargo'" + @echo "CC | which C compiler to use | 'gcc' | 'musl-gcc'" + @echo "STRIP | which strip command to use | 'strip' | -" + @echo "MUSL | if set, use musl instead of glibc | unset | '1'" + @echo "PROFILE | Compilation profile | 'release' | 'debug' or 'size-optimized'" + #----- Begin Boilerplate endif \ No newline at end of file diff --git a/example/target.mk b/example/target.mk index 12d98b1..bdf84e0 100644 --- a/example/target.mk +++ b/example/target.mk @@ -33,20 +33,6 @@ Makefile : ; # and the source directory containing only source files, `clean' is as trivial # as removing the target directories! # -.PHONY: clean clean-all +.PHONY: clean clean: rm -rf $(OBJDIR) -clean-all: - rm -rf _out_* - -help: - @echo "You have the choice of the following parameters:" - @echo "" - @echo "Variable | Description | Default | Values" - @echo "---------+----------------------+-----------+---------------------------" - @echo "LIBC | libc to link against | 'gnu' | 'gnu' or 'musl'" - @echo "PROFILE | Optimization profile | 'release' | 'debug' or 'size-optimized'" - @echo "LINK | | 'dynamic' | 'dynamic' or 'static'" - @echo "CARGO | cargo binary to use | 'cargo' | 'rustup run nightly cargo'" - @echo "CC | C compiler to use | 'gcc' | 'musl-gcc'" - @echo "STRIP | strip command to use | 'strip' | -"