diff options
author | s-over-4 | 2023-09-30 16:59:13 -0400 |
---|---|---|
committer | s-over-4 | 2023-09-30 16:59:13 -0400 |
commit | 2569231ab9876d59a5e14261bae81dca4d24e4e3 (patch) | |
tree | bff30779f3debbc604ec2da3d41f672f531be67e /Makefile | |
parent | f675656431075450714f2a1054ea8db3a2897e26 (diff) |
use flag vars for preprocessor states
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -17,18 +17,18 @@ options: @$(eval $@_ULINE := $(shell echo "$($@_TITLE)" | tr '[:print:]' '=')) @echo "$($@_TITLE)" @echo "$($@_ULINE)" - @echo "cc: $(CC) " - @echo "flags: $(FLAGS) " - @echo " " + @echo "cc: $(CC)" + @echo "flags: $(FLAGS)" + @echo "" devoptions: @$(eval $@_TITLE := "$(NAME) build options \(development\)") @$(eval $@_ULINE := $(shell echo "$($@_TITLE)" | tr '[:print:]' '=')) @echo "$($@_TITLE)" @echo "$($@_ULINE)" - @echo "cc: $(CC) " - @echo "flags: $(DEVFLAGS) " - @echo " " + @echo "cc: $(CC)" + @echo "flags: $(DEVFLAGS)" + @echo "" HALK: $(OBJS) $(CC) $(OBJS) $(FLAGS) -o $(TMPBIN) @@ -49,7 +49,6 @@ clean: %.o: %.c include/%.h $(CC) -c $(FLAGS) $< -o $@ -# fun me: @[ "$(USER)" = "root" ] && echo "Okay." || echo "What? Make it yourself." |