summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPeter Hofmann <scm@uninformativ.de>2014-06-15 09:22:56 +0200
committerPeter Hofmann <scm@uninformativ.de>2014-06-15 09:54:01 +0200
commitf3156e3d82d5a3698fcaa314b0a7492b671bb352 (patch)
treef02bc5d7765c4d8fbc1184c8fa95e9ec8bfa7260 /Makefile
parent51e31c889a2cebea01f36acdc1b6bc9d5809dbfa (diff)
downloadlariza-f3156e3d82d5a3698fcaa314b0a7492b671bb352.tar.gz
Refactoring: Make the application name a simple parameter in Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 2c9a12f..cb3fd29 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,11 @@
CFLAGS += -Wall -Wextra -O3
+__NAME__ = zea
-zea: zea.c
+$(__NAME__): browser.c
$(CC) $(CFLAGS) $(LDFLAGS) \
+ -D__NAME__=\"$(__NAME__)\" \
-o $@ $< \
`pkg-config --cflags --libs gtk+-2.0 glib-2.0 webkit-1.0`
clean:
- rm -f zea
+ rm -f $(__NAME__)