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.3 2005/02/04 04:33:19 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 = shutterbug.exe 39 40OBJECTS = \ 41 ShutterBug.obj \ 42 Snapper.obj \ 43 icons.obj 44 45ICONS = \ 46 line_0.gif \ 47 line_1.gif \ 48 line_2.gif \ 49 line_3.gif \ 50 line_4.gif \ 51 line_5.gif \ 52 line_6.gif \ 53 line_7.gif \ 54 line_8.gif \ 55 shutterbug.gif \ 56 tinyshutterbug.gif 57 58.cpp.obj: 59 $(CXX) -c $(INCDIRS) $(CXXFLAGS) $(DEFINES) $*.cpp 60 61all: $(PROGRAMS) 62 63 64shutterbug.exe: $(OBJECTS) $(FOXLIB) 65 $(LD) $(LDFLAGS) $(OBJECTS) $(FOXLIB) 66 67shutterbug.obj: icons.h icons.cpp 68 69icons.h: $(ICONS) 70 $(RESWRAP) -i -o icons.h $** 71 72icons.cpp: $(ICONS) 73 $(RESWRAP) -e -o icons.cpp $** 74 75clean: 76 $(RM) *.obj 77 $(RM) *.exe 78 $(RM) *.tds 79 $(RM) icons.cpp 80 $(RM) icons.h 81