File: Makefile.bc

package info (click to toggle)
fox1.6 1.6.57-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, forky, sid, trixie
  • size: 17,592 kB
  • sloc: cpp: 148,083; sh: 4,294; ansic: 2,345; makefile: 1,422; perl: 119
file content (90 lines) | stat: -rw-r--r-- 2,936 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
##############################################################################
#                                                                            #
#                  FOX:  A Free C++ Class Library for X                      #
#                                                                            #
##############################################################################
# Copyright (C) 2004 by Jeroen van der Zijp.   All Rights Reserved.          #
##############################################################################
# $Id: Makefile.bc,v 1.5 2005/09/22 11:14:47 fox Exp $                       #
##############################################################################
# This library is free software; you can redistribute it and/or              #
# modify it under the terms of the GNU Library General Public                #
# License as published by the Free Software Foundation; either               #
# version 2 of the License, or (at your option) any later version.           #
#                                                                            #
# This library is distributed in the hope that it will be useful,            #
# but WITHOUT ANY WARRANTY; without even the implied warranty of             #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU          #
# Library General Public License for more details.                           #
#                                                                            #
# You should have received a copy of the GNU Library General Public          #
# License along with this library; if not, write to the Free                 #
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.         #
##############################################################################

# For use with Borland C++ Builder 3 or later
CXX       = bcc32
CXXFLAGS  = -5 -O2 -w-par -w-csu -w-aus
RM        = del
LIB	  = tlib
TOPDIR    = ..
DEFINES   = -DNDEBUG -DFOX_BIGENDIAN=0 -DWIN32 -D_WINDOWS
LD        = bcc32
LDFLAGS   = -laa
GLLIBS    = opengl32.lib glu32.lib
INCDIRS   = -I$(TOPDIR)\include
FOXLIB    = $(TOPDIR)\src\FOX-1.6.lib
CHARTLIB  = $(TOPDIR)\src\CHART-1.6.lib
RESWRAP   = $(TOPDIR)\utils\reswrap.exe


.SUFFIXES: .cpp .c

PROGRAMS  = chart.exe

SOURCES = \
chart.cpp \
FXChart.cpp \
icons.cpp

OBJECTS = $(SOURCES:.cpp=.obj)

ICONS = \
marble.bmp

.cpp.obj:
	$(CXX) -c $(INCDIRS) $(CXXFLAGS) $(DEFINES) $*.cpp


all: $(CHARTLIB) $(PROGRAMS)


chart.exe: $(OBJECTS) $(FOXLIB)
	$(LD) $(LDFLAGS) $(OBJECTS) $(FOXLIB)


chart.obj: icons.h icons.cpp


icons.h: $(ICONS)
	$(RESWRAP) -i -o icons.h $**


icons.cpp: $(ICONS)
	$(RESWRAP) -e -o icons.cpp $**


clean:
	$(RM) $(CHARTLIB)
	$(RM) *.obj
	$(RM) *.exe
	$(RM) *.tds
	$(RM) icons.cpp
	$(RM) icons.h


# Make the library
$(CHARTLIB): $(OBJECTS) Makefile.bc.resp
	touch $(CHARTLIB)
	del $(CHARTLIB)
	$(LIB) "$(CHARTLIB)" /P256 @Makefile.bc.resp