1 # Makefile for Hic Est Leo
3 all: runtree programs extras configs
5 # Include configuration
9 @echo "You need to run configure first." && false
13 # We will use the libucw build system
14 include $(BUILDSYS)/Maketop
17 CFLAGS+=$(LIBUCW_CFLAGS)
19 LEO_MODULES=leo xml osm svg svg-icon css-parse css-lex style css dict sym sym-point sym-line sym-text map shp fixed labeller
20 LEO_OBJECTS=$(addprefix $(o)/, $(addsuffix .o, $(LEO_MODULES)))
21 $(o)/leo: $(LEO_OBJECTS)
23 $(o)/leo: LIBS+=$(LIBUCW_LIBS) $(LIBUCW_CHARSET_LIBS) $(LIBUCW_XML_LIBS) $(PANGOFT2_LIBS) $(FREETYPE_LIBS) -lproj -lm
25 $(o)/sym-text.o: CFLAGS+=$(FREETYPE_CFLAGS) $(PANGOFT2_CFLAGS)
26 $(o)/svg-icon.o: CFLAGS+=$(LIBUCW_XML_CFLAGS)
27 $(o)/xml.o: CFLAGS+=$(LIBUCW_XML_CFLAGS)
29 $(LEO_OBJECTS): $(o)/dict-keys.h $(o)/dict-props.h $(o)/dict-values.h
31 $(o)/css-parse.c: css-parse.y
32 bison --name-prefix=css_ --token-table --verbose --defines -o $@ $^
34 $(o)/dict-%.h: dict-%.t $(BUILDSYS)/gen-dict
35 build/gen-dict <$< >$@
38 install: all $(INSTALL_TARGETS)
41 @echo "Nothing to install, this is a local build." && false
45 output.svg: $(o)/leo dump.osm poskole.css
48 output.pdf: output.svg
49 inkscape --export-pdf=output.pdf output.svg
51 include $(BUILDSYS)/Makebottom