summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/util/pcre/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/util/pcre/Makefile')
-rw-r--r--crawl-ref/source/util/pcre/Makefile47
1 files changed, 47 insertions, 0 deletions
diff --git a/crawl-ref/source/util/pcre/Makefile b/crawl-ref/source/util/pcre/Makefile
new file mode 100644
index 0000000000..dfc3ff341c
--- /dev/null
+++ b/crawl-ref/source/util/pcre/Makefile
@@ -0,0 +1,47 @@
+# -*- Makefile -*- for PCRE (Win32, MinGW)
+
+OBJECTS := \
+ pcre_chartables.o \
+ pcre_compile.o \
+ pcre_config.o \
+ pcre_dfa_exec.o \
+ pcre_exec.o \
+ pcre_fullinfo.o \
+ pcre_get.o \
+ pcre_globals.o \
+ pcre_info.o \
+ pcre_maketables.o \
+ pcre_newline.o \
+ pcre_ord2utf8.o \
+ pcre_refcount.o \
+ pcre_study.o \
+ pcre_tables.o \
+ pcre_try_flipped.o \
+ pcre_ucp_searchfuncs.o \
+ pcre_valid_utf8.o \
+ pcre_version.o \
+ pcre_xclass.o
+
+CXX ?= g++
+AR := ar rcu
+RANLIB := ranlib
+DEL := del
+
+CFLAGS := -I. -DHAVE_CONFIG_H
+LDFLAGS :=
+
+LIBNAME := libpcre.a
+
+all: $(LIBNAME)
+
+clean:
+ $(DEL) $(LIBNAME)
+ $(DEL) $(OBJECTS)
+
+$(LIBNAME) : $(OBJECTS)
+ $(AR) $@ $?
+ $(RANLIB) $@
+
+%.o: %.c
+ $(CXX) $(CFLAGS) -o $@ -c $<
+