]> gitweb.michael.orlitzky.com - libsvgtiny.git/blob - src/Makefile
src/svgtiny_css.c: use our userdata handler in set_libcss_node_data()
[libsvgtiny.git] / src / Makefile
1 # Sources
2 DIR_SOURCES := svgtiny.c svgtiny_css.c svgtiny_gradient.c svgtiny_list.c
3
4 SOURCES := $(SOURCES)
5
6 $(DIR)autogenerated_colors.c: src/colors.gperf
7 $(VQ)$(ECHO) " GPERF: $<"
8 $(Q)gperf --output-file=$@.tmp $<
9 # Squash "error: no previous declaration for 'svgtiny_color_lookup'"
10 $(Q)$(SED) -e 's/^\(const struct svgtiny_named_color\)/static \1/' $@.tmp >$@
11 $(Q)$(RM) $@.tmp
12
13 PRE_TARGETS := $(DIR)autogenerated_colors.c
14
15 CLEAN_ITEMS := $(DIR)autogenerated_colors.c
16
17 include $(NSBUILD)/Makefile.subdir