home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / thesrc15.zip / makefile < prev    next >
Makefile  |  1993-12-01  |  25KB  |  629 lines

  1. #
  2. #########################################################################
  3. #
  4. # makefile for The Hessling Editor (THE)
  5. #
  6. #########################################################################
  7. #
  8. # THE - The Hessling Editor. A text editor similar to VM/CMS xedit.
  9. # Copyright (C) 1991-1993 Mark Hessling
  10. #
  11. # This program is free software; you can redistribute it and/or
  12. # modify it under the terms of the GNU General Public License as
  13. # published by the Free Software Foundation; either version 2 of
  14. # the License, or any later version.
  15. #
  16. # This program is distributed in the hope that it will be useful,
  17. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  19. # General Public License for more details.
  20. #
  21. # You should have received a copy of the GNU General Public License
  22. # along with this program; if not, write to:
  23. #
  24. #    The Free Software Foundation, Inc.
  25. #    675 Mass Ave,
  26. #    Cambridge, MA 02139 USA.
  27. #
  28. #
  29. # If you make modifications to this software that you feel increases
  30. # it usefulness for the rest of the community, please email the
  31. # changes, enhancements, bug fixes as well as any and all ideas to me.
  32. # This software is going to be maintained and enhanced as deemed
  33. # necessary by the community.
  34. #
  35. # Mark Hessling                     email: M.Hessling@gu.edu.au
  36. # 36 David Road                     Phone: +61 7 849 7731
  37. # Holland Park                      Fax:   +61 7 875 5314
  38. # QLD 4121
  39. # Australia
  40. #
  41. #########################################################################
  42. #
  43. # The available features of curses library are different on just about 
  44. # every machine. System V curses has more features that BSD curses, so if
  45. # your system gives you a choice of curses libraries, use the System V one.
  46. # The later the version of your System V operating system, the more features
  47. # are supplied in the curses library and the more features THE can use.
  48. # To help you determine which of the options below should be used, then
  49. # the following will help.
  50. #
  51. # Determine where your curses.h file is located. It is generally in
  52. # /usr/include or /usr/5include. 
  53. # Once you know the location of curses.h, run the following commands:
  54. #
  55. # grep A_COLOR /usr/include/curses.h  (or whereever your curses.h file is)
  56. # If this results in any output, then use the System V R3.2 section.
  57. # next try:
  58. # grep attrset /usr/include/curses.h  (or whereever your curses.h file is)
  59. # If this results in any output, then use the System V R3.1 section.
  60. # If neither of these commands resulut in any output, then I'm affraid you
  61. # will have to use the BSD option.
  62. #
  63. # If when you compile and link THE, you get errors, then you might have to
  64. # come down one version. eg If you used the System V R3.2 section and got
  65. # errors, try using the System V 3.1 section.
  66. #
  67. #########################################################################
  68. #
  69. # THE is REXX-aware under all platforms; DOS, OS/2 and Unix.
  70. # By default, the OS/2 REXX support is enabled when compiling with the
  71. # C Set/2 compiler, as this is the only platform where one is almost
  72. # guaranteed to have REXX support available.
  73. #
  74. # To enable REXX support under Unix you need to do the following:
  75. # - obtain version 0.05d or later of Regina from flipper.pvv.unit.no
  76. #   in /pub/rexx. The file is called regina-0.05d.tar.Z
  77. #   you can also get Regina from rexx.uwaterloo.ca in /pub/freerexx/regina
  78. # - check the README file to see if your platform is supported.
  79. #   if it isn't, then ignore the rest of these instructions :-)
  80. # - build regina as per its instructions
  81. #   this should result in a rexx executable file and a libregina.a file
  82. # - copy rexxsaa.h from the regina src directory into the THE source
  83. #   directory. Also copy libregina.a from the regina src directory into
  84. #   the THE source directory. You may need to run ranlib again on the
  85. #   libregina.a file)
  86. # - append to the LD variable "-L. -lregina"
  87. # - append to the CFLAGS variable "-DUSE_REGINA"
  88. # - remove "-DNOREXX" from the CFLAGS variable
  89. # - copy/move the rexx executable into a directory in your PATH
  90. #
  91. #########################################################################
  92. #$Header: C:\THE\RCS\makefile 1.4 1993/09/01 16:26:39 MH Interim MH $
  93. #########################################################################
  94.  
  95. VER = 15
  96. PROJ = proj   # this will get replaced by uncommenting a section
  97. MAN  = man    # this will get replaced by uncommenting a section
  98.  
  99. #########################################################################
  100. # Borland C++ 2.0 and above compiler on DOS - with Personal REXX (incomplete)
  101. #########################################################################
  102. #SRC       = c:/the
  103. #PROJ      = the.exe
  104. #OBJ       = obj
  105. #CC        = bcc
  106. #CURSINC   = -Ic:/curses
  107. #CFLAGS    = -O -d -K -w-aus -w-par -ml -DPROTO -DUSE_QUERCUS -I$(SRC) $(CURSINC)
  108. #LD        = tlink @dos-trc.rsp
  109. #XTRAOBJ   = getopt.obj rxiface.obj
  110. #MAN       = manext.exe
  111. #MANLD     = tlink /c /Td c:\c\lib\c0l+manext+getopt+c:\c\lib\wildargs,manext,,c:\c\lib\cl.lib
  112. #CHMODTHE  =
  113. #CHMODMAN  =
  114. #########################################################################
  115. # Borland C++ 2.0 and above compiler on DOS - without Personal REXX
  116. #########################################################################
  117. #SRC       = c:/the
  118. #PROJ      = the.exe
  119. #OBJ       = obj
  120. #CC        = bcc
  121. #CURSINC   = -Ic:/curses
  122. #CFLAGS    = -O -d -K -w-aus -w-par -ml -DPROTO -DNOREXX -I$(SRC) $(CURSINC)
  123. #LD        = tlink @dos-trcx.rsp
  124. #XTRAOBJ   = getopt.obj
  125. #MAN       = manext.exe
  126. #MANLD     = tlink /c /Td c:\c\lib\c0l+manext+getopt+c:\c\lib\wildargs,manext,,c:\c\lib\cl.lib
  127. #CHMODTHE  =
  128. #CHMODMAN  =
  129. #########################################################################
  130. # MSC 6.0ax compiler on DOS
  131. #########################################################################
  132. #SRC       = c:/the
  133. #PROJ      = the.exe
  134. #OBJ       = obj
  135. #CC        = cl
  136. #CURSINC   = -Ic:/curses
  137. #CFLAGS    = -O -J -EM -AL -DSTDC_HEADERS -DPROTO -DNOREXX -I$(SRC) $(CURSINC)
  138. #LD        = link @dos-msc.rsp
  139. #XTRAOBJ   = getopt.obj
  140. #MAN       = manext.exe
  141. #MANLD     = link manext+getopt+c:\c600\lib\setargv,,,c:\c600\lib\Llibce /CO /NOE /NOI /NOD;
  142. #CHMODTHE  =
  143. #CHMODMAN  =
  144. #########################################################################
  145. # djgpp compiler on DOS - no REXX (should be complete with djgpp 1.11)
  146. #########################################################################
  147. #SRC       = c:/the
  148. #PROJ      = the
  149. #OBJ       = o
  150. #CC        = gcc
  151. #CURSINC   = -Ic:/curses
  152. #CURSLIB   = c:/djgpp/curses/curseso.a
  153. #REXXINC   =
  154. #REXXLIB   =
  155. #CFLAGS    = -O -D__MSDOS__ -DSTDC_HEADERS -DNOREXX -DPROTO -I$(SRC) $(CURSINC) -o$*.o
  156. #LD        = $(CC) -o $(PROJ) @dos-go32.rsp -Lc:/djgpp/lib $(CURSLIB)
  157. #XTRAOBJ   =
  158. #MAN       = manext
  159. #MANLD     = $(CC) -o manext manext.o -Lc:/djgpp/lib
  160. #CHMODTHE  = aout2exe $(PROJ)
  161. #CHMODMAN  = aout2exe $(MAN)
  162. #########################################################################
  163. # djgpp compiler on DOS with Regina 0.05i (should be complete with djgpp 1.11)
  164. #########################################################################
  165. #SRC       = c:/the
  166. #PROJ      = the
  167. #OBJ       = o
  168. #CC        = gcc
  169. #CURSINC   = -Ic:/curses
  170. #CURSLIB   = c:/djgpp/curses/curseso.a
  171. #REXXINC   = -If:/regina-d/src
  172. #REXXLIB   = -Lf:/regina-d/src -lrexx -lsaa -lrexx
  173. #CFLAGS    = -O -D__MSDOS__ -DSTDC_HEADERS -DUSE_REGINA -DPROTO -I$(SRC) $(CURSINC) $(REXXINC) -o$*.o
  174. #LD        = $(CC) -O -o $(PROJ) @dos-go32.rsp -Lc:/djgpp/lib $(CURSLIB) $(REXXLIB)
  175. #XTRAOBJ   =
  176. #MAN       = manext
  177. #MANLD     = $(CC) -o manext manext.o -Lc:/djgpp/lib
  178. #CHMODTHE  = aout2exe $(PROJ)
  179. #CHMODMAN  = aout2exe $(MAN)
  180. #########################################################################
  181. # MSC 6.0ax compiler on OS/2
  182. #########################################################################
  183. #SRC       = c:/the
  184. #PROJ      = the.exe
  185. #OBJ       = obj
  186. #CC        = cl
  187. #CURSINC   = -Ic:/curses
  188. #CFLAGS    = -O -J -EM -AL -D__OS2__ -DSTDC_HEADERS -DPROTO -DUSE_OS2_H -I$(SRC) $(CURSINC)
  189. #LD        = link @os2-msc.rsp
  190. #XTRAOBJ   = getopt.obj
  191. #MAN       = manext.exe
  192. #MANLD     = link manext+getopt+c:\c600\os2lib\setargv,,,c:\c600\os2lib\Llibce,msc-man.def /NOE /NOI /NOD;
  193. #CHMODTHE  =
  194. #CHMODMAN  =
  195. #########################################################################
  196. # C Set/2 compiler on OS/2
  197. #########################################################################
  198. #SRC       = c:/the
  199. #PROJ      = the.exe
  200. #OBJ       = obj
  201. #CC        = icc
  202. #CURSINC   = -Ic:/curses
  203. #CFLAGS    = -O -J+ -Sm -Q+ -DSTDC_HEADERS -DPROTO -DUSE_OS2REXX -I$(SRC) $(CURSINC)
  204. #LD        = link386 @os2-ibm.rsp
  205. #XTRAOBJ   = getopt.obj
  206. #MAN       = manext.exe
  207. #MANLD     = link386 manext+getopt+g:\ibmc\lib\setargv,,,,ibm-man.def /NOE /NOI /EXEPACK /ALIGN:4;
  208. #CHMODTHE  =
  209. #CHMODMAN  =
  210. #########################################################################
  211. # emx .08g compiler on OS/2
  212. #########################################################################
  213. #SRC       = c:/the
  214. #PROJ      = the
  215. #OBJ       = o
  216. #CC        = gcc
  217. #CURSINC   = -Ic:/curses
  218. #CURSLIB   = -Lf:/emx/curses -lcurso
  219. #CFLAGS    = -O -D__OS2__ -DUSE_OS2REXX -DNOVIO -DSTDC_HEADERS -DPROTO -I$(SRC) $(CURSINC) -o$*.o
  220. #LD        = $(CC) -o $(PROJ) $(OBJS) -Lf:/emx/lib -los2 -lc $(CURSLIB) $(SRC)/emx-the.def
  221. #XTRAOBJ   =
  222. #MAN       = manext
  223. #MANLD     = $(CC) -o manext manext.o -Lf:/emx/lib -los2 -lc $(SRC)/emx-man.def
  224. #CHMODTHE  = emxbind $(PROJ)
  225. #CHMODMAN  = emxbind $(MAN)
  226. #########################################################################
  227. # Borland C++ Compiler on OS/2
  228. #########################################################################
  229. #SRC       = c:/the
  230. #PROJ      = the.exe
  231. #OBJ       = obj
  232. #CC        = bcc
  233. #CURSINC   = -Ic:/curses
  234. #CFLAGS    = -O -d -K -w-aus -w-par -D__32BIT__ -DSTDC_HEADERS -DPROTO -DUSE_OS2REXX -I$(SRC) $(CURSINC)
  235. #LD        = tlink @os2-bcc.rsp
  236. #XTRAOBJ   = getopt.obj
  237. #MAN       = manext.exe
  238. #MANLD     = tlink manext+getopt+f:\ibmc\lib\setargv,,,,bcc-man.def /NOE /NOI /EXEPACK /ALIGN:4;
  239. #CHMODTHE  =
  240. #CHMODMAN  =
  241. #########################################################################
  242. # System V compiler on Sun
  243. #########################################################################
  244. #SRC       = .
  245. #PROJ      = the
  246. #OBJ       = o
  247. #CC        = /usr/5bin/cc
  248. #CFLAGS    = -O -DSUN -DSYSVR31 -I$(SRC)
  249. #LD        = $(CC) -o $(PROJ) $(OBJS) -lcurses
  250. #XTRAOBJ   =
  251. #MAN       = manext
  252. #MANLD     = $(CC) -o $(MAN) manext.o
  253. #CHMODTHE  = chmod 755 $(PROJ)
  254. #CHMODMAN  = chmod 755 $(MAN)
  255. #########################################################################
  256. # ANSI C compiler on Sun - acc (with Regina 0.05h or above)
  257. #########################################################################
  258. #SRC       = .
  259. #PROJ      = the
  260. #OBJ       = o
  261. #CC        = acc
  262. #CURSINC   = -I/usr/5include
  263. #CURSLIB   = -L/usr/5lib -lcurses
  264. #REXXINC   = -I.
  265. #REXXLIB   = -L. -lregina
  266. #CFLAGS    = -O -DUSE_REGINA -DSUN -DSYSVR31 -DPROTO $(CURSINC) $(REXXINC) -I$(SRC)
  267. #LD        = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB) 
  268. #XTRAOBJ   =
  269. #MAN       = manext
  270. #MANLD     = $(CC) -o $(MAN) manext.o
  271. #CHMODTHE  = chmod 755 $(PROJ)
  272. #CHMODMAN  = chmod 755 $(MAN)
  273. #########################################################################
  274. # ANSI C compiler on Sun - acc (no REXX)
  275. #########################################################################
  276. #SRC       = .
  277. #PROJ      = the
  278. #OBJ       = o
  279. #CC        = acc
  280. #CURSINC   = -I/usr/5include
  281. #CURSLIB   = -L/usr/5lib -lcurses
  282. #REXXINC   = 
  283. #REXXLIB   = 
  284. #CFLAGS    = -O -DNOREXX -DSUN -DSYSVR31 -DPROTO $(CURSINC) $(REXXINC) -I$(SRC)
  285. #LD        = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB) 
  286. #XTRAOBJ   =
  287. #MAN       = manext
  288. #MANLD     = $(CC) -o $(MAN) manext.o
  289. #CHMODTHE  = chmod 755 $(PROJ)
  290. #CHMODMAN  = chmod 755 $(MAN)
  291. #########################################################################
  292. # gcc compiler on Sun (with Regina 0.05h or above)
  293. #########################################################################
  294. #SRC       = .
  295. #PROJ      = the
  296. #OBJ       = o
  297. #CC        = gcc
  298. #CURSINC   = -I/usr/5include
  299. #CURSLIB   = -L/usr/5lib -lcurses
  300. #REXXINC   = -I.
  301. #REXXLIB   = -L. -lregina
  302. #CFLAGS    = -O -DUSE_REGINA -DSUN -DSYSVR31 -DPROTO -traditional -I$(SRC) $(CURSINC) $(REXXINC)
  303. #LD        = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXINC)
  304. #XTRAOBJ   =
  305. #MAN       = manext
  306. #MANLD     = $(CC) -o $(MAN) manext.o
  307. #CHMODTHE  = chmod 755 $(PROJ)
  308. #CHMODMAN  = chmod 755 $(MAN)
  309. #########################################################################
  310. # gcc compiler on Linux using PDCurses (experimental)
  311. #########################################################################
  312. #SRC       = .
  313. #PROJ      = the
  314. #OBJ       = o
  315. #CC        = gcc
  316. #CFLAGS    = -O -DSYSVR32 -DPROTO -I$(SRC) -I/home/mark/curses -I/home/mark/mytinfo
  317. #LD        = $(CC) -o $(PROJ) $(OBJS) /home/mark/mytinfo/libmytinfo.a /home/mark/curses/libpdcurses.a
  318. #XTRAOBJ   =
  319. #MAN       = manext
  320. #MANLD     = $(CC) -o $(MAN) manext.o
  321. #CHMODTHE  = chmod 755 $(PROJ)
  322. #CHMODMAN  = chmod 755 $(MAN)
  323. #########################################################################
  324. # gcc compiler using ncurses (no Regina)
  325. #########################################################################
  326. #SRC       = .
  327. #PROJ      = the
  328. #OBJ       = o
  329. #CC        = gcc
  330. #CFLAGS    = -O -DUSE_NCURSES -DNOREXX -DPROTO -I/usr/local/include -I$(SRC)
  331. #LD        = $(CC) -o $(PROJ) $(OBJS) -L/usr/local/lib -lncurses
  332. #XTRAOBJ   =
  333. #MAN       = manext
  334. #MANLD     = $(CC) -o $(MAN) manext.o
  335. #CHMODTHE  = chmod 755 $(PROJ)
  336. #CHMODMAN  = chmod 755 $(MAN)
  337. #########################################################################
  338. # System V compiler on System V R4 systems
  339. #########################################################################
  340. #SRC       = .
  341. #PROJ      = the
  342. #OBJ       = o
  343. #CC        = /bin/cc
  344. #CFLAGS    = -O -DSYSVR4 -DPROTO -DNOREXX -I$(SRC)
  345. #LD        = $(CC) -o $(PROJ) $(OBJS) -lcurses
  346. #XTRAOBJ   =
  347. #MAN       = manext
  348. #MANLD     = $(CC) -o $(MAN) manext.o
  349. #CHMODTHE  = chmod 755 $(PROJ)
  350. #CHMODMAN  = chmod 755 $(MAN)
  351. #########################################################################
  352. # System V compiler on System V R3.2 systems
  353. #########################################################################
  354. #SRC       = .
  355. #PROJ      = the
  356. #OBJ       = o
  357. #CC        = cc
  358. #CFLAGS    = -O -DSYSVR32 -DNOREXX -I$(SRC)
  359. #LD        = $(CC) -o $(PROJ) $(OBJS) -lcurses
  360. #XTRAOBJ   =
  361. #MAN       = manext
  362. #MANLD     = $(CC) -o $(MAN) manext.o
  363. #CHMODTHE  = chmod 755 $(PROJ)
  364. #CHMODMAN  = chmod 755 $(MAN)
  365. #########################################################################
  366. # System V compiler on System V R3.1 systems
  367. #########################################################################
  368. #SRC       = .
  369. #PROJ      = the
  370. #OBJ       = o
  371. #CC        = cc
  372. #CFLAGS    = -O -DSYSVR31 -DNOREXX -I$(SRC)
  373. #LD        = $(CC) -o $(PROJ) $(OBJS) -lcurses
  374. #XTRAOBJ   =
  375. #MAN       = manext
  376. #MANLD     = $(CC) -o $(MAN) manext.o
  377. #CHMODTHE  = chmod 755 $(PROJ)
  378. #CHMODMAN  = chmod 755 $(MAN)
  379. #########################################################################
  380. # System V compiler on System V R3 systems
  381. #########################################################################
  382. #SRC       = .
  383. #PROJ      = the
  384. #OBJ       = o
  385. #CC        = cc
  386. #CFLAGS    = -O -DSYSVR3 -DNOREXX -I$(SRC)
  387. #LD        = $(CC) -o $(PROJ) $(OBJS) -lcurses
  388. #XTRAOBJ   =
  389. #MAN       = manext
  390. #MANLD     = $(CC) -o $(MAN) manext.o
  391. #CHMODTHE  = chmod 755 $(PROJ)
  392. #CHMODMAN  = chmod 755 $(MAN)
  393. #########################################################################
  394. # System V compiler on System V systems eg AIX, HP-UX
  395. #########################################################################
  396. #SRC       = .
  397. #PROJ      = the
  398. #OBJ       = o
  399. #CC        = cc
  400. #CFLAGS    = -O -DSYSV -DNOREXX -I$(SRC)
  401. #LD        = $(CC) -o $(PROJ) $(OBJS) -lcurses
  402. #XTRAOBJ   =
  403. #MAN       = manext
  404. #MANLD     = $(CC) -o $(MAN) manext.o
  405. #CHMODTHE  = chmod 755 $(PROJ)
  406. #CHMODMAN  = chmod 755 $(MAN)
  407. #########################################################################
  408. # AIX System V compiler on AIX using extended curses (incomplete)
  409. #########################################################################
  410. #SRC       = .
  411. #PROJ      = the
  412. #OBJ       = o
  413. #CC        = cc
  414. #CFLAGS    = -g -DUSE_EXTCURSES -DNOREXX -I$(SRC)
  415. #LD        = $(CC) -o $(PROJ) $(OBJS) -lcurses
  416. #XTRAOBJ   = extcurs.o
  417. #MAN       = manext
  418. #MANLD     = $(CC) -o $(MAN) manext.o
  419. #CHMODTHE  = chmod 755 $(PROJ)
  420. #CHMODMAN  = chmod 755 $(MAN)
  421. #########################################################################
  422. # AIX System V compiler on AIX using REXX/6000
  423. #########################################################################
  424. #SRC       = .
  425. #PROJ      = the
  426. #OBJ       = o
  427. #CC        = cc
  428. #CURSINC   = 
  429. #CURSLIB   = -lcurses
  430. #REXXINC   = 
  431. #REXXLIB   = -lrexx
  432. #CFLAGS    = -g -DUSE_AIXREXX -I$(SRC) $(CURSINC) $(REXXINC)
  433. #LD        = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
  434. #XTRAOBJ   = 
  435. #MAN       = manext
  436. #MANLD     = $(CC) -o $(MAN) manext.o
  437. #CHMODTHE  = chmod 755 $(PROJ)
  438. #CHMODMAN  = chmod 755 $(MAN)
  439. #########################################################################
  440. # C compiler on BSD or BSDish systems eg. Linux, 386BSD (no REXX)
  441. #########################################################################
  442. #SRC       = .
  443. #PROJ      = the
  444. #OBJ       = o
  445. #CC        = cc
  446. #CURSINC   = 
  447. #CURSLIB   = -lcurses -ltermcap
  448. #REXXINC   = 
  449. #REXXLIB   = 
  450. #CFLAGS    = -O -DBSD -DNOREXX -I$(SRC) $(CURSINC) $(REXXINC)
  451. #LD        = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
  452. #XTRAOBJ   = bsd.o
  453. #MAN       = manext
  454. #MANLD     = $(CC) -o $(MAN) manext.o
  455. #CHMODTHE  = chmod 755 $(PROJ)
  456. #CHMODMAN  = chmod 755 $(MAN)
  457. #########################################################################
  458. # C compiler on BSD or BSDish systems eg. Linux, 386BSD (with REXX)
  459. #########################################################################
  460. #SRC       = .
  461. #PROJ      = the
  462. #OBJ       = o
  463. #CC        = cc
  464. #CURSINC   = 
  465. #CURSLIB   = -lcurses -ltermcap
  466. #REXXINC   = 
  467. #REXXLIB   = -L. -lregina
  468. #CFLAGS    = -O -DBSD -DUSE_REGINA -I$(SRC) $(CURSINC) $(REXXINC)
  469. #LD        = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
  470. #XTRAOBJ   = bsd.o
  471. #MAN       = manext
  472. #MANLD     = $(CC) -o $(MAN) manext.o
  473. #CHMODTHE  = chmod 755 $(PROJ)
  474. #CHMODMAN  = chmod 755 $(MAN)
  475. #########################################################################
  476. # C compiler under ATT System V R3.2
  477. #########################################################################
  478. #SRC       = .
  479. #PROJ      = the
  480. #OBJ       = o
  481. #CC        = cc
  482. #CFLAGS    = -O -DATT -DSYSVR32 -DNOREXX -DNO_RENAME -I$(SRC)
  483. #LD        = $(CC) -o $(PROJ) $(OBJS) -lcurses
  484. #XTRAOBJ   = 
  485. #MAN       = manext
  486. #MANLD     = $(CC) -o $(MAN) manext.o
  487. #CHMODTHE  = chmod 755 $(PROJ)
  488. #CHMODMAN  = chmod 755 $(MAN)
  489. #########################################################################
  490. # C compiler under SCO Xenix R2.3
  491. #########################################################################
  492. #SRC       = .
  493. #PROJ      = the
  494. #OBJ       = o
  495. #CC        = cc
  496. #CFLAGS    = -O -DNOREXX -DNO_RENAME -I$(SRC)
  497. #LD        = $(CC) -o $(PROJ) $(OBJS) -lcurses -lx
  498. #XTRAOBJ   = 
  499. #MAN       = manext
  500. #MANLD     = $(CC) -o $(MAN) manext.o
  501. #CHMODTHE  = chmod 755 $(PROJ)
  502. #CHMODMAN  = chmod 755 $(MAN)
  503. #########################################################################
  504. #
  505. #
  506. # Object files
  507. #
  508. OBJ1 = comm1.$(OBJ) comm2.$(OBJ) comm3.$(OBJ) comm4.$(OBJ) comm5.$(OBJ) \
  509.     commsos.$(OBJ) commset1.$(OBJ) commset2.$(OBJ) default.$(OBJ) edit.$(OBJ) error.$(OBJ) \
  510.     nonansi.$(OBJ) show.$(OBJ) the.$(OBJ) util.$(OBJ) prefix.$(OBJ) \
  511.     execute.$(OBJ) box.$(OBJ) sort.$(OBJ)
  512. OBJ2 = commutil.$(OBJ)
  513. OBJ3 = getch.$(OBJ)
  514. OBJ4 = query.$(OBJ)
  515. OBJ5 = fnmatch.$(OBJ)
  516. OBJ6 = directry.$(OBJ) file.$(OBJ)
  517. OBJ7 = rexx.$(OBJ)
  518. OBJ8 = quercus.$(OBJ)
  519. OBJX = $(XTRAOBJ)
  520. OBJS = $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5) $(OBJ6) $(OBJ7) $(OBJ8) $(OBJX)
  521.  
  522. COMM = $(SRC)/comm1.c $(SRC)/comm2.c $(SRC)/comm3.c $(SRC)/comm4.c $(SRC)/comm5.c \
  523.     $(SRC)/commsos.c $(SRC)/commset1.c $(SRC)/commset2.c $(SRC)/query.c
  524.  
  525. APPENDIX = $(SRC)/appendix.1
  526.  
  527. #
  528. #########################################################################
  529. $(PROJ):    $(OBJS)
  530.     $(LD)
  531.     $(CHMODTHE)
  532. #########################################################################
  533. %.$(OBJ):$(SRC)/%.c
  534.     $(CC) $(CFLAGS) -c $(SRC)/$*.c
  535. #########################################################################
  536. $(OBJ1):    $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  537. $(OBJ2):    $(SRC)/the.h $(SRC)/command.h $(SRC)/defines.h $(SRC)/proto.h $(SRC)/getch.h $(SRC)/key.h
  538. $(OBJ3):    $(SRC)/getch.h $(SRC)/defines.h $(SRC)/proto.h
  539. $(OBJ4):    $(SRC)/query.h $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  540. $(OBJ5):    $(SRC)/the.h $(SRC)/fnmatch.h
  541. $(OBJ6):    $(SRC)/the.h $(SRC)/directry.h $(SRC)/defines.h $(SRC)/proto.h
  542. $(OBJ7):    $(SRC)/the.h $(SRC)/rexx.h $(SRC)/proto.h $(SRC)/defines.h $(SRC)/query.h
  543. $(OBJ8):    $(SRC)/the.h $(SRC)/rexx.h $(SRC)/defines.h $(SRC)/regina.h
  544. #
  545. #########################################################################
  546. manual:    $(MAN) $(SRC)/overview $(COMM) $(APPENDIX)
  547.     manext $(SRC)/overview $(COMM) $(APPENDIX) > the.man
  548. #
  549. $(MAN):    $(XTRAOBJ) manext.$(OBJ)
  550.     $(MANLD)
  551.     $(CHMODMAN)
  552. #########################################################################
  553. zoosrc:
  554.     zoo a thesrc$(VER) COPYING readme.src readme.exc overview appendix.1 the.his
  555.     zoo a thesrc$(VER) the.c the.h comm*.c util.c bsd.c command.h default.c directry.c defines.h
  556.     zoo a thesrc$(VER) box.c execute.c trace.c prefix.c rexx.c quercus.c query.c sort.c
  557.     zoo a thesrc$(VER) directry.h edit.c error.c file.c fnmatch.c fnmatch.h getch.c extcurs.c
  558.     zoo a thesrc$(VER) getch.h getopt.c nonansi.c show.c vax.c key.h query.h rexx.h regina.h
  559.     zoo a thesrc$(VER) *.hlp *.rsp *.def makefile manext.c proto.h profile.the
  560.     zoo a thesrc$(VER) append.the comm.the uncomm.the total.the files.rcs
  561. #########################################################################
  562. zipsrc:
  563.     zip  thesrc$(VER) COPYING readme.src readme.exc overview appendix.1 the.his
  564.     zip  thesrc$(VER) the.c the.h comm*.c util.c bsd.c command.h default.c directry.c defines.h
  565.     zip  thesrc$(VER) box.c execute.c trace.c prefix.c rexx.c quercus.c query.c sort.c
  566.     zip  thesrc$(VER) directry.h edit.c error.c file.c fnmatch.c fnmatch.h getch.c extcurs.c
  567.     zip  thesrc$(VER) getch.h getopt.c nonansi.c show.c vax.c key.h query.h rexx.h regina.h
  568.     zip  thesrc$(VER) *.hlp *.rsp *.def makefile manext.c proto.h profile.the match.the
  569.     zip  thesrc$(VER) append.the comm.the uncomm.the total.the files.rcs
  570. #########################################################################
  571. tarsrc:
  572.     tar cvf thesrc$(VER).tar COPYING readme.src readme.exc overview appendix.1 the.his \
  573.     the.c the.h comm*.c util.c bsd.c command.h default.c directry.c defines.h \
  574.     directry.h edit.c error.c file.c fnmatch.c fnmatch.h getch.c extcurs.c   \
  575.     getch.h getopt.c nonansi.c show.c vax.c key.h query.h rexx.h regina.h \
  576.     box.c execute.c trace.c prefix.c rexx.c quercus.c query.c sort.c \
  577.     *.hlp *.rsp *.def makefile manext.c proto.h  \
  578.     profile.the append.the comm.the uncomm.the total.the match.the files.rcs
  579.     compress thesrc$(VER).tar
  580. #########################################################################
  581. zoodos:
  582.     +copy d:\tools\the.exe .
  583.     zoo a thedos$(VER).zoo COPYING readme.exc the.exe
  584.     zoo a thedos$(VER).zoo the.man the.his dos.hlp *.the
  585.     +del the.exe
  586. #########################################################################
  587. zipdos:
  588.     +copy d:\tools\the.exe .
  589.     zip  thedos$(VER).zip COPYING readme.exc the.exe
  590.     zip  thedos$(VER).zip the.man the.his dos.hlp *.the
  591.     +del the.exe
  592. #########################################################################
  593. zoogo32:
  594.     +copy c:\the\dos\go32\the.exe
  595.     +copy c:\djgpp\bin\go32.exe
  596.     zoo a thedjg$(VER).zoo COPYING readme.exc the.exe go32.exe
  597.     zoo a thedjg$(VER).zoo the.man the.his dos.hlp *.the
  598.     +del the.exe
  599.     +del go32.exe
  600. #########################################################################
  601. zipgo32:
  602.     +copy c:\the\dos\go32\the.exe
  603.     +copy c:\djgpp\bin\go32.exe
  604.     zip  thedjg$(VER).zip COPYING readme.exc the.exe go32.exe
  605.     zip  thedjg$(VER).zip the.man the.his dos.hlp *.the
  606.     +del the.exe
  607.     +del go32.exe
  608. #########################################################################
  609. zooos2:
  610.     +copy f:\usr\bin\the.exe .
  611.     zoo a theos2$(VER).zoo COPYING readme.exc the.exe
  612.     zoo a theos2$(VER).zoo the.man the.his os2.hlp *.the
  613.     +del the.exe
  614. #########################################################################
  615. zipos2:
  616.     +copy f:\usr\bin\the.exe .
  617.     zip  theos2$(VER).zip COPYING readme.exc the.exe
  618.     zip  theos2$(VER).zip the.man the.his os2.hlp *.the
  619.     +del the.exe
  620. #########################################################################
  621. zipexe:
  622.     +copy f:\usr\bin\the.exe theos2.exe
  623.     +copy d:\tools\the.exe thedos.exe
  624.     zip  theexe$(VER).zip COPYING readme.exc thedos.exe theos2.exe
  625.     zip  theexe$(VER).zip the.man the.his dos.hlp os2.hlp *.the
  626.     +del thedos.exe
  627.     +del theos2.exe
  628. #########################################################################
  629.