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
|
#===============================================================
# V Make Configuration file - Version 1.17 - 1/25/98
#
# Copyright (C) 1995,1996 Bruce E. Wampler
#
# This file is part of the V C++ GUI Framework, and is covered
# under the terms of the GNU Library General Public License,
# Version 2. This library has NO WARRANTY. See the source file
# vapp.cxx for more complete information about license terms.
#===============================================================
#---------------------------------------------------------------------
# Version info
#---------------------------------------------------------------------
VV = 1.17
VVW = 117
#---------------------------------------------------------------------
# HOMEV info
#---------------------------------------------------------------------
HOMEV = $(SRCDIR)
#---------------------------------------------------------------------
# Tools used in the makefile execution
#---------------------------------------------------------------------
CC = gcc
CXX = g++
#---------------------------------------------------------------------
# VPATH for dependencies on header files
#---------------------------------------------------------------------
VPATH=$(HOMEV)/includex/v
#---------------------------------------------------------------------
# Select the architecture of your system.
# These are the architectures that V has been extensively tested with:
# linujx, linuelf, sun4, mips, sgi
# For I486 or i586 choose: intel.
# User contributed definitions are available for:
# hpux, aix, solaris, bsd
#---------------------------------------------------------------------
ARCH = linux
#ARCH = linuxelf
#ARCH = sun4
#ARCH = mips
#ARCH = sgi
#ARCH = hpux
#ARCH = aix
#ARCH = solaris
#ARCH = bsd
Arch = $(ARCH)
#---------------------------------------------------------------------
# Select Athena or Motif TOOLKIT option.
# NOTE: The Motif version is NOT complete!!! It really doesn't
# work yet! However, there are some ifeqs in this makefile
# for compiling Motif. You can try them, but the result does NOT work!
#---------------------------------------------------------------------
#TOOLKIT = Motif
TOOLKIT = Athena
#---------------------------------------------------------------------
# Use this define for NO 3D on Athena Widgets
# For Motif use NO 3D i.e. USE_3D=no.
#---------------------------------------------------------------------
ifeq ($(TOOLKIT),Motif)
USE_3D = no
else
USE_3D = yes
endif
#---------------------------------------------------------------------
# Select X11R-version
#---------------------------------------------------------------------
#X11RV = X11R5
X11RV = X11R6
#---------------------------------------------------------------------
# Select Debug or no Debug
#---------------------------------------------------------------------
#DEBUG = yes
DEBUG = no
#---------------------------------------------------------------------
# Define filename extensions that are targeted by cleanup's
#---------------------------------------------------------------------
CLEANEXTS= *.bak *~ *.tmp
#---------------------------------------------------------------------
# Architecture dependent directory locations
#---------------------------------------------------------------------
ifdef libc5
VLibDir = $(HOMEV)/lib/$(Arch)-libc5
ifeq ($(TOOLKIT),Motif)
oDir = $(HOMEV)/objm/$(Arch)-libc5
endif
ifeq ($(TOOLKIT),Athena)
oDir = $(HOMEV)/obj/$(Arch)-libc5
endif
LibDir = $(HOMEV)/lib/$(Arch)-libc5
else
VLibDir = $(HOMEV)/lib/$(Arch)
ifeq ($(TOOLKIT),Motif)
oDir = $(HOMEV)/objm/$(Arch)
endif
ifeq ($(TOOLKIT),Athena)
oDir = $(HOMEV)/obj/$(Arch)
endif
LibDir = $(HOMEV)/lib/$(Arch)
endif
Bin = $(HOMEV)/bin/$(Arch)
#---------------------------------------------------------------------
# Architecture independent
#---------------------------------------------------------------------
INCDIR = -I$(HOMEV)/includex
LIBDIR = -L$(LibDir)
ifeq ($(TOOLKIT),Athena)
LIBNAME = libV
V1NAME = v1
LIBS = -lV -lXaw
endif
ifeq ($(TOOLKIT),Motif)
LIBNAME = libVm
V1NAME = v1m
LIBS = -lVm /usr/lib/libXm.a
endif
#---------------------------------------------------------------------
# Linux
#---------------------------------------------------------------------
ifeq ($(Arch),linux)
INCDIR += -I/usr/$(X11RV)/include
LIBDIR += -L/usr/$(X11RV)/lib
LIBS += -lXmu -lXt -lXext -lX11
TARZ = z
RANLIB = ranlib
VGPATH = LINUX
endif
#---------------------------------------------------------------------
# Linux ELF shared library
#---------------------------------------------------------------------
ifeq ($(Arch),linuxelf)
INCDIR += -I/usr/$(X11RV)/include
LIBDIR += -L/usr/$(X11RV)/lib
LIBS += -lXmu -lXt -lXext -lX11 -lstdc++
TARZ = z
RANLIB = ranlib
VGPATH = LINUX
endif
#---------------------------------------------------------------------
# Sun4 - unm
#---------------------------------------------------------------------
ifeq ($(Arch),sun4)
INCDIR += -I/usr/local/X11/include
LIBDIR += -L/usr/local/X11/lib
LIBS += -lXaw -lXmu -lXt -lXext -lX11
TARZ =
RANLIB = ranlib
VGPATH = UNIX
endif
#---------------------------------------------------------------------
# mips - unm
#---------------------------------------------------------------------
ifeq ($(Arch),mips)
INCDIR += -I/usr/local/X11/include
LIBDIR += -L/usr/local/X11/lib
LIBS += -lXaw -lXmu -lXt -lXext -lX11
TARZ =
RANLIB = ranlib
VGPATH = UNIX
endif
#---------------------------------------------------------------------
# sgi
# - the native compiler on IRIX 5.3 complains ad nauseam
# about parameters that are declared but not referenced
# in virtual functions; the -woff turns that warning off
#---------------------------------------------------------------------
ifeq ($(Arch),sgi)
INCDIR += -I/usr/include
LIBDIR += -L/usr/lib
LIBS += -lXmu -lXt -lXext -lX11 -lm
TARZ =
RANLIB = true
VGPATH = UNIX
ifneq ($(CXX),g++)
CFLAGS += -woff 3262
endif
endif
#---------------------------------------------------------------------
# hpux:
# - /usr/include is included explicitly because on HP-UX 10.20
# mixing of GNU supplied and system supplied includes leads to
# problems
# - X11 is available either in /usr/contrib or /usr/local
# listing both can not hurt
#----------------------------------------------------------------------
ifeq ($(Arch),hpux)
INCDIR += -I/usr/include -I/usr/include/$(X11RV) \
-I/usr/contrib/$(X11RV)/include \
-I/usr/local/$(X11RV)/include
LIBDIR += -L/usr/lib/$(X11RV) -L/usr/contrib/$(X11RV)/lib \
-L/usr/local/$(X11RV)/lib
LIBS += -lXmu -lXt -lSM -lICE -lXext -lX11
TARZ =
RANLIB = true
VGPATH = UNIX
endif
#----------------------------------------------------------------------
# solaris - unm
#----------------------------------------------------------------------
ifeq ($(Arch),solaris)
INCDIR += -I/usr/local/X11/include -I$(HOMEV)/includex
LIBDIR += -L/usr/local/X11/lib
LIBS += -lXmu -lXt -lXext -lX11 -lnsl -lsocket
TARZ =
RANLIB = true
VGPATH = UNIX
endif
#----------------------------------------------------------------------
# FreeBSD with gcc
#----------------------------------------------------------------------
ifeq ($(Arch),bsd)
INCDIR += -I/usr/$(X11RV)/include
LIBDIR += -L/usr/$(X11RV)/lib
LIBS += -lV -lXaw -lXmu -lXt -lXext -lX11
TARZ =
RANLIB = ranlib
VGPATH = UNIX
endif
#---------------------------------------------------------------------
# C/C++ compile options
#---------------------------------------------------------------------
#CFLAGS += -v $(INCDIR)
CFLAGS += $(INCDIR)
CFLAGS += -O2 -g
ifeq ($(TOOLKIT),Motif)
CFLAGS += -DMotif
endif
ifeq ($(Arch),sgi)
endif
#---------------------------------------------------------------------
# LINK/LOAD options
#---------------------------------------------------------------------
LDFLAGS = $(LIBDIR) $(LIBS)
|