summaryrefslogtreecommitdiff
path: root/tools/Makefile.win32
diff options
context:
space:
mode:
authorbustico2008-03-26 13:20:56 +0000
committerbustico2008-03-26 13:20:56 +0000
commitb254df74ef77729d33f82a5bdae24847dccf238e (patch)
tree7757a901df6e1492a2d145f030647231cd8c8da9 /tools/Makefile.win32
parent6b7d6cb40d317bee3cc174f22547065d29e8c737 (diff)
downloadivy-c-b254df74ef77729d33f82a5bdae24847dccf238e.zip
ivy-c-b254df74ef77729d33f82a5bdae24847dccf238e.tar.gz
ivy-c-b254df74ef77729d33f82a5bdae24847dccf238e.tar.bz2
ivy-c-b254df74ef77729d33f82a5bdae24847dccf238e.tar.xz
Diffstat (limited to 'tools/Makefile.win32')
-rw-r--r--tools/Makefile.win3254
1 files changed, 54 insertions, 0 deletions
diff --git a/tools/Makefile.win32 b/tools/Makefile.win32
new file mode 100644
index 0000000..d1df4f7
--- /dev/null
+++ b/tools/Makefile.win32
@@ -0,0 +1,54 @@
+PCREINC = -I "C:\Documents and Settings\fcolin\My Documents\Visual Studio 2005\Projects\pcre-6.4\\"
+PCRELIB = Debug\pcre.lib
+EXTRALIB= -L../src
+EXTRAINC=-I../src
+
+#PCREINC = -I "C:\Program Files\GnuWin32\include" #`pcre-config --cflags`
+#PCRELIB = "C:\Program Files\GnuWin32\lib\libpcre.lib" #`pcre-config --libs`
+
+PCRE_OPT = PCRE_CASELESS
+REGCOMP_OPT = REG_ICASE
+
+# PCRE_OPT = 0
+# REGCOMP_OPT = REG_EXTENDED
+
+
+#PCREOBJ = `pcre-config --prefix`/lib/libpcre.a
+PCREOBJ =
+
+#CC=gcc
+#CFLAGS = -g -Wall
+CFLAGS = /W3 /DWIN32 /D_CRT_SECURE_NO_DEPRECATE /nologo
+#LIBTOOL=ar q # linux and solaris
+#LIBTOOL=libtool -static -o
+LIBTOOL=lib /nologo /out:
+
+#REGEXP = -DGNU_REGEXP -DREGCOMP_OPT=$(REGCOMP_OPT) # deprecated !
+REGEXP= /DUSE_PCRE_REGEX /DPCRE_OPT=$(PCRE_OPT)
+# on activeTCL , set #define CHANNEL to null, and add ivyloop.obj in the ivytcl target,
+# see below
+CHANNEL = -DTCL_CHANNEL_INTEGRATION
+
+# WINDOWS add ivyloop.obj if TCL_CHANNEL_INTEGRATION is not set
+TARGETS = ivyprobe.exe ivyperf.exe
+
+.c.obj:
+ $(CC) $(CFLAGS) /c $*.c
+
+all: commands
+
+commands: $(TARGETS)
+
+ivyprobe.exe: ivyprobe.obj libivy.lib
+ $(CC) $(CFLAGS) $(EXTRAINC) /Fe$@ ivyprobe.obj libivy.lib wsock32.lib $(PCRELIB) $(EXTRALIB)
+
+ivyprobe.obj : ivyprobe.c
+ $(CC) $(CFLAGS) $(REGEXP) $(PCREINC) $(EXTRAINC) /c ivyprobe.c
+
+ivyperf.exe: ivyperf.obj libivy.lib
+ $(CC) $(CFLAGS) /Fe$@ ivyperf.obj libivy.lib wsock32.lib $(PCRELIB) $(EXTRALIB)
+
+
+clean:
+ -del /f $(TARGETS) *.obj *.lib *.dll *~
+