home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / cool / cool.lha / ice / pisces / config / imake.imk < prev    next >
Encoding:
Text File  |  1991-09-04  |  15.5 KB  |  558 lines

  1. /*****************************************************************************
  2. //
  3. // Copyright (C) 1991 Texas Instruments Incorporated.
  4. //
  5. // Permission is granted to any individual or institution to use, copy, modify,
  6. // and distribute this software, provided that this complete copyright and
  7. // permission notice is maintained, intact, in all copies and supporting
  8. // documentation.
  9. //
  10. // Texas Instruments Incorporated provides this software "as is" without
  11. // express or implied warranty.
  12. //
  13.  *****************************************************************************
  14.  *
  15.  *    Author: Martin Neath
  16.  *    Filename: imake.mk
  17.  *    Module: build/config
  18.  *    Purpose: PISCES Imake template file
  19.  *      Related Files: site.def, project.imk, imake.rul
  20.  *
  21.  *    Creation Date: 05/10/90
  22.  *    Changed by\Date\Reason:
  23.  *
  24.  *****************************************************************************/
  25.  
  26. #define    YES    1
  27. #define NO    0
  28.  
  29. #ifdef mips
  30. #define MacroIncludeFile <mips.cf>
  31. #define MacroFile mips.cf
  32. #define MACH mips
  33. #undef mips
  34. #else
  35. #ifdef sparc
  36. #define MacroIncludeFile <sparc.cf>
  37. #define MacroFile sparc.cf
  38. #define MACH sparc
  39. #undef sparc
  40. #else
  41. #ifdef vms
  42. #define MacroIncludeFile <vms.cf>
  43. #define MacroFile vms.cf
  44. #define MACH vms
  45. #undef vms
  46. #else
  47. #ifdef os2
  48. #define MacroIncludeFile <os2.cf>
  49. #define MacroFile os2.cf
  50. #define MACH os2
  51. #undef os2
  52. #else
  53. #ifdef sco386
  54. #define MacroIncludeFile <sco386.cf>
  55. #define MacroFile sco386.cf
  56. #define MACH sco386
  57. #undef sco386
  58. #endif 
  59. #endif 
  60. #endif 
  61. #endif 
  62. #endif 
  63.  
  64. /*****************************************************************************
  65.  *                                                                           *
  66.  *                       DO NOT MODIFY BELOW THIS LINE                       *
  67.  *                                                                           *
  68.  *****************************************************************************/
  69. #include "copyrite.imk"
  70.  
  71. @#############################################################################
  72. @#
  73. @# ----> *** MAKEFILE GENERATED BY PISCES -- DO NOT EDIT THIS FILE *** <----
  74. @#
  75. @#############################################################################
  76.  
  77. @#############################################################################
  78. @# Platform-specific configuration parameters -- edit config file to change
  79. @#############################################################################
  80. #include MacroIncludeFile
  81.  
  82. #ifndef SystemV
  83. #ifdef SYSV
  84. #define SystemV            YES    /* need system 5 style */
  85. #else
  86. #define SystemV            NO    /* bsd */
  87. #endif
  88. #endif
  89.  
  90. #ifndef HasVoidSignalReturn
  91. #if SystemV
  92. #define HasVoidSignalReturn    YES
  93. #else
  94. #define HasVoidSignalReturn    NO    /* may or may not be true */
  95. #endif
  96. #endif
  97.  
  98. #ifndef FilesToClean
  99. #define FilesToClean *.CKP *.ln *.BAK *.bak core *..c errs #* *~*
  100. #endif
  101.  
  102. #ifndef StartPathChar
  103. #define StartPathChar
  104. #endif
  105. #ifndef SeparatorChar
  106. #define SeparatorChar /
  107. #endif
  108. #ifndef EndPathChar
  109. #define EndPathChar 
  110. #endif
  111. #ifndef Top
  112. #define Top TOPDIR
  113. #endif
  114. #ifndef CurrentDirectory
  115. #define CurrentDirectory .
  116. #endif
  117. #ifndef ParentDirectory
  118. #define ParentDirectory ..
  119. #endif
  120. #ifndef Machine
  121. #define Machine MACH
  122. #endif
  123. #ifndef Shell
  124. #define Shell /bin/sh
  125. #endif
  126. #ifndef ArCmd
  127. #define ArCmd ar
  128. #endif
  129. #ifndef EchoCmd
  130. #define EchoCmd echo
  131. #endif
  132. #ifndef CplusCmd
  133. #define CplusCmd CC
  134. #endif
  135. #ifndef CcCmd
  136. #define CcCmd cc
  137. #endif
  138. #ifndef CdCmd
  139. #define CdCmd cd
  140. #endif
  141. #ifndef MkdirCmd
  142. #define MkdirCmd mkdir
  143. #endif
  144. #ifndef LnCmd
  145. #define LnCmd ln
  146. #endif
  147. #ifndef MvCmd
  148. #define MvCmd mv
  149. #endif
  150. #ifndef CpCmd
  151. #define CpCmd cp
  152. #endif
  153. #ifndef AttribCmd
  154. #define AttribCmd chmod
  155. #endif
  156. #ifndef ReadBits
  157. #define ReadBits +r
  158. #endif
  159. #ifndef WriteBits
  160. #define WriteBits +w
  161. #endif
  162. #ifndef ExecBits
  163. #define ExecBits +x
  164. #endif
  165. #ifndef ConCatCmd
  166. #define ConCatCmd cat
  167. #endif
  168. #ifndef RmCmd
  169. #define RmCmd rm -f
  170. #endif
  171. #ifndef MakeCmd
  172. #define MakeCmd make
  173. #endif
  174. #ifndef LoopCmd
  175. #define LoopCmd
  176. #endif
  177. #ifndef StopLabel
  178. #define StopLabel
  179. #endif
  180. #ifndef YaccCmd
  181. #define YaccCmd byacc
  182. #endif
  183. #ifndef LexCmd
  184. #define LexCmd flex
  185. #endif
  186. #ifndef RanlibCmd
  187. #define RanlibCmd ranlib
  188. #endif
  189. #ifndef InstallCmd
  190. #define InstallCmd install
  191. #endif
  192. #ifndef SearchCmd
  193. #define SearchCmd grep
  194. #endif
  195. #ifndef CaseInsensitive
  196. #define CaseInsensitive -i
  197. #endif
  198. #ifndef RCSOutCmd
  199. #define RCSOutCmd co -f
  200. #endif
  201. #ifndef RCSOutWithLockCmd
  202. #define RCSOutWithLockCmd co -l
  203. #endif
  204. #ifndef RCSInCmd
  205. #define RCSInCmd ci
  206. #endif
  207. #ifndef ForceInWithRevupMsg
  208. #define ForceInWithRevupMsg ci -f -u$(NEXT) -m"Revup by PISCES"
  209. #endif
  210. #ifndef IncludeFlag
  211. #define IncludeFlag -I
  212. #endif
  213. #ifndef DefineFlag
  214. #define DefineFlag -D
  215. #endif
  216. #ifndef SmallMemoryModel
  217. #define SmallMemoryModel
  218. #endif
  219. #ifndef MediumMemoryModel
  220. #define MediumMemoryModel
  221. #endif
  222. #ifndef LargeMemoryModel
  223. #define LargeMemoryModel
  224. #endif
  225. #ifndef CompactMemoryModel
  226. #define CompactMemoryModel
  227. #endif
  228. #ifndef HugeMemoryModel
  229. #define HugeMemoryModel
  230. #endif
  231. #ifndef PathSepFlag
  232. #define PathSepFlag -P
  233. #endif
  234. #ifndef RCSDependFlag
  235. #define RCSDependFlag -R
  236. #endif
  237. #ifndef HeaderLinkFlag
  238. #define HeaderLinkFlag -L
  239. #endif
  240. #ifndef NoLinkFlag
  241. #define NoLinkFlag -c
  242. #endif
  243. #ifndef ConCatRedirect
  244. #define ConCatRedirect >
  245. #endif
  246. #ifndef InputRedirect
  247. #define InputRedirect <
  248. #endif
  249. #ifndef OutputRedirect
  250. #define OutputRedirect >
  251. #endif
  252. #ifndef ErrorOutputRedirect
  253. #define ErrorOutputRedirect 2>&1
  254. #endif
  255. #ifndef ProgramNameFlag
  256. #define ProgramNameFlag -o
  257. #endif
  258. #ifndef ArchiveReplaceFlag
  259. #define ArchiveReplaceFlag r
  260. #endif
  261. #ifndef ArchiveDeleteFlag
  262. #define ArchiveDeleteFlag d
  263. #endif
  264. #ifndef ArchiveAddFlag
  265. #define ArchiveAddFlag r
  266. #endif
  267. #ifndef ArchivePrefix
  268. #define ArchivePrefix lib
  269. #endif
  270. #ifndef ArchiveSuffix
  271. #define ArchiveSuffix .a
  272. #endif
  273. #ifndef ExecutableSuffix
  274. #define ExecutableSuffix 
  275. #endif
  276. #ifndef ObjectSuffix
  277. #define ObjectSuffix o
  278. #endif
  279. #ifndef CSuffix
  280. #define CSuffix c
  281. #endif
  282. #ifndef CPlusSuffix
  283. #define CPlusSuffix C
  284. #endif
  285. #ifndef IntermediateCSuffix
  286. #define IntermediateCSuffix .c
  287. #endif
  288. #ifndef LibraryDirFlag
  289. #define LibraryDirFlag -L
  290. #endif
  291. #ifndef LibraryFlag
  292. #define LibraryFlag -l
  293. #endif
  294. #ifndef ImakeCmd
  295. #define ImakeCmd pimake
  296. #endif
  297. #ifndef DependCmd
  298. #define DependCmd mkdepend
  299. #endif
  300. #ifndef InstPgmFlags
  301. #define InstPgmFlags -c -s
  302. #endif
  303. #ifndef InstBinFlags
  304. #define InstBinFlags -c -m 0755
  305. #endif
  306. #ifndef InstLibFlags
  307. #define InstLibFlags -c -m 0664
  308. #endif
  309. #ifndef InstIncFlags
  310. #define InstIncFlags -c -m 0444
  311. #endif
  312. #ifndef YaccFlags
  313. #define YaccFlags -d
  314. #endif
  315. #ifndef LexFlags
  316. #define LexFlags -c
  317. #endif
  318. #ifndef TestRunSuffix
  319. #define TestRunSuffix\
  320. .out
  321. #endif
  322. #ifndef RCSSuffix
  323. #define RCSSuffix\
  324. ,v
  325. #endif
  326. #ifndef ClearSuffixList
  327. #define ClearSuffixList().SUFFIXES : 
  328. #endif
  329. #ifndef SuffixList
  330. #define SuffixList().SUFFIXES : .a  .$(OBJ)  .c  .$(CXX)  .y  .l
  331. #endif
  332. #ifndef DirName
  333. #ifdef VMS
  334. #define DirName(name)\
  335. $(START)##name##$(END)
  336. #else
  337. #define DirName(name)\
  338. name
  339. #endif
  340. #endif
  341. #ifndef PrefixDirName
  342. #ifdef VMS
  343. #define PrefixDirName(name)\
  344. $(START)##name##$(END)
  345. #else
  346. #define PrefixDirName(name)\
  347. name##$(PATHSEP)
  348. #endif
  349. #endif
  350. #ifndef QuoteChar
  351. #ifdef VMS
  352. #define QuoteChar ""
  353. #else
  354. #define QuoteChar @!
  355. #endif
  356. #endif
  357. #ifndef YaccSourceCode
  358. #define YaccSourceCode
  359. #endif
  360. #ifndef LexSourceCode
  361. #define LexSourceCode
  362. #endif
  363. #ifndef YaccGeneratedProgram
  364. #define YaccGeneratedProgram
  365. #endif
  366. #ifndef LexGeneratedProgram
  367. #define LexGeneratedProgram
  368. #endif
  369. #ifndef SystemSpecificProgram 
  370. #define SystemSpecificProgram @# NO SYSTEM-SPECIFIC FINALIZE OPERATION for 
  371. #endif
  372. #ifndef SystemSpecificFinalize
  373. #define SystemSpecificFinalize(program)
  374. #endif
  375.  
  376. START        = StartPathChar        /* path start character             */
  377. PATHSEP      = SeparatorChar        /* for building filenames           */
  378. END          = EndPathChar          /* path end character               */
  379. CURDIR       = CurrentDirectory     /* name for current directory       */
  380. PARDIR       = ParentDirectory      /* name for parent directory        */
  381. SHELL        = Shell                /* shell type                       */
  382. AR           = ArCmd                /* library archive command          */
  383. CPLUS        = CplusCmd             /* C++ compiler                     */
  384. CC           = CcCmd                /* C compiler                       */
  385. CD           = CdCmd                /* change directory command         */
  386. MKDIR        = MkdirCmd             /* make directory command           */
  387. LN           = LnCmd                /* link file command                */
  388. MV           = MvCmd                /* move file command                */
  389. CP           = CpCmd                /* copy file command                */
  390. ATTRIB       = AttribCmd            /* modify file attributes command   */
  391. READBIT      = ReadBits             /* enable read permission for file  */
  392. WRITEBIT     = WriteBits            /* enable write permission for file */
  393. EXECBIT      = ExecBits             /* enable write permission for file */
  394. CONCAT       = ConCatCmd            /* concatentation command           */
  395. ECHO         = EchoCmd              /* echo to standard output command  */
  396. LOOP         = LoopCmd              /* loop command for recursive makes */
  397. STOP         = StopLabel            /* loop command terminator          */
  398. RM           = RmCmd                /* delete file command              */
  399. GET          = RCSOutCmd            /* RCS checkout (no lock) command   */
  400. LOCK         = RCSOutWithLockCmd    /* RCS checkout (locked) command    */
  401. PUT          = RCSInCmd             /* RCS checkin (no lock) command    */
  402. REVUP        = ForceInWithRevupMsg  /* RCS checkin with message/checkout*/
  403. MAKE         = MakeCmd              /* make command                     */
  404. LEX          = LexCmd               /* lex command                      */
  405. YACC         = YaccCmd              /* yacc command                     */
  406. PIMAKE       = ImakeCmd             /* imake program                    */
  407. DEPEND       = DependCmd            /* make depened program             */
  408. RANLIB       = RanlibCmd            /* cleanup/generate TOC for library */
  409. SEARCH       = SearchCmd            /* search string command            */
  410. NOCASE       = CaseInsensitive      /* ignore case flag for search cmd  */
  411. INSTALL      = InstallCmd           /* installation program             */
  412. INSTPGMFLAGS = InstPgmFlags         /* install program flags            */
  413. INSTBINFLAGS = InstBinFlags         /* install binaries flags           */
  414. INSTLIBFLAGS = InstLibFlags         /* install libraries flags          */
  415. INSTINCFLAGS = InstIncFlags         /* install include files flags      */
  416. IFLAG        = IncludeFlag          /* include flag for c compiler      */
  417. DFLAG        = DefineFlag           /* define flag for c compiler       */
  418. PFLAG        = PathSepFlag          /* path separator flag for mkdepend */
  419. RCSDEP       = RCSDependFlag        /* generate dependency to RCS file  */
  420. LINKDEP      = HeaderLinkFlag       /* generate dependency to link hdrs */
  421. CONCATOP     = ConCatRedirect       /* file concatentation operator     */
  422. INPUT        = InputRedirect        /* redirect standard input          */
  423. OUTPUT       = OutputRedirect       /* redirect standard output         */
  424. ERROR        = ErrorOutputRedirect  /* redirect standard error          */
  425. NOLINK       = NoLinkFlag           /* instruct compiler not to link    */
  426. PROGNAME     = ProgramNameFlag      /* program name flag for compiler   */
  427. UPDATE       = ArchiveReplaceFlag   /* replace flag for library command */
  428. DELETE       = ArchiveDeleteFlag    /* delete flag for library command  */
  429. ADD          = ArchiveAddFlag       /* add flag for library command     */
  430. YACCFLAGS    = YaccFlags            /* flags for byacc                  */
  431. LEXFLAGS     = LexFlags             /* flags for flex                   */
  432. LIBSFLAG     = LibraryFlag        /* Library flag to compiler         */
  433. LDIRFLAG     = LibraryDirFlag        /* Library path flag for linker     */
  434. RCSEXT       = RCSSuffix            /* suffix appended for RCS files    */
  435. TESTRUN      = TestRunSuffix        /* suffix appended for test files   */
  436. LIBPRE       = ArchivePrefix        /* prefix characters to library name*/
  437. LIBSUF       = ArchiveSuffix        /* suffix characters to library name*/
  438. C            = CSuffix              /* suffix characters for C++ file   */
  439. CXX          = CPlusSuffix          /* suffix characters for C++ file   */
  440. CII          = IntermediateCSuffix  /* suffix characters for C++ file   */
  441. OBJ          = ObjectSuffix         /* suffix characters for object file*/
  442. EXE          = ExecutableSuffix     /* suffix characters for executable */
  443. YACCSRC      = YaccSourceCode       /* default (empty) yacc source code */
  444. LEXSRC       = LexSourceCode        /* default (empty) lex source code  */
  445. YACCPRG      = YaccGeneratedProgram /* yacc-generated source file       */
  446. LEXPRG       = LexGeneratedProgram  /* lex -geneated source code        */
  447. QUOTE        = QuoteChar        /* escaped double quote character   */
  448. SMALL        = SmallMemoryModel     /* small memory model (OS/2)        */
  449. MEDIUM       = MediumMemoryModel    /* medium memory model (OS/2)       */
  450. LARGE        = LargeMemoryModel     /* large memory model (OS/2)        */
  451. COMPACT      = CompactMemoryModel   /* compact memory model (OS/2)      */
  452. HUGE         = HugeMemoryModel      /* huge memory model (OS/2)         */
  453. SYS_SPEC     = SystemSpecificProgram /* system-specific finalize operation*/
  454.  
  455. @#############################################################################
  456. @# Site-specific configuration parameters -- edit "site.imk" file to change
  457. @#############################################################################
  458.  
  459. #include "site.imk"
  460.  
  461.  
  462. @#############################################################################
  463. @# Project-specific configuration parameters -- edit "project.imk" to change
  464. @#############################################################################
  465.  
  466. #include "project.imk"
  467.  
  468. #include "rules.imk"
  469.  
  470. @#############################################################################
  471. @# Start of PISCES-generated "makefile" commands -- edit Imakefile to change
  472. @#############################################################################
  473. #include INCLUDE_IMAKEFILE
  474.  
  475. @#############################################################################
  476. @# Common rules/actions for all Makefiles -- edit "imake.imk" file to change
  477. @#############################################################################
  478. /*
  479.  * These need to be here so that rules in Imakefile occur first;  the blank
  480.  * all is to make sure that an empty Imakefile doesn't default to make clean.
  481.  */
  482. all ::
  483.  
  484. includes ::
  485.  
  486. install ::
  487.  
  488. checkout ::
  489.  
  490. forcecheckout ::
  491.  
  492. revup ::
  493.  
  494. bootstrap ::
  495.  
  496. unittest ::
  497.  
  498. runtest ::
  499.  
  500. clean ::
  501.  
  502. localclean ::
  503.  
  504. fast ::
  505.  
  506. sys_spec ::
  507.  
  508. makelib ::
  509.  
  510. Clobber()
  511.  
  512. MakefileT()
  513.  
  514. #ifdef IHaveSubdirs
  515. @#############################################################################
  516. @# Rules for working with subdirectories -- edit "imake.imk" file to change
  517. @#############################################################################
  518.  
  519. SubdirsRule()
  520. AllSubdirs()
  521. IncludeSubdirs()
  522. CheckoutSubdirs()
  523. ForceCheckoutSubdirs()
  524. InstallSubdirs()
  525. RevupSubdirs()
  526. BootstrapSubdirs()
  527. RunTestSubdirs()
  528. CleanSubdirs()
  529. FastSubdirs()
  530. ClobberSubdirs()
  531. MakefileSubdirs()
  532. DependSubdirs()
  533. ImakeOnlySubdirs()
  534. LibSubdirs()
  535. ResultsSubdirs()
  536.  
  537. #ifdef TopLevelImakeFile
  538. TopLevelBootStrap()
  539. #endif
  540.  
  541. #else
  542. @#############################################################################
  543. @# Empty rules for directories that do not have subdirectories - do not edit
  544. @#############################################################################
  545.  
  546. makefiles ::
  547.  
  548. results ::
  549.  
  550. depends :: depend
  551.  
  552. #endif
  553.  
  554. @#############################################################################
  555. @# Source file dependencies automatically generated by mkdepend appear below
  556. @#############################################################################
  557.  
  558.