# # $Id: makefile.wc,v 1.9 2014/08/18 03:51:49 sfeam Exp $ # # GNUPLOT Makefile for Watcom C # # Modified from the TurboC makefile by Aurel Gabris # Heavily modified and updated for OpenWatcom 1.2 by HBB # # the makefile does longer depends on a linker options file. # this file will be created as needed. (AL 07/17/92) # where to place gnuplot.gih helpfile HELPFILE = gnuplot.gih # names of C compiler & tools CC = wcc386 CL = wcl386 LINK = wlink !ifdef __LOADDLL__ ! loaddll wcc wccd ! loaddll wccaxp wccdaxp ! loaddll wcc386 wccd386 ! loaddll wpp wppdi86 ! loaddll wppaxp wppdaxp ! loaddll wpp386 wppd386 ! loaddll wlink wlink ! loaddll wlib wlibd !endif # the memory model to use (f = flat) MODEL = f # definitions used by makefile.all (and elsewhere) T=..\term\ D=..\docs\ O=obj M=..\demo\ !include makefile.awc # -DHAVE_CONFIG_H: do the configuration #defines the (now) usual way # -DREADLINE to use the history/line editing capability. If you want this # capability add -DREADLINE to CFLAGS CPPFLAGS=-DHAVE_CONFIG_H -UMSDOS -DDOS386 -DDOS386 -DDOS32 -DPC # -w0 means ignore warnings and do not report them # -d1{+} means include line numbers for debugger # -d2 means full symbolic debug info # -fpi means inline 80x87 instructions with emulation # -fpi87 means inline 80x87 instructions # -zq avoids all the version banners being printed # -zm puts each function in a separate section to allow dead code elimination # -o{x} controls optimization # a -> relax aliasing constraints # f -> generate traceable stack frames as needed # The selection of the optimization flags include some wizardry. # Thus omiting any flags from the above two, may result in run-time # errors. # m -> generate inline 80x87 code for math functions # d -> disable all optimizations (Watch out!) # option {stack=n} sets stack size to n CFLAGS = -zq -m$(MODEL) -d2 -zm -omaf -fpi -fp3 -I. $(CPPFLAGS) DOC2XXX_FLAGS = -I$(D) -I$(T) $(CFLAGS) TERMFLAGS = OBJS = $(COREOBJS) version.$(O) BINFILES = $(M)binary1 $(M)binary2 $(M)binary3 all: gnuplot.exe $(HELPFILE) $(BINFILES) .SYMBOLIC @%null # use linkopt.wc to avoid command-line overflow gnuplot.exe: config.h $(OBJS) .PRECIOUS $(LINK) @<