summaryrefslogtreecommitdiff
path: root/tools/Makefile.mingw
blob: 8fd66a7deeebf9d84911a166838875b1c5a8c2ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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