summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-05-08 10:12:09 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-05-08 10:12:09 +0000
commit36a451d571f6af0b220e7cc43c6eb278fce88135 (patch)
treee0bfa63584a16c2ba58989cdb7aa414338f039cd
parent65ba8bdea7cbe493934ebd9624f3b9af70e40033 (diff)
downloadttf2f-36a451d571f6af0b220e7cc43c6eb278fce88135.tar.gz
ttf2f-36a451d571f6af0b220e7cc43c6eb278fce88135.tar.bz2
Build-time selectable frontend -- defaults to CLI.
svn path=/trunk/tools/ttf2f/; revision=7438
-rw-r--r--Makefile3
-rw-r--r--src/Makefile8
-rw-r--r--src/toolbox.c (renamed from src/main.c)0
3 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 06c9866..cf4a7d8 100644
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,9 @@ COMPONENT_VERSION := 0.0.3
# We produce an application binary
COMPONENT_TYPE := binary
+# Default frontend is cli
+FRONTEND ?= cli
+
# Setup the tooling
include build/makefiles/Makefile.tools
diff --git a/src/Makefile b/src/Makefile
index 0bd3fb2..2a26d4e 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,4 +1,10 @@
# Sources
-DIR_SOURCES := cli.c encoding.c ft.c glyphs.c intmetrics.c outlines.c utils.c
+DIR_SOURCES := encoding.c ft.c glyphs.c intmetrics.c outlines.c utils.c
+
+ifeq ($(FRONTEND),cli)
+DIR_SOURCES := $(DIR_SOURCES) cli.c
+else
+DIR_SOURCES := $(DIR_SOURCES) toolbox.c
+endif
include build/makefiles/Makefile.subdir
diff --git a/src/main.c b/src/toolbox.c
index 5de9982..5de9982 100644
--- a/src/main.c
+++ b/src/toolbox.c