1##############################################################################
2#                                                                            #
3#                       FOX:  A Free C++ Class Library for X                 #
4#                                                                            #
5##############################################################################
6# Copyright (C) 1997,2005 by Jeroen van der Zijp.   All Rights Reserved.     #
7##############################################################################
8# $Id: Makefile.bc,v 1.26 2006/03/10 04:31:45 fox Exp $                      #
9##############################################################################
10# This library is free software; you can redistribute it and/or              #
11# modify it under the terms of the GNU Library General Public                #
12# License as published by the Free Software Foundation; either               #
13# version 2 of the License, or (at your option) any later version.           #
14#                                                                            #
15# This library is distributed in the hope that it will be useful,            #
16# but WITHOUT ANY WARRANTY; without even the implied warranty of             #
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU          #
18# Library General Public License for more details.                           #
19#                                                                            #
20# You should have received a copy of the GNU Library General Public          #
21# License along with this library; if not, write to the Free                 #
22# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.         #
23##############################################################################
24
25# For use with Borland C++ Builder 3 or later
26CXX       = bcc32
27CXXFLAGS  = -5 -O2 -w-par -w-csu -w-aus
28RM        = del
29TOPDIR    = ..
30DEFINES   = -DNDEBUG -DFOX_BIGENDIAN=0 -DWIN32 -D_WINDOWS -DHAVE_GL_H -DHAVE_GLU_H #-DHAVE_PNG_H -DHAVE_JPEG_H -DHAVE_TIFF_H -DXMD_H
31LD	  = bcc32
32LDFLAGS	  = -laa
33GLLIBS    = -lopengl32 -lglu32
34INCDIRS   = -I$(TOPDIR)\include
35FOXLIB    = $(TOPDIR)\src\FOX-1.6.lib
36
37PROGRAMS  = \
38	rex.exe \
39	minheritance.exe \
40	expression.exe \
41	memmap.exe \
42	mditest.exe \
43	table.exe \
44	groupbox.exe \
45	foursplit.exe \
46	datatarget.exe \
47	scribble.exe \
48	splitter.exe \
49	shutter.exe \
50	image.exe \
51	header.exe \
52	hello.exe \
53	hello2.exe \
54	switcher.exe \
55	iconlist.exe \
56	tabbook.exe \
57	dialog.exe \
58	dirlist.exe \
59	button.exe \
60	dctest.exe \
61	glviewer.exe \
62	gltest.exe \
63	wizard.exe \
64	imageviewer.exe
65
66.cpp.obj:
67	$(CXX) -c $(INCDIRS) $(CXXFLAGS) $(DEFINES) $*.cpp
68
69all: $(PROGRAMS)
70
71rex.exe: $(FOXLIB) rex.obj
72	$(LD) $(LDFLAGS) rex.obj $(FOXLIB)
73
74minheritance.exe: $(FOXLIB) minheritance.obj
75	$(LD) $(LDFLAGS) minheritance.obj $(FOXLIB)
76
77expression.exe: $(FOXLIB) expression.obj
78	$(LD) $(LDFLAGS) expression.obj $(FOXLIB)
79
80memmap.exe: $(FOXLIB) memmap.obj
81	$(LD) $(LDFLAGS) memmap.obj $(FOXLIB)
82
83wizard.exe: $(FOXLIB) wizard.obj
84	$(LD) $(LDFLAGS) wizard.obj $(FOXLIB)
85
86foursplit.exe: $(FOXLIB) foursplit.obj
87	$(LD) $(LDFLAGS) foursplit.obj $(FOXLIB)
88
89tabbook.exe: $(FOXLIB) tabbook.obj
90	$(LD) $(LDFLAGS) tabbook.obj $(FOXLIB)
91
92table.exe: $(FOXLIB) table.obj
93	$(LD) $(LDFLAGS) table.obj $(FOXLIB)
94
95switcher.exe: $(FOXLIB) switcher.obj
96	$(LD) $(LDFLAGS) switcher.obj $(FOXLIB)
97
98button.exe: $(FOXLIB) button.obj
99	$(LD) $(LDFLAGS) button.obj $(FOXLIB)
100
101mditest.exe: $(FOXLIB) mditest.obj
102	$(LD) $(LDFLAGS) mditest.obj $(FOXLIB)
103
104datatarget.exe: $(FOXLIB) datatarget.obj
105	$(LD) $(LDFLAGS) datatarget.obj $(FOXLIB)
106
107imageviewer.exe: $(FOXLIB) imageviewer.obj
108	$(LD) $(LDFLAGS) imageviewer.obj $(FOXLIB) #libpng.lib zlib.lib libjpeg.lib libtiff.lib
109
110hello.exe: $(FOXLIB) hello.obj
111	$(LD) $(LDFLAGS) hello.obj $(FOXLIB)
112
113hello2.exe: $(FOXLIB) hello2.obj
114	$(LD) $(LDFLAGS) hello2.obj $(FOXLIB)
115
116dirlist.exe: $(FOXLIB) dirlist.obj
117	$(LD) $(LDFLAGS) dirlist.obj $(FOXLIB)
118
119groupbox.exe: $(FOXLIB) groupbox.obj
120	$(LD) $(LDFLAGS) groupbox.obj $(FOXLIB)
121
122scribble.exe: $(FOXLIB) scribble.obj
123	$(LD) $(LDFLAGS) scribble.obj $(FOXLIB)
124
125splitter.exe: $(FOXLIB) splitter.obj
126	$(LD) $(LDFLAGS) splitter.obj $(FOXLIB)
127
128iconlist.exe: $(FOXLIB) iconlist.obj
129	$(LD) $(LDFLAGS) iconlist.obj $(FOXLIB)
130
131header.exe: $(FOXLIB) header.obj
132	$(LD) $(LDFLAGS) header.obj $(FOXLIB)
133
134shutter.exe: $(FOXLIB) shutter.obj
135	$(LD) $(LDFLAGS) shutter.obj $(FOXLIB)
136
137image.exe: $(FOXLIB) image.obj
138	$(LD) $(LDFLAGS) image.obj $(FOXLIB)
139
140gltest.exe: $(FOXLIB) gltest.obj
141	$(LD) $(LDFLAGS) gltest.obj $(FOXLIB) $(GLLIBS)
142
143glviewer.exe: $(FOXLIB) glviewer.obj
144	$(LD) $(LDFLAGS) glviewer.obj $(FOXLIB) $(GLLIBS)
145
146dialog.exe: $(FOXLIB) dialog.obj
147	$(LD) $(LDFLAGS) dialog.obj $(FOXLIB)
148
149dctest.exe: $(FOXLIB) dctest.obj
150	$(LD) $(LDFLAGS) dctest.obj $(FOXLIB)
151
152clean:
153	del *.obj
154	del *.exe
155	del *.tds
156