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 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144
|
#
# This makefile copies all source files to PLTMP and
# creates a makefile in this directory.
# Additional drivers should be uncommented from pldevs.h
#
# Questions/problems,send email to :
# Paul Casteels casteels@uia.ac.be
# University of Antwerp Dpt. Physics
# Belgium
#
#
# Location of the Borland include directory
# (change this for V3.1 !)
#
BCCINCLUDE = c:\bc4\include
#
# Location of plplot directories
#
PLDIR = c:\plplot
PLTMP = $(PLDIR)\tmp
PLLIB = $(PLDIR)\lib
PLBIN = $(PLDIR)\bin
#
# Device selection
#
META = PLD_plmeta
#PS = PLD_ps
#XFIG = PLD_xfig
#LJII = PLD_ljii
#HPGL = PLD_hp7470
#HPGLL = PLD_hp7580
#LJHPGL = PLD_lj_hpgl
NULL = PLD_null
BGI = PLD_bgi
WIN3 = PLD_win3
default:
@echo Usage : make win3 , make bgi or make files
files:
#
# Copy the necessary files to the temp dir
#
@echo Copying source files to $(PLTMP)
@copy $(PLDIR)\src\*.c $(PLTMP)
@copy $(PLDIR)\include\*.h $(PLTMP)
@copy $(PLDIR)\examples\c\*.c $(PLTMP)
@copy $(PLDIR)\examples\c\*.h $(PLTMP)
@copy $(PLDIR)\drivers\*.* $(PLTMP)
@copy $(PLDIR)\utils\*.* $(PLTMP)
#
# Copy the local source files to temp\
#
@copy src\*.c $(PLTMP)
@copy src\*.h $(PLTMP)
@copy src\*.rc $(PLTMP)
@copy src\*.def $(PLTMP)
#
# Convert from Unix -> Dos
#
@echo Converting Unix to Dos (add CRs)
@crlf -fs $(PLTMP)\*.c
@crlf -fs $(PLTMP)\*.h
@crlf -fs $(PLTMP)\*.rc
@crlf -fs $(PLTMP)\*.def
#
# Make some include file available everywhere
#
@echo Putting some .h files in default include directory
@copy $(PLDIR)\include\plplot.h $(BCCINCLUDE)
@copy $(PLDIR)\include\pdf.h $(BCCINCLUDE)
common:
#
# Create plconfig.h file
#
@echo off
@echo Creating $(PLTMP)\plconfig.h
@echoo /c ifndef __PLCONFIG_H__ > $(PLTMP)\plconfig.h
@echoo /c define __PLCONFIG_H__ >> $(PLTMP)\plconfig.h
@echoo /c define LIB_DIR \"$(PLLIB:\=\\)\" >> $(PLTMP)\plconfig.h
@echoo /c define BIN_DIR \"$(PLBIN:\=\\)\" >> $(PLTMP)\plconfig.h
@echoo /c endif >> $(PLTMP)\plconfig.h
#
# Create pldevs.h file
#
@echo Creating $(PLTMP)\pldevs.h
!ifdef META
@echoo /c define PLD_plmeta > $(PLTMP)\pldevs.h
!endif
!ifdef PS
@echoo /c define PLD_ps >> $(PLTMP)\pldevs.h
!endif
!ifdef XFIG
@echoo /c define PLD_xfig >> $(PLTMP)\pldevs.h
!endif
!ifdef LJII
@echoo /c define PLD_ljii >> $(PLTMP)\pldevs.h
!endif
!ifdef HPGL
@echoo /c define PLD_hp7470 >> $(PLTMP)\pldevs.h
!endif
!ifdef HPGLL
@echoo /c define PLD_hp7580 >> $(PLTMP)\pldevs.h
!endif
!ifdef LJHPGL
@echoo /c define PLD_lj_hpgl >> $(PLTMP)\pldevs.h
!endif
!ifdef NULL
@echoo /c define PLD_null >> $(PLTMP)\pldevs.h
!endif
#
# Write first part of the makefile
#
@echo Creating $(PLTMP)\makefile
#
# Compiler options
#
@echoo CC = bcc > $(PLTMP)\makefile
@echoo CFLAGS = -3 -f287 -Od -ml -P -v -w-par -DMSDOS >> $(PLTMP)\makefile
@echoo BRC = brc >> $(PLTMP)\makefile
@echoo BRCFLAGS = >> $(PLTMP)\makefile
win3: common
@echoo /c define $(WIN3) >> $(PLTMP)\pldevs.h
#
# Add Windows definitions to the makefile
#
@type cf\objects.in >> $(PLTMP)\makefile
@type cf\win3.in >> $(PLTMP)\makefile
@type cf\demos.in >> $(PLTMP)\makefile
bgi: common
@echoo /c define $(BGI) >> $(PLTMP)\pldevs.h
#
# Add dos/bgi definitions to the makefile
#
@type cf\objects.in >> $(PLTMP)\makefile
@type cf\bgi.in >> $(PLTMP)\makefile
@type cf\demos.in >> $(PLTMP)\makefile
|