diff options
author | lns <matzeton@googlemail.com> | 2019-12-23 02:38:01 +0100 |
---|---|---|
committer | lns <matzeton@googlemail.com> | 2019-12-23 02:38:01 +0100 |
commit | 2fd32cffc392360e9e9858c8e30e25816bdf78ea (patch) | |
tree | 6d7fad1f7249c528b6b6b1fedab109ad13b3adb8 | |
parent | 012d683d24754996641655d96b6df9b6f58a3e60 (diff) |
added Makefile help and DEBUG mode for CFLAGS
-rw-r--r-- | Makefile | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -1,7 +1,10 @@ CC := gcc INSTALL_DIR := install -d INSTALL_BIN := install -s -CFLAGS := -O2 -g -Wall -ffunction-sections -fdata-sections -ffast-math -fomit-frame-pointer -fexpensive-optimizations -Wl,--gc-sections +CFLAGS := -O2 -Wall -ffunction-sections -fdata-sections -ffast-math -fomit-frame-pointer -fexpensive-optimizations -Wl,--gc-sections +ifneq ($(strip $(DEBUG)),) +CFLAGS += -g +endif LDFLAGS := RM := rm -rf @@ -83,6 +86,13 @@ install: $(TARGETS) $(INSTALL_DIR) -d $(PREFIX)/usr/bin $(INSTALL_BIN) -s $(TARGETS) $(PREFIX)/usr/bin +help: + @echo '======================================' + @echo 'Possible ARGS:' + @echo '--------------' + @echo 'make MAKE_X11=y MAKE_NCURSES=y DEBUG=y' + @echo '======================================' + rebuild: clean all -.PHONY: all clean strip +.PHONY: all clean strip help |