-Wmissing-prototypes -Wmissing-declarations \
-Wnested-externs -Winline -Wno-cast-align
ARFLAGS = cr
+INSTALL = install
ifeq ($(TARGET),riscos)
GCCSDK_INSTALL_CROSSBIN ?= /home/riscos/cross/bin
-I$(GCCSDK_INSTALL_ENV)/include/libxml2
LIBS = -L$(GCCSDK_INSTALL_ENV)/lib -lxml2 -lz
EXEEXT = ,ff8
+PREFIX = $(GCCSDK_INSTALL_ENV)
else
CFLAGS += -g `xml2-config --cflags` -fgnu89-inline
LIBS = `xml2-config --libs`
+PREFIX = /usr/local
endif
ifeq ($(TARGET),)
@echo " GPERF:" $<
@gperf --output-file=$@ $<
+install: $(LIBDIR)/libsvgtiny.a
+ $(INSTALL) -t $(PREFIX)/lib $(LIBDIR)/libsvgtiny.a
+ $(INSTALL) -t $(PREFIX)/include $(HDRS)
+
clean:
-rm $(OBJS) $(LIBDIR)/libsvgtiny.a $(BINDIR)/svgtiny_test$(EXEEXT) colors.c