home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / v124xos2.zip / xfree86 / src / v / Config.mk next >
Text File  |  2000-03-09  |  10KB  |  325 lines

  1. #===============================================================
  2. # V Make Configuration file - Version 1.24 - 3/3/2000
  3. #
  4. # Copyright (C) 1995-2000  Bruce E. Wampler
  5. # date:
  6. #
  7. # THIS IS THE Config.mk FILE FOR THE X Athena VERSION OF V
  8. #
  9. # To build an X version, set the TOOLKIT variable to Athena
  10. # for the generic Athena version, or to Motif
  11. # for the Lesstif/Motif version. (See comment below)
  12. #
  13. # This file is part of the V C++ GUI Framework, and is covered
  14. # under the terms of the GNU Lesser General Public License,
  15. # Version 2.1. This library has NO WARRANTY. See the source file
  16. # vapp.cxx for more complete information about license terms.
  17. #===============================================================
  18.  
  19.  
  20. #---------------------------------------------------------------------
  21. # Version info
  22. #---------------------------------------------------------------------
  23. VV    =    1.24
  24. VVW    =    124
  25.  
  26.  
  27. #---------------------------------------------------------------------
  28. # HOMEV info
  29. #---------------------------------------------------------------------
  30. HOMEV    =    $(X11ROOT)/xfree86/src/v
  31. #HOMEV    =    ..
  32.  
  33.  
  34. #---------------------------------------------------------------------
  35. # Tools used in the makefile execution
  36. #---------------------------------------------------------------------
  37. CC    =    gcc
  38. CXX    =    gcc
  39.  
  40. #---------------------------------------------------------------------
  41. # VPATH for dependencies on header files
  42. #---------------------------------------------------------------------
  43. VPATH=$(HOMEV)/includex/v
  44.  
  45.  
  46. #---------------------------------------------------------------------
  47. # Select the architecture of your system.
  48. # These are the architectures that V has been extensively tested with:
  49. # linux, linuelf, sun4, mips, sgi
  50. #
  51. # User contributed definitions are available for:
  52. # hpux, aix, solaris, bsd
  53. #---------------------------------------------------------------------
  54. #ARCH    = linux
  55. #ARCH    = linuxelf
  56. #ARCH    = sun4
  57. #ARCH    = mips
  58. #ARCH    = sgi
  59. #ARCH    = hpux
  60. #ARCH    = aix
  61. #ARCH    = solaris
  62. #ARCH    = bsd
  63. ARCH    = xos2
  64.  
  65. Arch = $(ARCH)
  66.  
  67.  
  68. #---------------------------------------------------------------------
  69. # Select Athena or Motif TOOLKIT option.
  70. #---------------------------------------------------------------------
  71. TOOLKIT        =    Athena
  72. #TOOLKIT    =    Motif
  73.  
  74. #---------------------------------------------------------------------
  75. # Use this define for NO 3D on Athena Widgets
  76. # For Motif use NO 3D i.e. USE_3D=no.
  77. #---------------------------------------------------------------------
  78. ifeq ($(TOOLKIT),Motif)
  79. USE_3D = no
  80. else
  81. USE_3D = yes
  82. endif
  83.  
  84.  
  85. #---------------------------------------------------------------------
  86. # Select X11R-version
  87. #---------------------------------------------------------------------
  88. #X11RV    = X11R5
  89. X11RV    = X11R6
  90.  
  91. # where X11 files are
  92. Xdir11    = X11R6
  93. #Xdir11    = X11
  94.  
  95.  
  96. #---------------------------------------------------------------------
  97. # Select Debug or no Debug
  98. #---------------------------------------------------------------------
  99. #DEBUG    =    yes
  100. DEBUG    = no
  101.  
  102.  
  103. #---------------------------------------------------------------------
  104. # Select Develop or not - used for original development
  105. #---------------------------------------------------------------------
  106. #DEVEL    =    yes
  107. DEVEL    = no
  108.  
  109. #---------------------------------------------------------------------
  110. # Define filename extensions that are targeted by cleanup's
  111. #---------------------------------------------------------------------
  112. CLEANEXTS= *.bak *~ *.tmp core *.o *.obj
  113.  
  114.  
  115. #---------------------------------------------------------------------
  116. # Architecture dependent directory locations
  117. #---------------------------------------------------------------------
  118. VLibDir    =    $(X11ROOT)/XFREE86/lib
  119. ifeq ($(TOOLKIT),Motif)
  120. oDir    =    $(HOMEV)/objm
  121. endif
  122. ifeq ($(TOOLKIT),Athena)
  123. oDir    =    $(HOMEV)/objx
  124. endif
  125. LibDir    =    $(X11ROOT)/XFREE86/lib
  126. Bin    =    $(X11ROOT)/XFREE86/bin
  127.  
  128.  
  129. #---------------------------------------------------------------------
  130. # Architecture independent 
  131. #---------------------------------------------------------------------
  132. INCDIR    =    -I$(HOMEV)/includex
  133. LIBDIR    =    -L$(LibDir)
  134. ifeq ($(TOOLKIT),Athena)
  135.     LIBNAME    = Vx
  136.     V1NAME     = v1x
  137.     LIBS    = -lVx -lXaw
  138. endif
  139. ifeq ($(TOOLKIT),Motif)
  140.     LIBNAME    = V
  141.     V1NAME     = v1
  142.     LIBS    = -lV -lXm
  143. endif
  144.  
  145.  
  146. #---------------------------------------------------------------------
  147. # Linux
  148. #---------------------------------------------------------------------
  149. ifeq ($(Arch),linux)
  150. INCDIR    +=    -I/usr/$(X11RV)/include
  151. LIBDIR    +=    -L/usr/$(X11RV)/lib
  152. LIBS    +=    -lXmu -lXt -lXext -lX11
  153. TARZ    =    z
  154. RANLIB    =    ranlib
  155. VGPATH    =    LINUX
  156. endif
  157.  
  158.  
  159. #---------------------------------------------------------------------
  160. # Linux ELF shared library
  161. #---------------------------------------------------------------------
  162. ifeq ($(Arch),linuxelf)
  163. INCDIR    +=    -I/usr/$(X11RV)/include
  164. LIBDIR    +=    -L/usr/$(X11RV)/lib
  165. LIBS    +=    -lXmu -lXt -lXext -lX11
  166. TARZ    =    z
  167. RANLIB    =    ranlib
  168. VGPATH    =    LINUX
  169. endif
  170.  
  171.  
  172. #---------------------------------------------------------------------
  173. # Sun4 - unm
  174. #---------------------------------------------------------------------
  175. ifeq ($(TOOLKIT),Athena)
  176. ifeq ($(Arch),sun4)
  177. INCDIR    +=    -I/usr/local/X11/include
  178. LIBDIR    +=    -L/usr/local/X11/lib
  179. LIBS    +=    -lXaw -lXmu -lXt -lXext -lX11
  180. TARZ    =
  181. RANLIB    =    ranlib
  182. VGPATH    =    UNIX
  183. endif
  184. endif
  185.  
  186.  
  187. #----------------------------------------------------------------------
  188. # solaris - shared Motif/CDE libraries
  189. #----------------------------------------------------------------------
  190. ifeq ($(TOOLKIT),Motif)
  191. ifeq ($(Arch),solaris)
  192. INCDIR  +=      -I/usr/openwin/include -I/usr/dt/share/include -I$(HOMEV)/includex
  193. LIBDIR  +=      -R/usr/dt/lib:/usr/openwin/lib -L/usr/dt/lib
  194. LIBS    +=      -lXmu -lXt -lXext -lX11 -lnsl -lsocket
  195. TARZ    =
  196. RANLIB  =       true
  197. VGPATH  =       UNIX
  198. endif
  199. endif
  200.  
  201. #---------------------------------------------------------------------
  202. # mips - unm
  203. #---------------------------------------------------------------------
  204. ifeq ($(Arch),mips)
  205. INCDIR    +=    -I/usr/local/X11/include
  206. LIBDIR    +=    -L/usr/local/X11/lib
  207. LIBS    +=    -lXaw -lXmu -lXt -lXext -lX11
  208. TARZ    =
  209. RANLIB    =    ranlib
  210. VGPATH    =    UNIX
  211. endif
  212.  
  213. #---------------------------------------------------------------------
  214. # sgi
  215. #    - the native compiler on IRIX 5.3 complains ad nauseam
  216. #         about parameters that are declared but not referenced
  217. #         in virtual functions; the -woff turns that warning off
  218. #---------------------------------------------------------------------
  219. ifeq ($(Arch),sgi)
  220. INCDIR    +=    -I/usr/include
  221. LIBDIR    +=    -L/usr/lib
  222. LIBS    +=    -lXmu -lXt -lXext -lX11 -lm
  223. TARZ    =
  224. RANLIB    =    true
  225. VGPATH    =    UNIX
  226. ifneq ($(CXX),g++)
  227.     CFLAGS += -woff 3262
  228. endif
  229. endif
  230.  
  231. #---------------------------------------------------------------------
  232. # hpux:
  233. #     - /usr/include is included explicitly because on HP-UX 10.20
  234. #      mixing of GNU supplied and system supplied includes leads to
  235. #      problems
  236. #       - X11 is available either in /usr/contrib or /usr/local
  237. #         listing both can not hurt 
  238. #----------------------------------------------------------------------
  239. ifeq ($(Arch),hpux)
  240. INCDIR    +=    -I/usr/include -I/usr/include/$(X11RV) \
  241.         -I/usr/contrib/$(X11RV)/include \
  242.         -I/usr/local/$(X11RV)/include
  243. LIBDIR    +=    -L/usr/lib/$(X11RV) -L/usr/contrib/$(X11RV)/lib \
  244.         -L/usr/local/$(X11RV)/lib
  245. LIBS    +=    -lXmu -lXt -lSM -lICE -lXext -lX11
  246. TARZ    =
  247. RANLIB    =       true
  248. VGPATH    =    UNIX
  249. endif
  250.  
  251. #----------------------------------------------------------------------
  252. # solaris - unm
  253. #----------------------------------------------------------------------
  254. # Note: For Solaris CC Workshop comiplers and OpenWindows linking:
  255. #LIBDIR += -L/usr/openwin/lib -R/usr/openwin/lib
  256. ifeq ($(Arch),solaris)
  257. INCDIR    +=    -I/usr/local/X11/include -I$(HOMEV)/includex
  258. LIBDIR    +=    -L/usr/local/X11/lib
  259. LIBS    +=    -lXmu -lXt -lXext -lX11 -lnsl -lsocket
  260. TARZ    =
  261. RANLIB    =    true
  262. VGPATH    =    UNIX
  263. endif
  264.  
  265.  
  266. #----------------------------------------------------------------------
  267. # FreeBSD with gcc
  268. #----------------------------------------------------------------------
  269. ifeq ($(Arch),bsd)
  270. INCDIR  +=       -I/usr/$(X11RV)/include
  271. LIBDIR  +=       -L/usr/$(X11RV)/lib
  272. LIBS    +=       -lV -lXmu -lXt -lXext -lX11 -lxm
  273. TARZ    =
  274. RANLIB  =       ranlib
  275. VGPATH    =    UNIX
  276. endif
  277.  
  278.  
  279.  
  280. #----------------------------------------------------------------------
  281. # XFree86 under OS/2
  282. #----------------------------------------------------------------------
  283. ifeq ($(Arch),xos2)
  284. INCDIR  +=       -I$(X11ROOT)/XFree86/include
  285. LIBDIR  +=       -L$(X11ROOT)/XFree86/lib
  286. LIBS    +=       -lXmu -lXt -lXext -lX11 -lstdcpp -lsocket
  287. TARZ    =
  288. RANLIB  =       ar s
  289. VGPATH  =       UNIX
  290. endif
  291.  
  292.  
  293.  
  294.  
  295.  
  296. #---------------------------------------------------------------------
  297. # C/C++ compile options
  298. #---------------------------------------------------------------------
  299. #CFLAGS += -v $(INCDIR)
  300. CFLAGS  += $(INCDIR)
  301. ifeq ($(DEBUG),no)
  302. CFLAGS  +=      -O2 -Dxos2 -fno-strength-reduce -D__ST_MT_ERRNO__ -Zmtd -Zsysv-signals
  303. endif
  304. ifeq ($(DEBUG),yes)
  305. CFLAGS  +=      -g -Dxos2 -fno-strength-reduce -D__ST_MT_ERRNO__ -Zmtd -Zsysv-signals
  306. endif
  307. ifeq ($(TOOLKIT),Motif)
  308. CFLAGS  +=      -DMotif
  309. endif
  310. ifeq ($(TOOLKIT),Athena)
  311. CFLAGS    +=    -DAthena
  312. endif
  313. ifeq ($(Arch),sgi)
  314. endif
  315.  
  316.  
  317.  
  318.  
  319.  
  320. #---------------------------------------------------------------------
  321. # LINK/LOAD options
  322. #---------------------------------------------------------------------
  323. LDFLAGS    =    $(LIBDIR) $(LIBS)  -Zmtd -Zexe
  324.  
  325.