From 7b09f265c1deb12c9e6778c4d92473d66fc5406b Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Wed, 16 Oct 2019 19:34:47 +0300 Subject: [texo] Starting rewriting... --- examples/Makefile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 examples/Makefile (limited to 'examples/Makefile') diff --git a/examples/Makefile b/examples/Makefile new file mode 100644 index 0000000..be725ae --- /dev/null +++ b/examples/Makefile @@ -0,0 +1,29 @@ +# Uncomment following to enable debug mode: +# DEBUG = yes + +CC = g++ +EXAMPLES = plain_to_html + +CPPFLAGS = -Wall -ansi +ifeq '$(DEBUG)' 'yes' +CPPFLAGS += -g -O0 +else +CPPFLAGS += -O3 +endif + +INCLUDE = -I../src +LFLAGS = -L.. -ltexo + +TEXO = ../libtexo.a + + +default: $(EXAMPLES) + +$(TEXO): + cd ..; $(MAKE) + +%: %.cpp $(TEXO) + $(CC) $(CPPFLAGS) $(INCLUDE) $< $(LFLAGS) -o $@ + +clean: + rm -f $(EXAMPLES) -- cgit v1.2.3