]> mj.ucw.cz Git - leo.git/blob - Makefile
Labelling: Bugfixes in get_closure
[leo.git] / Makefile
1 # Makefile for Hic Est Leo
2
3 all: runtree programs extras configs
4
5 # Include configuration
6 s=.
7 -include obj/config.mk
8 obj/config.mk:
9         @echo "You need to run configure first." && false
10
11 BUILDSYS=$(s)/build
12
13 # We will use the libucw build system
14 include $(BUILDSYS)/Maketop
15
16 PROGS+=$(o)/leo
17 CFLAGS+=$(LIBUCW_CFLAGS)
18 CFLAGS+=-O0
19
20 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 lab-bitmaps lab-utils lab-evolution lab-lines
21 LEO_OBJECTS=$(addprefix $(o)/, $(addsuffix .o, $(LEO_MODULES)))
22 $(o)/leo: $(LEO_OBJECTS)
23
24 $(o)/leo: LIBS+=$(LIBUCW_LIBS) $(LIBUCW_CHARSET_LIBS) $(LIBUCW_XML_LIBS) $(PANGOFT2_LIBS) $(FREETYPE_LIBS) -lproj -lm
25
26 $(o)/sym-text.o: CFLAGS+=$(FREETYPE_CFLAGS) $(PANGOFT2_CFLAGS)
27 $(o)/svg-icon.o: CFLAGS+=$(LIBUCW_XML_CFLAGS)
28 $(o)/xml.o: CFLAGS+=$(LIBUCW_XML_CFLAGS)
29
30 $(LEO_OBJECTS): $(o)/dict-keys.h $(o)/dict-props.h $(o)/dict-values.h
31
32 $(o)/css-parse.c: css-parse.y
33         bison --name-prefix=css_ --token-table --verbose --defines -o $@ $^
34
35 $(o)/dict-%.h: dict-%.t $(BUILDSYS)/gen-dict
36         build/gen-dict <$< >$@
37
38 ifndef CONFIG_LOCAL
39 install: all $(INSTALL_TARGETS)
40 else
41 install:
42         @echo "Nothing to install, this is a local build." && false
43 endif
44 .PHONY: install
45
46 output.svg: $(o)/leo dump.osm poskole.css
47         $(o)/leo
48
49 output.pdf: output.svg
50         inkscape --export-pdf=output.pdf output.svg
51
52 include $(BUILDSYS)/Makebottom