From 1adcab7950aff5dee143fc2472935cc985895cff Mon Sep 17 00:00:00 2001 From: Peter Hofmann Date: Sun, 15 Jun 2014 16:22:54 +0200 Subject: Don't fiddle with __NAME__ at runtime --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 465a93c..bdace38 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,13 @@ CFLAGS += -Wall -Wextra -O3 __NAME__ = lariza +__NAME_UPPERCASE__ = `echo $(__NAME__) | sed 's/.*/\U&/'` +__NAME_CAPITALIZED__ = `echo $(__NAME__) | sed 's/^./\U&\E/'` $(__NAME__): browser.c $(CC) $(CFLAGS) $(LDFLAGS) \ -D__NAME__=\"$(__NAME__)\" \ + -D__NAME_UPPERCASE__=\"$(__NAME_UPPERCASE__)\" \ + -D__NAME_CAPITALIZED__=\"$(__NAME_CAPITALIZED__)\" \ -o $@ $< \ `pkg-config --cflags --libs gtk+-2.0 glib-2.0 webkit-1.0` -- cgit v1.2.3