1##############################################################################
2#                                                                            #
3#                  FOX:  A Free C++ Class Library for X                      #
4#                                                                            #
5##############################################################################
6# Copyright (C) 1997,2003 by Jeroen van der Zijp.   All Rights Reserved.     #
7##############################################################################
8# $Id: Makefile.bc,v 1.9 2005/02/04 04:33:18 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
31LD	  = bcc32
32LDFLAGS	  = -laa
33GLLIBS    = opengl32.lib glu32.lib
34INCDIRS   = -I$(TOPDIR)\include
35FOXLIB    = $(TOPDIR)\src\FOX-1.4.lib
36RESWRAP   = $(TOPDIR)\utils\reswrap.exe
37
38PROGRAMS  = calculator.exe
39
40OBJECTS   = \
41        Calculator.obj \
42        main.obj \
43        icons.obj \
44        HelpWindow.obj \
45        Preferences.obj \
46        help.obj
47
48ICONS = \
49        bigcalc.gif \
50        colors.gif \
51        constmem.bmp \
52        information.gif \
53        question.gif \
54        tinycalc.gif
55
56.cpp.obj:
57	$(CXX) -c $(INCDIRS) $(CXXFLAGS) $(DEFINES) $*.cpp
58
59all: $(PROGRAMS)
60
61
62Calculator.exe: $(OBJECTS) $(FOXLIB)
63	$(LD) $(LDFLAGS) $(OBJECTS) $(FOXLIB)
64
65Calculator.obj: icons.h icons.cpp
66
67icons.h: $(ICONS)
68	$(RESWRAP) -i -o icons.h $**
69
70icons.cpp: $(ICONS)
71	$(RESWRAP) -e -o icons.cpp $**
72
73clean:
74	$(RM) *.obj
75	$(RM) *.exe
76	$(RM) *.tds
77	$(RM) icons.cpp
78	$(RM) icons.h
79