2
# This makefile takes care of the overall building process.
3
# It has the following targets:
5
# The default make step (links, common, libs)
7
# The default make step without the actual build, useful
8
# when you want to adjust the set of drivers manually
10
# Copies all the source files to the $(PLTMP) directory
12
# Target for building the static and dynamic libraries
14
# Build the static library (plplot.lib)
16
# Build the dynamic library (plplotd.lib, plplotd.dll)
18
# Writes the plconfig.h and pldevs.h header files
19
# (Here the available drivers are selected)
21
# Installs the built libraries and other files into
22
# the directory indicated by $(PLDEST)
24
# Additional drivers should be uncommented from this
25
# file before running nmake.
27
# Questions/problems, send email to :
29
# Arjen Markus arjen.markus@wldelft.nl
30
# WL | Delft Hydraulics
33
# Previous maintainer:
34
# Olof Svensson svensson@esrf.fr
35
# European Synchrotron Radiation Facility
38
# Originally written by
39
# Paul Casteels casteels@uia.ua.ac.be
40
# University of Antwerp Dpt. Physics
46
# Location of plplot directories
61
default: links common libs
67
# Copy the necessary files to the temp dir
70
@mkdir $(PLTMP)\plplot
72
@echo `Copying source files to $(PLTMP)`
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
87
# Copy the local source files to temp\
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)
101
# Convert from Unix -> Dos
104
# @echo `Converting Unix-2-Dos (add CRs)`
106
# @crlf -fs $(PLTMP)\*.cpp
107
# @crlf -fs $(PLTMP)\*.h
108
# @crlf -fs $(PLTMP)\*.rc
109
# @crlf -fs $(PLTMP)\*.def
113
# Create plconfig.h file
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~
129
# Create pldevs.h file
132
@echo `Creating $(PLTMP)\pldevs.h`
133
@echo <<$(PLTMP)\pldevs.h
200
@runinstall.bat $(PLDEST)