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 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966
|
#
#########################################################################
#
# makefile for The Hessling Editor (THE)
#
#########################################################################
#
# THE - The Hessling Editor. A text editor similar to VM/CMS xedit.
# Copyright (C) 1991-1995 Mark Hessling
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of
# the License, or any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to:
#
# The Free Software Foundation, Inc.
# 675 Mass Ave,
# Cambridge, MA 02139 USA.
#
#
# If you make modifications to this software that you feel increases
# it usefulness for the rest of the community, please email the
# changes, enhancements, bug fixes as well as any and all ideas to me.
# This software is going to be maintained and enhanced as deemed
# necessary by the community.
#
# Mark Hessling Email: M.Hessling@qut.edu.au
# PO Box 203 Phone: +617 3802 0800
# Bellara http://www.gu.edu.au/gext/the/markh.html
# QLD 4507 **** Maintainer PDCurses & REXX/SQL ****
# Australia ************* Author of THE ************
#
#########################################################################
#
# The available features of curses library are different on just about
# every machine. System V curses has more features that BSD curses, so if
# your system gives you a choice of curses libraries, use the System V one.
# The later the version of your System V operating system, the more features
# are supplied in the curses library and the more features THE can use.
# To help you determine which of the options below should be used, then
# the following will help.
#
# Determine where your curses.h file is located. It is generally in
# /usr/include or /usr/5include.
# Once you know the location of curses.h, run the following commands:
#
# grep A_COLOR /usr/include/curses.h (or wherever your curses.h file is)
# If this results in any output, then use the System V R3.2 section.
# next try:
# grep attrset /usr/include/curses.h (or wherever your curses.h file is)
# If this results in any output, then use the System V R3.1 section.
# If neither of these commands resulut in any output, then I'm affraid you
# will have to use the BSD option.
#
# If when you compile and link THE, you get errors, then you might have to
# come down one version. eg If you used the System V R3.2 section and got
# errors, try using the System V 3.1 section.
#
# THE should now work successfully with ncurses version 1.9.1 and later.
# As ncurses provides full System V R4 compatible features like colour,
# if you can get ncurses to work on your system, it will make THE more
# configurable.
#
# ncurses is available from ftp://ftp.netcom.com/pub/zm/zmbenhal/ncurses
#
#########################################################################
#
# THE is REXX-aware under all platforms; DOS, OS/2 and Unix.
# By default, the OS/2 REXX support is enabled when compiling with the
# C Set/2 compiler, as this is the only platform where one is almost
# guaranteed to have REXX support available.
#
# To enable REXX support under Unix you need to do the following:
# - obtain version 0.05d or later of Regina from ftp.pvv.unit.no
# in /pub/rexx. The file is called regina-?.???.tar.Z where ?.??? is
# the current version.
# you can also get Regina from rexx.uwaterloo.ca in /pub/freerexx/regina
# - check the README file to see if your platform is supported.
# if it isn't, then ignore the rest of these instructions :-(
# - build regina as per its instructions
# this should result in a rexx executable file and a libregina.a file
# - copy rexxsaa.h from the regina src directory into the THE source
# directory. Also copy libregina.a from the regina src directory into
# the THE source directory. You may need to run ranlib again on the
# libregina.a file)
# - set the REXXLIB variable to "-L. -lregina"
# you may also need to add "-ll" to the end of the REXXLIB variable
# This is because Regina (versions 0.07a and later) use lex and yacc
# as part of the compilation of Regina. On some platforms you need
# to link the lex/yacc library; libl.a with the rexx executable and
# with THE. Check the linking step when compiling Regina to see if
# "-ll" is included. If it is, then it will be required for THE.
# - set the REXXINC variable to "-DUSE_REGINA"
#
#########################################################################
#$Id: makefile 2.1 1995/06/24 16:30:21 MH Rel MH $
#########################################################################
VER = 22
PROJ = proj # this will get replaced by uncommenting a section
MAN = man # this will get replaced by uncommenting a section
#########################################################################
# Borland C++ 2.0 and above compiler on DOS (with Personal REXX (incomplete))
#########################################################################
#SRC = c:/the
#PROJ = the.exe
#OBJ = obj
#CC = bcc
#CURSINC = -Ic:/curses
#REXXINC = -DUSE_QUERCUS
#INCLUDES = -I$(SRC) $(CURSINC) $(REXXINC)
#CFLAGS = -O -d -K -w-aus -w-par -ml $(INCLUDES)
#LD = tlink @dos-trc.rsp
#XTRAOBJ = getopt.obj rxiface.obj
#MAN = manext.exe
#MANLD = tlink /c /Td c:\c\lib\c0l+manext+getopt+c:\c\lib\wildargs,manext,,c:\c\lib\cl.lib
#########################################################################
# Borland C++ 2.0 and above compiler on DOS (without Personal REXX)
#########################################################################
#SRC = c:/the
#PROJ = the.exe
#OBJ = obj
#CC = bcc
#CURSINC = -Ic:/curses
#REXXINC = -DNOREXX
#INCLUDES = -I$(SRC) $(CURSINC) $(REXXINC)
#CFLAGS = -O -d -K -w-aus -w-par -ml $(INCLUDES)
#LD = tlink @dos-trcx.rsp
#XTRAOBJ = getopt.obj
#MAN = manext.exe
#MANLD = tlink /c /Td c:\c\lib\c0l+manext+getopt+c:\c\lib\wildargs,manext,,c:\c\lib\cl.lib
#########################################################################
# MSC 6.0ax compiler on DOS
#########################################################################
#SRC = c:/the
#PROJ = the.exe
#OBJ = obj
#CC = cl
#CURSINC = -Ic:/curses
#REXXINC = -DNOREXX
#INCLUDES = -I$(SRC) $(CURSINC) $(REXXINC)
#CFLAGS = -O -J -EM -AL $(INCLUDES)
#LD = link @dos-msc.rsp
#XTRAOBJ = getopt.obj
#MAN = manext.exe
#MANLD = link manext+getopt+c:\c600\lib\setargv,,,c:\c600\lib\Llibce /CO /NOE /NOI /NOD;
#########################################################################
# djgpp compiler on DOS (no REXX)
#########################################################################
#SRC = c:/the
#PROJ = the
#OBJ = o
#CC = gcc
#CURSINC = -Ic:/curses
#CURSLIB = c:/djgpp/curses/curseso.a
#REXXINC = -DNOREXX
#REXXLIB =
#INCLUDES = -I$(SRC) $(CURSINC) $(REXXINC)
#CFLAGS = -O -D__MSDOS__ $(INCLUDES) -o$*.o
#LD = $(CC) -o $(PROJ) @dos-go32.rsp -Lc:/djgpp/lib $(CURSLIB) $(REXXLIB)
#XTRAOBJ =
#MAN = manext
#MANLD = $(CC) -o manext manext.o -Lc:/djgpp/lib
#CHMODTHE = aout2exe $(PROJ)
#CHMODMAN = aout2exe $(MAN)
#########################################################################
# djgpp compiler on DOS (with Regina 0.07a and above)
#########################################################################
#SRC = c:/the
#PROJ = the
#OBJ = o
#CC = gcc
#CURSINC = -Ic:/curses
#CURSLIB = c:/djgpp/curses/curseso.a
#REXXINC = -If:/regina-d/src -DUSE_REGINA
#REXXLIB = -Lf:/regina-d/src -lrexx -lsaa -lrexx
#INCLUDES = -I$(SRC) $(CURSINC) $(REXXINC)
#CFLAGS = -O -D__MSDOS__ $(INCLUDES) -o$*.o
#LD = $(CC) -O -o $(PROJ) @dos-go32.rsp -Lc:/djgpp/lib $(CURSLIB) $(REXXLIB)
#XTRAOBJ =
#MAN = manext
#MANLD = $(CC) -o manext manext.o -Lc:/djgpp/lib
#CHMODTHE = aout2exe $(PROJ)
#CHMODMAN = aout2exe $(MAN)
#########################################################################
# MSC 6.0ax compiler on OS/2
#########################################################################
#SRC = c:/the
#PROJ = the.exe
#OBJ = obj
#CC = cl
#CURSINC = -Ic:/curses
#REXXINC = -DNOREXX
#INCLUDES = -I$(SRC) $(CURSINC) $(REXXINC)
#CFLAGS = -O -J -EM -AL -D__OS2__ -DUSE_OS2_H $(INCLUDES)
#LD = link @os2-msc.rsp
#XTRAOBJ = getopt.obj os2eas.obj
#MAN = manext.exe
#MANLD = link manext+getopt+c:\c600\os2lib\setargv,,,c:\c600\os2lib\Llibce,msc-man.def /NOE /NOI /NOD;
#########################################################################
# C Set/2 compiler on OS/2
#########################################################################
#SRC = g:/the
#PROJ = the.exe
#OBJ = obj
#CC = icc
#CURSINC = -Ig:/curses
#REXXINC = -DUSE_OS2REXX
#INCLUDES = -I$(SRC) $(CURSINC) $(REXXINC)
#CFLAGS = -O -J+ -Sm -Q+ $(INCLUDES)
#LD = link386 @os2-ibm.rsp
#XTRAOBJ = getopt.obj os2eas.obj
#MAN = manext.exe
#MANLD = link386 manext+getopt+f:\ibmc\lib\setargv,,,,ibm-man.def /NOE /NOI /EXEPACK /ALIGN:4;
#RCTHE = rc $(SRC)\the.res $(PROJ)
#########################################################################
# emx .09a and above compiler on OS/2
#########################################################################
#SRC = c:/the
#PROJ = the
#OBJ = o
#CC = gcc
#CURSINC = -Ic:/curses
#CURSLIB = -Lf:/emx/curses -lcurso
#REXXINC = -DUSE_OS2REXX
#REXXLIB =
#INCLUDES = -I$(SRC) $(CURSINC) $(REXXINC)
#CFLAGS = -O -DNOVIO $(INCLUDES) -o$*.o
#LD = $(CC) -o $(PROJ) $(OBJS) -Lf:/emx/lib -los2 $(CURSLIB) $(REXXLIB) $(SRC)/emx-the.def
#XTRAOBJ = os2eas.obj
#MAN = manext
#MANLD = $(CC) -o manext manext.o -Lf:/emx/lib -los2 $(SRC)/emx-man.def
#BINDTHE = emxbind $(PROJ)
#RCTHE = rc $(SRC)\the.res $(PROJ)
#BINDMAN = emxbind $(MAN)
#########################################################################
# Borland C++ Compiler on OS/2
#########################################################################
#SRC = c:/the
#PROJ = the.exe
#OBJ = obj
#CC = bcc
#CURSINC = -Ic:/curses
#REXXINC = -DUSE_OS2REXX
#INCLUDES = -I$(SRC) $(CURSINC) $(REXXINC)
#CFLAGS = -O -d -K -w-aus -w-par -D__32BIT__ $(INCLUDES)
#LD = tlink @os2-bcc.rsp
#XTRAOBJ = getopt.obj os2eas.obj
#MAN = manext.exe
#MANLD = tlink manext+getopt+f:\bcos2\lib\setargv,,,,bcc-man.def /NOE /NOI /EXEPACK /ALIGN:4;
#########################################################################
# System V compiler on Sun (no REXX)
#########################################################################
#SRC = .
#PROJ = the
#OBJ = o
#CC = /usr/5bin/cc
#CURSINC =
#CURSLIB = -lcurses
#REXXINC = -DNOREXX
#REXXLIB =
#INCLUDES = -I$(SRC) $(CURSINC) $(REXXINC)
#CFLAGS = -O -DSYSVR31 $(INCLUDES)
#LD = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
#XTRAOBJ =
#MAN = manext
#MANLD = $(CC) -o $(MAN) manext.o
#CHMODTHE = chmod 755 $(PROJ)
#CHMODMAN = chmod 755 $(MAN)
#########################################################################
# ANSI C compiler on Sun - acc (with Regina 0.05h or above)
#########################################################################
#SRC = .
#PROJ = the
#OBJ = o
#CC = acc
#CURSINC = -I/usr/5include
#CURSLIB = -L/usr/5lib -lcurses
#REXXINC = -I. -DUSE_REGINA
#REXXLIB = -L. -lregina
#INCLUDES = -I$(SRC) $(CURSINC) $(REXXINC)
#CFLAGS = -O -DSYSVR31 $(INCLUDES)
#LD = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
#XTRAOBJ =
#MAN = manext
#MANLD = $(CC) -o $(MAN) manext.o
#CHMODTHE = chmod 755 $(PROJ)
#CHMODMAN = chmod 755 $(MAN)
#########################################################################
# ANSI C compiler on Sun - acc (no REXX)
#########################################################################
#SRC = .
#PROJ = the
#OBJ = o
#CC = acc
#CURSINC = -I/usr/5include
#CURSLIB = -L/usr/5lib -lcurses
#REXXINC = -DNOREXX
#REXXLIB =
#INCLUDES = -I$(SRC) $(CURSINC) $(REXXINC)
#CFLAGS = -O -DSYSVR31 $(INCLUDES)
#LD = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
#XTRAOBJ =
#MAN = manext
#MANLD = $(CC) -o $(MAN) manext.o
#CHMODTHE = chmod 755 $(PROJ)
#CHMODMAN = chmod 755 $(MAN)
#########################################################################
# gcc compiler on Sun (with Regina 0.05h or above)
#########################################################################
#SRC = .
#PROJ = the
#OBJ = o
#CC = gcc
#CURSINC = -I/usr/5include
#CURSLIB = -L/usr/5lib -lcurses
#REXXINC = -I. -DUSE_REGINA
#REXXLIB = -L. -lregina
#INCLUDES = -I$(SRC) $(CURSINC) $(REXXINC)
#CFLAGS = -O -DSYSVR31 $(INCLUDES)
#LD = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
#XTRAOBJ =
#MAN = manext
#MANLD = $(CC) -o $(MAN) manext.o
#CHMODTHE = chmod 755 $(PROJ)
#CHMODMAN = chmod 755 $(MAN)
#########################################################################
# gcc compiler on Linux using XCurses (NO REXX)
#########################################################################
#SRC = ..
#PROJ = the
#OBJ = o
#CC = gcc
#CURSINC = -O -I/usr/local/include -DUSE_XCURSES -DSYSVR32
#CURSLIB = -L/usr/local/lib -lxcurseso -L/usr/X11R6/lib -lXaw -lXmu -lXt -lX11 -lSM -lICE
#REXXINC = -DNOREXX
#REXXLIB =
#INCLUDES = -I$(SRC) $(CURSINC) $(REXXINC)
#CFLAGS = $(INCLUDES)
#LD = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
#XTRAOBJ =
#MAN = manext
#MANLD = $(CC) -o $(MAN) manext.o
#CHMODTHE = chmod 755 $(PROJ)
#CHMODMAN = chmod 755 $(MAN)
#########################################################################
# gcc compiler on Linux using XCurses (with Regina)
#########################################################################
#SRC = .
#PROJ = the
#OBJ = o
#CC = gcc
#CURSINC = -g -I/usr/local/include -DUSE_XCURSES -DSYSVR32
#CURSLIB = -L/usr/local/lib -lxcurseso -L/usr/X11R6/lib -lXaw -lXmu -lXt -lX11 -lSM -lICE
#REXXINC = -I/usr/local/include -DUSE_REGINA
#REXXLIB = -L/usr/local/lib -lregina
#INCLUDES = -I$(SRC) $(CURSINC) $(REXXINC)
#CFLAGS = $(INCLUDES)
#LD = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
#XTRAOBJ =
#MAN = manext
#MANLD = $(CC) -o $(MAN) manext.o
#CHMODTHE = chmod 755 $(PROJ)
#CHMODMAN = chmod 755 $(MAN)
#########################################################################
# gcc compiler on Linux using XCurses (NO REXX)
#########################################################################
#SRC = ..
#PROJ = the
#OBJ = o
#CC = gcc
#CURSINC = -O -I/usr/local/include -DUSE_XCURSES -DSYSVR32
#CURSLIB = -L/usr/local/lib -lxcurseso -lXaw -lXmu -lXt -lX11 -lSM -lICE
#REXXINC = -DNOREXX
#REXXLIB =
#INCLUDES = -I$(SRC) $(CURSINC) $(REXXINC)
#CFLAGS = $(INCLUDES)
#LD = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
#XTRAOBJ =
#MAN = manext
#MANLD = $(CC) -o $(MAN) manext.o
#CHMODTHE = chmod 755 $(PROJ)
#CHMODMAN = chmod 755 $(MAN)
#########################################################################
# gcc compiler on Linux using ncurses (no REXX)
#########################################################################
#SRC = .
#PROJ = the
#OBJ = o
#CC = gcc
#CURSINC = -I/usr/include/ncurses -DUSE_NCURSES -DSYSVR32
#CURSLIB = -lncurses
#REXXINC = -DNOREXX
#REXXLIB =
#INCLUDES = -I$(SRC) $(CURSINC) $(REXXINC)
#CFLAGS = $(INCLUDES)
#LD = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
#XTRAOBJ =
#MAN = manext
#MANLD = $(CC) -o $(MAN) manext.o
#CHMODTHE = chmod 755 $(PROJ)
#CHMODMAN = chmod 755 $(MAN)
#########################################################################
# gcc compiler on Linux using ncurses (with Regina)
#########################################################################
#SRC = .
#PROJ = the
#OBJ = o
#CC = gcc
#CURSINC = -I/usr/include/ncurses -DUSE_NCURSES -DSYSVR32
#CURSLIB = -lncurses
#REXXINC = -I. -DUSE_REGINA
#REXXLIB = -L. -lregina
#INCLUDES = -I$(SRC) $(CURSINC) $(REXXINC)
#CFLAGS = $(INCLUDES)
#LD = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
#XTRAOBJ =
#MAN = manext
#MANLD = $(CC) -o $(MAN) manext.o
#CHMODTHE = chmod 755 $(PROJ)
#CHMODMAN = chmod 755 $(MAN)
#########################################################################
# gcc compiler using ncurses (no Regina)
#########################################################################
#SRC = .
#PROJ = the
#OBJ = o
#CC = gcc
#CURSINC = -I/usr/local/include -DUSE_NCURSES -DSYSVR32
#CURSLIB = -L/usr/local/lib -lncurses
#REXXINC = -DNOREXX
#REXXLIB =
#INCLUDES = -I$(SRC) $(CURSINC) $(REXXINC)
#CFLAGS = -O $(INCLUDES)
#LD = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
#XTRAOBJ =
#MAN = manext
#MANLD = $(CC) -o $(MAN) manext.o
#CHMODTHE = chmod 755 $(PROJ)
#CHMODMAN = chmod 755 $(MAN)
#########################################################################
# System V compiler on System V R4 systems (no REXX)
#########################################################################
#SRC = .
#PROJ = the
#OBJ = o
#CC = cc
#CURSINC =
#CURSLIB = -lcurses
#REXXINC = -DNOREXX
#REXXLIB =
#INCLUDES = -I$(SRC) $(CURSINC) $(REXXINC)
#CFLAGS = -O -DSYSVR4 $(INCLUDES)
#LD = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
#XTRAOBJ =
#MAN = manext
#MANLD = $(CC) -o $(MAN) manext.o
#CHMODTHE = chmod 755 $(PROJ)
#CHMODMAN = chmod 755 $(MAN)
#########################################################################
# System V compiler on System V R3.2 systems (no REXX)
#########################################################################
#SRC = .
#PROJ = the
#OBJ = o
#CC = cc
#CURSINC =
#CURSLIB = -lcurses
#REXXINC = -DNOREXX
#REXXLIB =
#INCLUDES = -I$(SRC) $(CURSINC) $(REXXINC)
#CFLAGS = -O -DSYSVR32 $(INCLUDES)
#LD = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
#XTRAOBJ =
#MAN = manext
#MANLD = $(CC) -o $(MAN) manext.o
#CHMODTHE = chmod 755 $(PROJ)
#CHMODMAN = chmod 755 $(MAN)
#########################################################################
# System V compiler on System V R3.1 systems (no REXX)
#########################################################################
#SRC = .
#PROJ = the
#OBJ = o
#CC = cc
#CURSINC =
#CURSLIB = -lcurses
#REXXINC = -DNOREXX
#REXXLIB =
#INCLUDES = -I$(SRC) $(CURSINC) $(REXXINC)
#CFLAGS = -O -DSYSVR31 $(INCLUDES)
#LD = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
#XTRAOBJ =
#MAN = manext
#MANLD = $(CC) -o $(MAN) manext.o
#CHMODTHE = chmod 755 $(PROJ)
#CHMODMAN = chmod 755 $(MAN)
#########################################################################
# System V compiler on System V R3 systems (no REXX)
#########################################################################
#SRC = .
#PROJ = the
#OBJ = o
#CC = cc
#CURSINC =
#CURSLIB = -lcurses
#REXXINC = -DNOREXX
#REXXLIB =
#INCLUDES = -I$(SRC) $(CURSINC) $(REXXINC)
#CFLAGS = -O -DSYSVR3 $(INCLUDES)
#LD = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
#XTRAOBJ =
#MAN = manext
#MANLD = $(CC) -o $(MAN) manext.o
#CHMODTHE = chmod 755 $(PROJ)
#CHMODMAN = chmod 755 $(MAN)
#########################################################################
# OS/F1 Dec Alpha (with Regina)
#########################################################################
#SRC = .
#PROJ = the
#OBJ = o
#CC = c89
#CURSINC =
#CURSLIB = -lcurses
#REXXINC = -DUSE_REGINA -I.
#REXXLIB = -L. -lregina -ll
#INCLUDES = -I$(SRC) $(CURSINC) $(REXXINC)
#CFLAGS = -O -UBSD -DSYSVR31 -Olimit 800 -DNO_CURS_SET -D_XOPEN_SOURCE -unsigned $(INCLUDES)
#LD = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
#XTRAOBJ =
#MAN = manext
#MANLD = $(CC) -o $(MAN) manext.o
#CHMODTHE = chmod 755 $(PROJ)
#CHMODMAN = chmod 755 $(MAN)
#########################################################################
#HP-UX 9.04 A.09.04 9000/800/T-500 (with Regina)
#########################################################################
#SRC = .
#PROJ = the
#OBJ = o
#CC = c89
#CURSINC =
#CURSLIB = -lcurses
#REXXINC = -DUSE_REGINA -I.
#REXXLIB = -L. -lregina -ll -ldld
#INCLUDES = -I$(SRC) $(CURSINC) $(REXXINC)
#CFLAGS = -O -DSYSV -D_HPUX_SOURCE $(INCLUDES)
#LD = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
#XTRAOBJ =
#MAN = manext
#MANLD = $(CC) -o $(MAN) manext.o
#CHMODTHE = chmod 755 $(PROJ)
#CHMODMAN = chmod 755 $(MAN)
#########################################################################
#HP-UX 9.04 A.09.04 9000/800/T-500 (with REXX/imc)
#########################################################################
#SRC = .
#PROJ = the
#OBJ = o
#CC = c89
#CURSINC =
#CURSLIB = -lcurses
#REXXINC = -I/path_to_rexximc_rexxsaa.h
#REXXLIB = -L/path_to_rexximc_librexx.a -lrexx
#INCLUDES = -I$(SRC) $(CURSINC) $(REXXINC)
#CFLAGS = -O -DSYSV -D_HPUX_SOURCE $(INCLUDES)
#LD = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
#XTRAOBJ =
#MAN = manext
#MANLD = $(CC) -o $(MAN) manext.o
#CHMODTHE = chmod 755 $(PROJ)
#CHMODMAN = chmod 755 $(MAN)
#########################################################################
#AIX 3.2.5 RS/6000 320 (with Regina)
#########################################################################
#SRC = .
#PROJ = the
#OBJ = o
#CC = c89
#CURSINC =
#CURSLIB = -lcurses
#REXXINC = -DUSE_REGINA -I.
#REXXLIB = -L. -lregina -ll
#INCLUDES = -I$(SRC) $(CURSINC) $(REXXINC)
#CFLAGS = -O -DSYSV -D_XOPEN_SOURCE $(INCLUDES)
#LD = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
#XTRAOBJ =
#MAN = manext
#MANLD = $(CC) -o $(MAN) manext.o
#CHMODTHE = chmod 755 $(PROJ)
#CHMODMAN = chmod 755 $(MAN)
#########################################################################
#AIX 3.2.5 RS/6000 320 - extended curses (with Regina)
#########################################################################
#SRC = .
#PROJ = the
#OBJ = o
#CC = c89
#CURSINC = -DUSE_EXTCURSES
#CURSLIB = -lcur
#REXXINC = -DUSE_REGINA -I.
#REXXLIB = -L. -lregina -ll
#INCLUDES = -I$(SRC) $(CURSINC) $(REXXINC)
#CFLAGS = -O -DSYSV -D_XOPEN_SOURCE $(INCLUDES)
#LD = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
#XTRAOBJ = extcurs.o
#MAN = manext
#MANLD = $(CC) -o $(MAN) manext.o
#CHMODTHE = chmod 755 $(PROJ)
#CHMODMAN = chmod 755 $(MAN)
#########################################################################
# SunOS 5.3 (Solaris 2.3) SparcCenter 2000 (with Regina)
#########################################################################
#SRC = .
#PROJ = the
#OBJ = o
#CC = gcc
#CURSINC =
#CURSLIB = -lcurses
#REXXINC = -I. -DUSE_REGINA
#REXXLIB = -L. -lregina -ll -ldl
#INCLUDES = -I$(SRC) $(CURSINC) $(REXXINC)
#CFLAGS = -O -DSYSVR4 $(INCLUDES)
#LD = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
#XTRAOBJ =
#MAN = manext
#MANLD = $(CC) -o $(MAN) manext.o
#CHMODTHE = chmod 755 $(PROJ)
#CHMODMAN = chmod 755 $(MAN)
#########################################################################
#DYNIX/ptx 4.0 Sequent 2000/700 (with Regina)
#########################################################################
#SRC = .
#PROJ = the
#OBJ = o
#CC = cc
#CURSINC =
#CURSLIB = -lcurses
#REXXINC = -I. -DUSE_REGINA
#REXXLIB = -L. -lregina -ll -ldl
#INCLUDES = -I$(SRC) $(CURSINC) $(REXXINC)
#CFLAGS = -O -DSYSVR4 $(INCLUDES)
#LD = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
#XTRAOBJ =
#MAN = manext
#MANLD = $(CC) -o $(MAN) manext.o
#CHMODTHE = chmod 755 $(PROJ)
#CHMODMAN = chmod 755 $(MAN)
#########################################################################
# c89 compiler on System V systems eg AIX, Ultrix (no REXX)
#########################################################################
#SRC = .
#PROJ = the
#OBJ = o
#CC = c89
#CURSINC =
#CURSLIB = -lcurses
#REXXINC = -DNOREXX
#REXXLIB =
#INCLUDES = -I$(SRC) $(CURSINC) $(REXXINC)
#CFLAGS = -O -DSYSV -D_XOPEN_SOURCE $(INCLUDES)
#LD = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
#XTRAOBJ =
#MAN = manext
#MANLD = $(CC) -o $(MAN) manext.o
#CHMODTHE = chmod 755 $(PROJ)
#CHMODMAN = chmod 755 $(MAN)
#########################################################################
# c89 compiler on HP/UX (with Regina 0.06a and above)
#########################################################################
#SRC = .
#PROJ = the
#OBJ = o
#CC = c89
#CURSINC =
#CURSLIB = -lcurses
#REXXINC = -DUSE_REGINA
#REXXLIB = -L. -lregina -ll -ldld
#INCLUDES = -I$(SRC) $(CURSINC) $(REXXINC)
#CFLAGS = -O -DSYSV -D_XOPEN_SOURCE $(INCLUDES)
#LD = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
#XTRAOBJ =
#MAN = manext
#MANLD = $(CC) -o $(MAN) manext.o
#CHMODTHE = chmod 755 $(PROJ)
#CHMODMAN = chmod 755 $(MAN)
#########################################################################
# c89 compiler on AIX - standard curses (with Regina 0.06a and above)
#########################################################################
#SRC = .
#PROJ = the
#OBJ = o
#CC = c89
#CURSINC =
#CURSLIB = -lcurses
#REXXINC = -DUSE_REGINA -I../regina/src
#REXXLIB = -L../regina/src -lregina -ll
#INCLUDES = -I$(SRC) $(CURSINC) $(REXXINC)
#CFLAGS = -O -DSYSV -D_XOPEN_SOURCE $(INCLUDES)
#LD = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
#XTRAOBJ =
#MAN = manext
#MANLD = $(CC) -o $(MAN) manext.o
#CHMODTHE = chmod 755 $(PROJ)
#CHMODMAN = chmod 755 $(MAN)
#########################################################################
# c89 compiler on AIX - extended curses (no REXX)
#########################################################################
#SRC = .
#PROJ = the
#OBJ = o
#CC = c89
#CURSINC = -DUSE_EXTCURSES
#CURSLIB = -lcur
#REXXINC = -DNOREXX
#REXXLIB =
#INCLUDES = -I$(SRC) $(CURSINC) $(REXXINC)
#CFLAGS = -g -DSYSV -D_XOPEN_SOURCE $(INCLUDES)
#LD = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
#XTRAOBJ = extcurs.o
#MAN = manext
#MANLD = $(CC) -o $(MAN) manext.o
#CHMODTHE = chmod 755 $(PROJ)
#CHMODMAN = chmod 755 $(MAN)
#########################################################################
# c89 compiler on AIX using REXX/6000
#########################################################################
#SRC = .
#PROJ = the
#OBJ = o
#CC = c89
#CURSINC =
#CURSLIB = -lcurses
#REXXINC = -DUSE_AIXREXX
#REXXLIB = -lrexx
#INCLUDES = -I$(SRC) $(CURSINC) $(REXXINC)
#CFLAGS = -g -DSYSV -D_XOPEN_SOURCE $(INCLUDES)
#LD = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
#XTRAOBJ =
#MAN = manext
#MANLD = $(CC) -o $(MAN) manext.o
#CHMODTHE = chmod 755 $(PROJ)
#CHMODMAN = chmod 755 $(MAN)
#########################################################################
# C compiler on BSD or BSDish systems eg. Linux, 386BSD (no REXX)
#########################################################################
#SRC = .
#PROJ = the
#OBJ = o
#CC = cc
#CURSINC =
#CURSLIB = -lcurses -ltermcap
#REXXINC = -DNOREXX
#REXXLIB =
#INCLUDES = -I$(SRC) $(CURSINC) $(REXXINC)
#CFLAGS = -O -DBSD $(INCLUDES)
#LD = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
#XTRAOBJ =
#MAN = manext
#MANLD = $(CC) -o $(MAN) manext.o
#CHMODTHE = chmod 755 $(PROJ)
#CHMODMAN = chmod 755 $(MAN)
#########################################################################
# C compiler on BSD or BSDish systems eg. Linux, 386BSD (using Regina)
#########################################################################
#SRC = .
#PROJ = the
#OBJ = o
#CC = cc
#CURSINC =
#CURSLIB = -lcurses -ltermcap
#REXXINC = -DUSE_REGINA
#REXXLIB = -L. -lregina
#INCLUDES = -I$(SRC) $(CURSINC) $(REXXINC)
#CFLAGS = -O -DBSD $(INCLUDES)
#LD = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
#XTRAOBJ =
#MAN = manext
#MANLD = $(CC) -o $(MAN) manext.o
#CHMODTHE = chmod 755 $(PROJ)
#CHMODMAN = chmod 755 $(MAN)
#########################################################################
# C compiler under ATT System V R3.2 (no REXX)
#########################################################################
#SRC = .
#PROJ = the
#OBJ = o
#CC = cc
#CURSINC =
#CURSLIB = -lcurses
#REXXINC = -DNOREXX
#REXXLIB =
#INCLUDES = -I$(SRC) $(CURSINC) $(REXXINC)
#CFLAGS = -O -DATT -DSYSVR32 -DNO_RENAME $(INCLUDES)
#LD = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
#XTRAOBJ =
#MAN = manext
#MANLD = $(CC) -o $(MAN) manext.o
#CHMODTHE = chmod 755 $(PROJ)
#CHMODMAN = chmod 755 $(MAN)
#########################################################################
# C compiler under SCO Xenix R2.3 (no REXX)
#########################################################################
#SRC = .
#PROJ = the
#OBJ = o
#CC = cc
#CURSINC =
#CURSLIB = -lcurses -lx
#REXXINC = -DNOREXX
#REXXLIB =
#INCLUDES = -I$(SRC) $(CURSINC) $(REXXINC)
#CFLAGS = -O -DNO_RENAME $(INCLUDES)
#LD = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
#XTRAOBJ =
#MAN = manext
#MANLD = $(CC) -o $(MAN) manext.o
#CHMODTHE = chmod 755 $(PROJ)
#CHMODMAN = chmod 755 $(MAN)
#########################################################################
#
#
# Object files
#
OBJ1 = box.$(OBJ) column.$(OBJ) colour.$(OBJ) comm1.$(OBJ) comm2.$(OBJ) comm3.$(OBJ) comm4.$(OBJ) comm5.$(OBJ) \
commset1.$(OBJ) commset2.$(OBJ) commsos.$(OBJ) cursor.$(OBJ) default.$(OBJ) \
edit.$(OBJ) error.$(OBJ) execute.$(OBJ) linked.$(OBJ) nonansi.$(OBJ) \
prefix.$(OBJ) reserved.$(OBJ) scroll.$(OBJ) show.$(OBJ) sort.$(OBJ) \
target.$(OBJ) the.$(OBJ) util.$(OBJ)
OBJ2 = commutil.$(OBJ)
OBJ3 = getch.$(OBJ)
OBJ4 = query.$(OBJ)
OBJ5 = fnmatch.$(OBJ)
OBJ6 = directry.$(OBJ) file.$(OBJ)
OBJ7 = rexx.$(OBJ)
OBJ8 = quercus.$(OBJ) norexx.$(OBJ)
OBJX = $(XTRAOBJ)
OBJS = $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5) $(OBJ6) $(OBJ7) $(OBJ8) $(OBJX)
COMM = $(SRC)/comm1.c $(SRC)/comm2.c $(SRC)/comm3.c $(SRC)/comm4.c $(SRC)/comm5.c \
$(SRC)/commsos.c $(SRC)/commset1.c $(SRC)/commset2.c $(SRC)/query.c
APPENDIX = $(SRC)/appendix.1
GLOSSARY = $(SRC)/glossary
#
#########################################################################
$(PROJ): $(OBJS)
$(LD)
$(BINDTHE)
$(RCTHE)
$(CHMODTHE)
#########################################################################
%.$(OBJ):$(SRC)/%.c
$(CC) $(CFLAGS) -c $(SRC)/$*.c
#########################################################################
$(OBJ1): $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
$(OBJ2): $(SRC)/the.h $(SRC)/command.h $(SRC)/defines.h $(SRC)/proto.h $(SRC)/getch.h $(SRC)/key.h
$(OBJ3): $(SRC)/getch.h $(SRC)/defines.h $(SRC)/proto.h
$(OBJ4): $(SRC)/query.h $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
$(OBJ5): $(SRC)/the.h $(SRC)/fnmatch.h
$(OBJ6): $(SRC)/the.h $(SRC)/directry.h $(SRC)/defines.h $(SRC)/proto.h
$(OBJ7): $(SRC)/the.h $(SRC)/rexx.h $(SRC)/proto.h $(SRC)/defines.h $(SRC)/query.h
$(OBJ8): $(SRC)/the.h $(SRC)/rexx.h $(SRC)/defines.h $(SRC)/rexxfill.h
#
#########################################################################
quickref: $(MAN) $(COMM)
manext -q $(COMM) > the.qrf
#
#########################################################################
manual: $(MAN) $(SRC)/overview $(COMM) $(APPENDIX) $(GLOSSARY)
manext $(SRC)/overview $(COMM) $(APPENDIX) $(GLOSSARY) > the.man
#
$(MAN): $(XTRAOBJ) manext.$(OBJ)
$(MANLD)
$(CHMODMAN)
#########################################################################
zipsrc:
-cp src.diz file_id.diz
zip thesrc$(VER) COPYING readme.src readme.exc overview appendix.1 glossary the.his
zip thesrc$(VER) box.c colour.c comm*.c cursor.c default.c directry.c
zip thesrc$(VER) edit.c error.c norexx.c scroll.c column.c execute.c
zip thesrc$(VER) extcurs.c file.c fnmatch.c getch.c getopt.c linked.c
zip thesrc$(VER) nonansi.c os2eas.c prefix.c quercus.c query.c reserved.c
zip thesrc$(VER) rexx.c show.c sort.c target.c the.c trace.c util.c vax.c
zip thesrc$(VER) command.h defines.h directry.h fnmatch.h getch.h
zip thesrc$(VER) key.h query.h proto.h rexxfill.h rexx.h the.h makefile.dist Makefile.in
zip thesrc$(VER) manext.c *.hlp *.rsp *.def *.diz makefile files.rcs the*.xbm icons.zip the.res the.rc
zip thesrc$(VER) append.the comm.the uncomm.the total.the match.the rm.the
zip thesrc$(VER) words.the l.the compile.the spell.the demo.the config.h
zip thesrc$(VER) Makefile.in configure config.h.in aclocal.m4 configure.in
-rm file_id.diz
#########################################################################
tarsrc:
-cp src.diz file_id.diz
tar cvf thesrc$(VER).tar COPYING readme.src readme.exc overview appendix.1 glossary the.his \
box.c colour.c column.c comm*.c cursor.c default.c directry.c edit.c \
error.c execute.c extcurs.c file.c fnmatch.c getch.c getopt.c \
linked.c nonansi.c os2eas.c prefix.c quercus.c query.c reserved.c norexx.c \
rexx.c show.c sort.c target.c the.c trace.c util.c vax.c scroll.c \
command.h defines.h directry.h fnmatch.h getch.h \
key.h query.h proto.h rexxfill.h rexx.h the.h \
manext.c *.hlp *.rsp *.def *.diz makefile files.rcs icons.zip the*.xbm the.res the.rc \
append.the comm.the uncomm.the total.the match.the rm.the words.the l.the compile.the \
spell.the demo.the
compress thesrc$(VER).tar
-rm file_id.diz
#########################################################################
zipdos:
+copy d:\tools\the.exe .
+copy dos.diz file_id.diz
zip thedos$(VER).zip COPYING readme.exc file_id.diz the.exe
zip thedos$(VER).zip the.man the.his dos.hlp
zip thedos$(VER).zip append.the comm.the uncomm.the total.the match.the rm.the
zip thedos$(VER).zip words.the l.the compile.the spell.the demo.the
+del the.exe
+del file_id.diz
#########################################################################
zipgo32:
+copy c:\the\dos\go32\the.exe
+copy d:\djgpp\bin\go32.exe
+copy dosgo32.diz file_id.diz
zip thedjg$(VER).zip COPYING readme.exc file_id.diz the.exe go32.exe
zip thedjg$(VER).zip the.man the.his dos.hlp
zip thedjg$(VER).zip append.the comm.the uncomm.the total.the match.the rm.the
zip thedjg$(VER).zip words.the l.the compile.the spell.the demo.the
+del the.exe
+del go32.exe
+del file_id.diz
#########################################################################
zipos2:
+copy f:\usr\bin\the.exe .
+copy os2.diz file_id.diz
zip theos2$(VER).zip COPYING readme.exc file_id.diz the.exe
zip theos2$(VER).zip the.man the.his os2.hlp theos2.ico
zip theos2$(VER).zip append.the comm.the uncomm.the total.the match.the rm.the
zip theos2$(VER).zip words.the l.the compile.the spell.the demo.the
+del the.exe
+del file_id.diz
#########################################################################
zipdoc:
zip thedoc$(VER).zip COPYING readme.exc readme.src
zip thedoc$(VER).zip the.man the.his *.hlp
zip thedoc$(VER).zip append.the comm.the uncomm.the total.the match.the rm.the
zip thedoc$(VER).zip words.the l.the compile.the spell.the demo.the
#########################################################################
zipexe:
+copy f:\usr\bin\the.exe theos2.exe
+copy d:\tools\the.exe thedos.exe
zip theexe$(VER).zip COPYING readme.exc thedos.exe theos2.exe
zip theexe$(VER).zip the.man the.his dos.hlp os2.hlp icons.zip
zip theexe$(VER).zip append.the comm.the uncomm.the total.the match.the rm.the
zip theexe$(VER).zip words.the l.the compile.the spell.the demo.the
+del thedos.exe
+del theos2.exe
#########################################################################
|