=================================================================== RCS file: /home/cvs/OpenXM_contrib/gnuplot/Attic/makefile.dj2,v retrieving revision 1.1.1.1 retrieving revision 1.1.1.2 diff -u -p -r1.1.1.1 -r1.1.1.2 --- OpenXM_contrib/gnuplot/Attic/makefile.dj2 2000/01/09 17:00:52 1.1.1.1 +++ OpenXM_contrib/gnuplot/Attic/makefile.dj2 2003/09/15 07:09:23 1.1.1.2 @@ -4,8 +4,9 @@ # # # AUTHORS : several ... including Edzer Pebesma -# last mod. by Emmanuel Bigler -# DATE of last mod : 1996 FEB 20 +# Emmanuel Bigler +# last mod by Hans-Bernhard Br"oker +# DATE of last mod : March 11th, 2002 # # # removed atari reference and added binary demo bf_test @@ -26,8 +27,8 @@ FINALDEST=c:\bin # here customize the name of the executable -# exe file will be gp36.exe: -EXENAME = gp36 +# exe file will be gp37.exe: +EXENAME = gp37 # where to place gnuplot.gih helpfile upon MAKE # note it will be built inside gnuplot\$(HELPDEST) @@ -44,8 +45,8 @@ CC = $(CCDIR)gcc INCLUDE = -I. # for svga term driver -# HBB: -finline-functions bombs out on term.c, so disable it unconditionally -TERMFLAGS = -DDJSVGA -fno-inline-functions +# HBB: -finline-functions used to crash on term.c, but no longer +TERMFLAGS = -DDJSVGA # -fno-inline-functions # # #just for historical purpose.. @@ -57,14 +58,14 @@ TERMFLAGS = -DDJSVGA -fno-inline-functions # HBB : added $(OPTS) so user can # change CFLAGS easily, without having to change makefile CFLAGS = -DMSDOS -DDOS32 \ - -DANSI_C -DSTDC_HEADERS \ + -DANSI_C -DSTDC_HEADERS -DHAVE_TIME_H -DHAVE_TIME_T_IN_TIME_H \ -DHAVE_VALUES_H -DHAVE_UNISTD_H -DRETSIGTYPE=void \ -DHAVE_ERF -DHAVE_LGAMMA -DHAVE_GAMMA \ -DHAVE_GETCWD -DHAVE_SETLINEBUF -DHAVE_SLEEP \ -DHAVE_STRNCASECMP -DHAVE_STRNICMP -DHAVE_STRERROR \ -DHAVE_SETVBUF \ -DHAVE_TEMPNAM -DPIPES -DREADLINE \ - -O $(OPTS) + -O2 -g $(OPTS) LINKOPT = $(LDFLAGS) -lm -lpc -lgrx20 @@ -78,8 +79,8 @@ CSOURCE5 = term/ai.trm term/amiga.trm term/aed.trm \ term/apollo.trm term/gpr.trm term/hppj.trm term/compact.c CSOURCE6 = term/impcodes.h term/imagen.trm term/next.trm term/object.h \ term/iris4d.trm term/kyo.trm term/latex.trm term/mif.trm \ - term/pbm.trm term/pc.trm -CSOURCE7 = term/post.trm term/qms.trm term/regis.trm term/sun.trm \ + term/pbm.trm term/pdf.trm term/pc.trm +CSOURCE7 = term/post.trm term/qms.trm term/regis.trm term/sun.trm term/svg.trm \ term/t410x.trm term/tek.trm term/texdraw.trm term/unixpc.trm \ term/unixplot.trm term/v384.trm term/vws.trm term/x11.trm term/xlib.trm OBJ1 = bitmap.o command.o contour.o eval.o graphics.o graph3d.o hidden3d.o util3d.o @@ -99,30 +100,13 @@ OBJS = $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4) all: $(EXENAME).exe $(HELPDEST)\$(HELPFILE) demo\binary?. -# -s performs the coff2exe step implicitly (?) -# HBB: that's plain wrong: -s means 'strip executable', -# and stubify (formerly called stubify) is now always done -# automatically in the link step. I changed this so you -# get a debuggable gp36, but a stripped gp36.exe +# Note: this is set up so you get a debuggable $(EXENAME) but +# a stripped $(EXENAME).exe $(EXENAME).exe : $(OBJS) $(CC) -o $(EXENAME) $(OBJS) $(LINKOPT) objcopy --strip-all $(EXENAME) $(EXENAME).exe stubify $(EXENAME).exe -#HBB: I think that message is superfluous, and maybe even confusing -# for new users of DJGPP V2, who never used DJGPP V1 at all. -# @echo. -# @echo Rem: with djgpp v.2, you do not need go32 any longer to run gnuplot -# @echo. -# This used to copy go32 to the exe file.. under v1.xx -# obsolete under djgpp v. 2. -# -#$(EXENAME).exe : $(OBJS) -# $(CC) -o $(EXENAME) $(OBJS) $(LINKOPT) -# strip $(EXENAME) -# copy /b $(CCDIR)\$(EXENAME).exe+$(EXENAME) $(EXENAME).exe -# del $(EXENAME) - command.o: command.c plot.h setshow.h help.h $(CC) -c $(CFLAGS) $(INCLUDE) -DHELPFILE=\"$(HELPFILE)\" command.c @@ -157,12 +141,11 @@ $(HELPDEST)\$(HELPFILE): .\docs\doc2gih.exe .\docs\gnu .\docs\doc2gih docs/gnuplot.doc > $(HELPDEST)\$(HELPFILE) .\docs\doc2gih.exe: .\docs\doc2gih.c .\docs\termdoc.c $(CSOURCES) - $(CC) $(CFLAGS) $(INCLUDE) $(TERMFLAGS) -Iterm -o ./docs/doc2gih ./docs/doc2gih.c ./docs/termdoc.c - coff2exe ./docs/doc2gih + $(CC) $(CFLAGS) $(INCLUDE) $(TERMFLAGS) -Iterm -o ./docs/doc2gih.exe ./docs/doc2gih.c ./docs/termdoc.c # now for the demo bin demo\binary?.: bf_test.exe - bf_test + ./bf_test copy binary? demo\binary? del binary? @@ -170,8 +153,7 @@ bf_test.o: $(CC) $(CFLAGS) -c bf_test.c bf_test.exe: bf_test.o binary.o alloc.o - $(CC) $(CFLAGS) bf_test.o binary.o alloc.o -lm -o bf_test - coff2exe bf_test + $(CC) $(CFLAGS) bf_test.o binary.o alloc.o -lm -o bf_test.exe # now install things and create a .bat file to make things easier install: all