]> gitweb.michael.orlitzky.com - libsvgtiny.git/blob - src/Makefile
a97972023257ad80ffe5f1639b616294dac7bcf5
[libsvgtiny.git] / src / Makefile
1 # Sources
2 DIR_SOURCES := svgtiny.c svgtiny_gradient.c svgtiny_list.c
3
4 SOURCES := $(SOURCES) $(BUILDDIR)/src_colors.c
5
6 $(BUILDDIR)/src_colors.c: src/colors.gperf
7 $(VQ)$(ECHO) " GPERF: $<"
8 $(Q)gperf --output-file=$@.tmp $<
9 # Hack for GCC 4.2 compatibility (gperf 3.0.4 solves this properly)
10 $(Q)$(SED) -e 's/#ifdef __GNUC_STDC_INLINE__/#if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__/' $@.tmp >$@
11 $(Q)$(RM) $@.tmp
12
13 include $(NSBUILD)/Makefile.subdir