~ubuntu-branches/ubuntu/intrepid/plplot/intrepid

« back to all changes in this revision

Viewing changes to sys/win32/msdev/makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Rafael Laboissiere
  • Date: 2006-11-04 10:19:34 UTC
  • mfrom: (2.1.8 edgy)
  • Revision ID: james.westby@ubuntu.com-20061104101934-mlirvdg4gpwi6i5q
Tags: 5.6.1-10
* Orphaning the package
* debian/control: Changed the maintainer to the Debian QA Group

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# PLplot:
 
2
# This makefile takes care of the overall building process.
 
3
# It has the following targets:
 
4
# - default:
 
5
#      The default make step (links, common, libs)
 
6
# - prepare:
 
7
#      The default make step without the actual build, useful
 
8
#      when you want to adjust the set of drivers manually
 
9
# - links:
 
10
#      Copies all the source files to the $(PLTMP) directory
 
11
# - libs:
 
12
#      Target for building the static and dynamic libraries
 
13
# - libstat:
 
14
#      Build the static library (plplot.lib)
 
15
# - libdyn:
 
16
#      Build the dynamic library (plplotd.lib, plplotd.dll)
 
17
# - common:
 
18
#      Writes the plconfig.h and pldevs.h header files
 
19
#      (Here the available drivers are selected)
 
20
# - install:
 
21
#      Installs the built libraries and other files into
 
22
#      the directory indicated by $(PLDEST)
 
23
#
 
24
# Additional drivers should be uncommented from this
 
25
# file before running nmake.
 
26
#
 
27
# Questions/problems, send email to :
 
28
#
 
29
#       Arjen Markus    arjen.markus@wldelft.nl
 
30
#       WL | Delft Hydraulics
 
31
#       The Netherlands
 
32
#
 
33
# Previous maintainer:
 
34
#       Olof Svensson   svensson@esrf.fr
 
35
#       European Synchrotron Radiation Facility
 
36
#       France
 
37
#
 
38
# Originally written by
 
39
#       Paul Casteels   casteels@uia.ua.ac.be
 
40
#       University of Antwerp   Dpt. Physics
 
41
#       Belgium
 
42
#
 
43
 
 
44
 
 
45
#
 
46
# Location of plplot directories
 
47
#
 
48
#PLDEST = c:\plplot
 
49
PLDEST = ~installdir~
 
50
PLDIR = ..\..\..
 
51
PLTMP = $(PLDIR)\tmp
 
52
PLLIB = $(PLDIR)\lib
 
53
PLBIN = $(PLDIR)\bin
 
54
 
 
55
#
 
56
# Device selection
 
57
#
 
58
~devices~
 
59
 
 
60
.IGNORE:
 
61
default: links common libs
 
62
 
 
63
prepare: links common
 
64
 
 
65
links:
 
66
#
 
67
# Copy the necessary files to the temp dir
 
68
#
 
69
  @mkdir $(PLTMP)
 
70
  @mkdir $(PLTMP)\plplot
 
71
  @echo ``
 
72
  @echo `Copying source files to $(PLTMP)`
 
73
  @echo ``
 
74
  @copy $(PLDIR)\src\*.c $(PLTMP)\*.c
 
75
  @copy $(PLDIR)\include\*.h $(PLTMP)\*.h
 
76
  @copy $(PLDIR)\examples\c\*.c $(PLTMP)\*.c
 
77
  @copy $(PLDIR)\examples\c\*.h $(PLTMP)\*.h
 
78
  @copy $(PLDIR)\examples\c\lena.pgm $(PLTMP)\lena.pgm
 
79
  @copy $(PLDIR)\drivers\*.c $(PLTMP)\*.c
 
80
  @copy $(PLDIR)\utils\*.c $(PLTMP)\*.c
 
81
  @copy $(PLDIR)\data\*.fnt $(PLTMP)\*.fnt
 
82
  @copy $(PLDIR)\data\*.map $(PLTMP)\*.map
 
83
  @copy $(PLDIR)\bindings\python\plplotcmodule.i $(PLTMP)\plplotcmodule.i
 
84
  @copy $(PLDIR)\bindings\python\plplot_widgetmodule.c $(PLTMP)\plplot_widgetmodule.c
 
85
  @copy $(PLDIR)\bindings\python\*.py $(PLTMP)\*.py
 
86
#
 
87
# Copy the local source files to temp\
 
88
#
 
89
#  @copy src\*.c $(PLTMP)\*.cpp
 
90
  @copy src\win3.cpp $(PLTMP)
 
91
  @copy src\plconsole.cpp $(PLTMP)
 
92
  @copy src\plstub.cpp $(PLTMP)
 
93
  @copy src\resource.h $(PLTMP)
 
94
  @copy src\plplot.h $(PLTMP)
 
95
  @copy src\plplotd.dep $(PLTMP)
 
96
  @copy src\setup.py $(PLTMP)\setup.py
 
97
  @copy src\*.rc $(PLTMP)
 
98
  @copy src\*.ico $(PLTMP)
 
99
  @copy src\*.def $(PLTMP)
 
100
#
 
101
# Convert from Unix -> Dos
 
102
#
 
103
#  @echo ``
 
104
#  @echo `Converting Unix-2-Dos (add CRs)`
 
105
#  @echo ``
 
106
#  @crlf -fs $(PLTMP)\*.cpp
 
107
#  @crlf -fs $(PLTMP)\*.h
 
108
#  @crlf -fs $(PLTMP)\*.rc
 
109
#  @crlf -fs $(PLTMP)\*.def
 
110
 
 
111
common:
 
112
#
 
113
# Create plconfig.h file
 
114
#
 
115
  @echo ``
 
116
  @echo `Creating $(PLTMP)\plconfig.h`
 
117
  @echo <<$(PLTMP)\plconfig.h
 
118
#ifndef __PLCONFIG_H__
 
119
#define __PLCONFIG_H__
 
120
#define LIB_DIR "$(PLLIB:\=\\)"
 
121
#define BIN_DIR "$(PLBIN:\=\\)"
 
122
#define DATA_DIR "$(PLLIB:\=\\)"
 
123
#define DRV_DIR "$(PLLIB:\=\\)"
 
124
#define VERSION ~version~
 
125
~define_plflt~
 
126
#endif
 
127
<<keep
 
128
 
 
129
# Create pldevs.h file
 
130
#
 
131
  @echo ``
 
132
  @echo `Creating $(PLTMP)\pldevs.h`
 
133
  @echo <<$(PLTMP)\pldevs.h
 
134
!ifdef CGM
 
135
#define PLD_cgm
 
136
!endif
 
137
!ifdef CPS
 
138
#define PLD_cps
 
139
!endif
 
140
!ifdef GIF
 
141
#define PLD_gif
 
142
!endif
 
143
!ifdef HPGL
 
144
#define PLD_hp7470
 
145
!endif
 
146
!ifdef HPGLL
 
147
#define PLD_hp7580
 
148
!endif
 
149
!ifdef JPEG
 
150
#define PLD_jpeg
 
151
!endif
 
152
!ifdef LJII
 
153
#define PLD_ljii
 
154
!endif
 
155
!ifdef LJHPGL
 
156
#define PLD_lj_hpgl
 
157
!endif
 
158
!ifdef MEM
 
159
#define PLD_mem
 
160
!endif
 
161
!ifdef NULL
 
162
#define PLD_null
 
163
!endif
 
164
!ifdef PBM
 
165
#define PLD_pbm
 
166
!endif
 
167
!ifdef PLMETA
 
168
#define PLD_plmeta
 
169
!endif
 
170
!ifdef PNG
 
171
#define PLD_png
 
172
!endif
 
173
!ifdef PS
 
174
#define PLD_ps
 
175
!endif
 
176
!ifdef PSTEX
 
177
#define PLD_pstex
 
178
!endif
 
179
!ifdef XFIG
 
180
#define PLD_xfig
 
181
!endif
 
182
!ifdef WIN3
 
183
#define PLD_win3
 
184
!endif
 
185
<<keep
 
186
 
 
187
libs: libstat libdyn
 
188
 
 
189
libstat:
 
190
    @cd plplib
 
191
    @nmake -f plplib.mak
 
192
    @cd ..
 
193
 
 
194
libdyn:
 
195
    @cd plpdll
 
196
    @nmake -f plpdll.mak
 
197
    @cd ..
 
198
 
 
199
install:
 
200
    @runinstall.bat $(PLDEST)