summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '3rdParty/Expat/Makefile.inc')
-rw-r--r--3rdParty/Expat/Makefile.inc21
1 files changed, 21 insertions, 0 deletions
diff --git a/3rdParty/Expat/Makefile.inc b/3rdParty/Expat/Makefile.inc
new file mode 100644
index 0000000..afbebe9
--- /dev/null
+++ b/3rdParty/Expat/Makefile.inc
@@ -0,0 +1,21 @@
+EXPAT_TARGET = 3rdParty/Expat/Expat.a
+
+EXPAT_SOURCES = \
+ 3rdParty/Expat/src/xmltok.c \
+ 3rdParty/Expat/src/xmlparse.c \
+ 3rdParty/Expat/src/xmlrole.c
+
+EXPAT_OBJECTS = \
+ $(EXPAT_SOURCES:.c=.o)
+
+CLEANFILES += \
+ $(EXPAT_OBJECTS) \
+ $(EXPAT_TARGET)
+
+$(EXPAT_TARGET): $(EXPAT_OBJECTS)
+ $(QUIET_AR)$(AR) $(ARFLAGS) $@ $(EXPAT_OBJECTS)
+
+ifeq ($(USE_BUNDLED_EXPAT),yes)
+CPPFLAGS += -isystem 3rdParty/Expat -isystem 3rdParty/Expat/src -DHAVE_EXPAT_CONFIG_H
+BUNDLED_LIBS += $(EXPAT_TARGET)
+endif