1##############################################################################
2#									     #
3#		   FOX:  A Free C++ Class Library for X 		     #
4#									     #
5##############################################################################
6# Copyright (C) 1997,2002 by Jeroen van der Zijp.   All Rights Reserved      #
7##############################################################################
8# $Id: Makefile.bc,v 1.11 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  = adie.exe
39
40OBJECTS   = \
41	adie.obj \
42	Commands.obj  \
43	HelpWindow.obj \
44	TextWindow.obj \
45	Preferences.obj \
46	help.obj \
47	Hilite.obj \
48	icons.obj \
49        parsesyntax.obj \
50	main.obj
51
52ICONS = \
53        adie_gif.gif \
54        big_gif.gif \
55        bookdel_gif.gif \
56        booknext_gif.gif \
57        bookprev_gif.gif \
58        bookset_gif.gif \
59        close_gif.gif \
60        colors_gif.gif \
61        copy_gif.gif \
62        cut_gif.gif \
63        delete_gif.gif \
64        delimit_gif.gif \
65        fonts_gif.gif \
66        help_gif.gif \
67        indent_gif.gif \
68        info_gif.gif \
69        lang_gif.gif \
70        new_gif.gif \
71        open_gif.gif \
72        palette_gif.gif \
73        paste_gif.gif \
74        pattern_gif.gif \
75        print_gif.gif \
76        quit_gif.gif \
77        redo_gif.gif \
78        reload_gif.gif \
79        saveall_gif.gif \
80        saveas_gif.gif \
81        save_gif.gif \
82        search_gif.gif \
83        searchnext_gif.gif \
84        searchprev_gif.gif \
85        shiftleft_gif.gif \
86        shiftright_gif.gif \
87        small_gif.gif \
88        styles_gif.gif \
89        syntax_gif.gif \
90        undo_gif.gif
91
92.cpp.obj:
93	$(CXX) -c $(INCDIRS) $(CXXFLAGS) $(DEFINES) $*.cpp
94
95all: $(PROGRAMS)
96
97
98adie.exe: $(OBJECTS) $(FOXLIB)
99	$(LD) $(LDFLAGS) $(OBJECTS) $(FOXLIB)
100
101adie.obj: icons.h icons.cpp
102
103icons.h: $(ICONS)
104	$(RESWRAP) -i -o icons.h $**
105
106icons.cpp: $(ICONS)
107	$(RESWRAP) -e -o icons.cpp $**
108
109clean:
110	$(RM) *.obj
111	$(RM) *.exe
112	$(RM) *.tds
113	$(RM) icons.cpp
114	$(RM) icons.h
115