diff options
author | mattn <mattn.jp@gmail.com> | 2013-09-12 09:40:57 +0900 |
---|---|---|
committer | mattn <mattn.jp@gmail.com> | 2013-09-12 09:40:57 +0900 |
commit | 1c16dbe6094532d16d1a89c38012aa9118764476 (patch) | |
tree | a219851c466b7a0172e9f6f829f5e546eab08591 /_example/mod_regexp/Makefile | |
parent | Execer/Queryer should use transaction (diff) | |
download | golite-1c16dbe6094532d16d1a89c38012aa9118764476.tar.gz golite-1c16dbe6094532d16d1a89c38012aa9118764476.tar.xz |
rename
Diffstat (limited to '_example/mod_regexp/Makefile')
-rw-r--r-- | _example/mod_regexp/Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/_example/mod_regexp/Makefile b/_example/mod_regexp/Makefile new file mode 100644 index 0000000..97b1e0f --- /dev/null +++ b/_example/mod_regexp/Makefile @@ -0,0 +1,22 @@ +ifeq ($(OS),Windows_NT) +EXE=extension.exe +EXT=sqlite3_mod_regexp.dll +RM=cmd /c del +LDFLAG= +else +EXE=extension +EXT=sqlite3_mod_regexp.so +RM=rm +LDFLAG=-fPIC +endif + +all : $(EXE) $(EXT) + +$(EXE) : extension.go + go build $< + +$(EXT) : sqlite3_mod_regexp.c + gcc $(LDFLAG) -shared -o $@ $< -lsqlite3 -lpcre + +clean : + @-$(RM) $(EXE) $(EXT) |