]> gitweb.michael.orlitzky.com - libsvgtiny.git/blob - src/Makefile
gperf -> .c rule. This isn't in the core buildsystem as nothing else requires this...
[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=$@ $<
9 # Hack for GCC 4.2 compatibility (gperf 3.0.4 solves this properly)
10 $(Q)$(SED) -i -e 's/#ifdef __GNUC_STDC_INLINE__/#if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__/' $@
11
12 include build/makefiles/Makefile.subdir