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.wc,v 1.6 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 OpenWatcom C++ v1.0 or later
26CXX       = wpp386
27CXXFLAGS  = /w3 /zq /5r /ei /fp5 /oneatlx /zp=4
28RM        = del
29TOPDIR    = ..
30DEFINES   = -DNDEBUG -DFOX_BIGENDIAN=0 -DWIN32 -D_WINDOWS
31LD	  = wcl386
32LDFLAGS	  = -l=nt_win
33GLLIBS    = opengl32.lib glu32.lib
34INCDIRS   = -I$(TOPDIR)\include
35FOXLIB    = $(TOPDIR)\src\FOX-1.4.lib $(%WATCOM)\lib386\nt\comctl32.lib
36RESWRAP   = $(TOPDIR)\utils\reswrap.exe
37
38PROGRAMS  = calculator.exe
39
40OBJECTS   =
41OBJECTS  += Calculator.obj
42OBJECTS  += main.obj
43OBJECTS  += icons.obj
44OBJECTS  += HelpWindow.obj
45OBJECTS  += Preferences.obj
46OBJECTS  += help.obj
47
48ICONS     =
49ICONS    += bigcalc.gif
50ICONS    += colors.gif
51ICONS    += constmem.bmp
52ICONS    += information.gif
53ICONS    += question.gif
54ICONS    += tinycalc.gif
55
56.cpp.obj: .AUTODEPEND
57	$(CXX) $(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 $(ICONS)
69
70icons.cpp: $(ICONS)
71	$(RESWRAP) -e -o icons.cpp $(ICONS)
72
73clean: .SYMBOLIC
74	$(RM) *.obj
75	$(RM) *.exe
76	$(RM) *.tds
77	$(RM) icons.cpp
78	$(RM) icons.h
79