Package.pp 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. //
  2. // Package.pp
  3. //
  4. // This file defines certain configuration variables that are to be
  5. // written into the various make scripts. It is processed by ppremake
  6. // (along with the Sources.pp files in each of the various
  7. // directories) to generate build scripts appropriate to each
  8. // environment.
  9. //
  10. // This is the package-specific file, which should be at the top of
  11. // every source hierarchy. It generally gets the ball rolling, and is
  12. // responsible for explicitly including all of the relevent Config.pp
  13. // files.
  14. // What is the name and version of this source tree?
  15. #if $[eq $[PACKAGE],]
  16. #define PACKAGE dmodels
  17. #define VERSION 0.80
  18. #endif
  19. // Where should we find the DIRECT source directory?
  20. #if $[or $[CTPROJS],$[DIRECT]]
  21. // If we are presently attached, use the environment variable.
  22. #define DIRECT_SOURCE $[DIRECT]
  23. #if $[eq $[DIRECT],]
  24. #error You seem to be attached to some trees, but not DIRECT!
  25. #endif
  26. #else
  27. // Otherwise, if we are not attached, we guess that the source is a
  28. // sibling directory to this source root.
  29. #define DIRECT_SOURCE $[standardize $[TOPDIR]/../direct]
  30. #endif
  31. // Where should we install DMODELS?
  32. #if $[DMODELS_INSTALL]
  33. #define DMODELS_INSTALL $[DMODELS_INSTALL]
  34. #define DMODELS_INSTALL_OTHER $[DMODELS_INSTALL]
  35. #elif $[or $[CTPROJS],$[DMODELS]]
  36. #define DMODELS_INSTALL $[DMODELS]
  37. #define DMODELS_INSTALL_OTHER $(DMODELS)
  38. #if $[eq $[DMODELS],]
  39. #error You seem to be attached to some trees, but not DMODELS!
  40. #endif
  41. #else
  42. #defer DMODELS_INSTALL $[INSTALL_DIR]
  43. #defer DMODELS_INSTALL_OTHER $[INSTALL_DIR]
  44. #endif
  45. // Define the inter-tree dependencies.
  46. #define NEEDS_TREES $[NEEDS_TREES] direct
  47. // Also get the DIRECT Package file and everything that includes.
  48. #if $[not $[isfile $[DIRECT_SOURCE]/Package.pp]]
  49. #printvar DIRECT_SOURCE
  50. #error DIRECT source directory not found from dmodels! Are you attached properly?
  51. #endif
  52. #include $[DIRECT_SOURCE]/Package.pp
  53. // Define some global variables for this tree.
  54. #define FLT2EGG_OPTS -no -uo ft