summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/Makefile.mingw59
-rw-r--r--tools/Makefile.win3254
2 files changed, 113 insertions, 0 deletions
diff --git a/tools/Makefile.mingw b/tools/Makefile.mingw
new file mode 100644
index 0000000..8fd66a7
--- /dev/null
+++ b/tools/Makefile.mingw
@@ -0,0 +1,59 @@
+#
+# Ivy, C interface
+#
+# Copyright (C) 1997-2002
+# Centre d'Études de la Navigation Aérienne
+#
+# Makefile
+#
+# Authors: François-Régis Colin <fcolin@cena.fr>
+# Stéphane Chatty <chatty@cena.fr>
+#
+# $Id: Makefile.mingw 3061 2007-02-13 08:35:08Z fourdan $
+#
+# Please refer to file version.h for the
+# copyright notice regarding this software
+#
+
+
+RM=del
+#RM=rm -f
+XTINC =
+XTLIB =
+GTKINC = `gtk-config --cflags`
+GTKLIB = `gtk-config --libs`
+GLUTINC = -I/usr/include -I.
+GLUTLIB = -L.
+TCLINCL = -I/usr/include/tcl8.4
+TCLLIB = -ltcl84
+EXTRALIB= -L../src
+EXTRAINC=-I../src
+
+
+CC=gcc
+CFLAGS = -g
+# IVY full debug
+#CFLAGS = -g -DDEBUG
+TARGETS = ivyprobe
+# not yiet ivygtkprobe ivyxtprobe need Modified Glut ivyglutprobe
+
+.c.o:
+ $(CC) $(CFLAGS) $(EXTRAINC) -c $*.c
+
+all: $(TARGETS)
+
+ivyprobe: ivyprobe.o ../src/libivy.a
+ (CC) $(CFLAGS) $(EXTRAINC) -o $@ ivyprobe.o -L. -livy $(PCRELIB) $(EXTRALIB)
+
+clean:
+ -$(RM) $(TARGETS) *.o *.a *.so *.so.* *~
+
+install: installbins
+
+installbins: commands
+ test -d $(PREFIX)/usr/bin || mkdirhier $(PREFIX)/usr/bin
+ test -d $(PREFIX)/usr/X11R6/bin || mkdirhier $(PREFIX)/usr/X11R6/bin
+ install -m755 ivyprobe $(PREFIX)/usr/bin
+# install -m755 ivyglutprobe $(PREFIX)/usr/X11R6/bin
+
+
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 *~
+