]> gitweb.michael.orlitzky.com - libsvgtiny.git/blob - src/Makefile
examples/svgtiny_display_x11.c: include the system copy of svgtiny.h
[libsvgtiny.git] / src / Makefile
1 # Sources
2 DIR_SOURCES := svgtiny.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