[16] | 1 | # Makefile generated by imake - do not edit! |
---|
| 2 | # $Xorg: imake.c,v 1.6 2001/02/09 02:03:15 xorgcvs Exp $ |
---|
| 3 | |
---|
| 4 | # $Id: imake.tmpl,v 1.113.2.2 2006/10/06 22:33:17 yuri Exp $ |
---|
| 5 | #================================================== |
---|
| 6 | # Copyright IBM 1993 |
---|
| 7 | #================================================== |
---|
| 8 | |
---|
| 9 | ################################################### |
---|
| 10 | # This makefile is automatically generated by |
---|
| 11 | # imake... do not modify or you may lose your |
---|
| 12 | # changes when imake generates makefiles again. |
---|
| 13 | # Ignore this message if you are not using imake. |
---|
| 14 | ################################################### |
---|
| 15 | |
---|
| 16 | RESOLVLIB = |
---|
| 17 | |
---|
| 18 | DESTDIR = $(SHARKCLONEROOT) |
---|
| 19 | TOOLDIR = /local/bin |
---|
| 20 | SHELL = /bin/sh |
---|
| 21 | CSHELL = /bin/csh |
---|
| 22 | |
---|
| 23 | IMAKE = /usr/X11R6/bin/imake |
---|
| 24 | CC=g++ |
---|
| 25 | C_COMP=gcc |
---|
| 26 | |
---|
| 27 | INSTALL = /usr/bin/install |
---|
| 28 | AR = ar clq |
---|
| 29 | BARELD = ld |
---|
| 30 | KAR = ld $(LDFLAGS2) -r -o |
---|
| 31 | ARDEL = ar d |
---|
| 32 | MAKEDEPEND = g++ |
---|
| 33 | CPLUSINC = |
---|
| 34 | |
---|
| 35 | LD = $(CC) |
---|
| 36 | CDEBUGFLAGS = |
---|
| 37 | |
---|
| 38 | NATIVE_CC=$(CC) |
---|
| 39 | NATIVE_C_COMP=$(C_COMP) |
---|
| 40 | NATIVE_LD=$(NATIVE_CC) |
---|
| 41 | |
---|
| 42 | PATCHED_KERNEL_FLAGS = |
---|
| 43 | |
---|
| 44 | CXI_HEADER_DIR = $(DESTDIR)/include |
---|
| 45 | |
---|
| 46 | CXI_HEADER_DIR = $(DESTDIR)/include/cxi |
---|
| 47 | |
---|
| 48 | SOURCE_CONTROL = cvs |
---|
| 49 | SRC_UPDATE_CMD = $(SOURCE_CONTROL) update -d |
---|
| 50 | SRC_CHECKIN_CMD = $(SOURCE_CONTROL) ci -a |
---|
| 51 | |
---|
| 52 | DEPENDSCRIPT = $(DESTDIR)/bin/depend.sh |
---|
| 53 | PATCHSCRIPT = $(DESTDIR)/bin/applypatch.sh |
---|
| 54 | IMAKE_DEFINES = |
---|
| 55 | |
---|
| 56 | IRULESRC = $(DESTDIR)/shark/config |
---|
| 57 | |
---|
| 58 | NIDLFLAGS = -exts C.c,S.c,W.c |
---|
| 59 | NIDLINCLUDES = $(LOCALNIDLINCLUDES) |
---|
| 60 | |
---|
| 61 | LINTOPTS = -axz |
---|
| 62 | LINTLIBFLAG = -C |
---|
| 63 | |
---|
| 64 | STD_CFLAGS = |
---|
| 65 | STD_LDFLAGS = |
---|
| 66 | STD_INCLUDES = -I$(DESTDIR)/include -I$(CXI_HEADER_DIR) |
---|
| 67 | ARFLAGS = |
---|
| 68 | KARFLAGS = |
---|
| 69 | STD_LDFLAGS = $(EXTRASTD_LDFLAGS) |
---|
| 70 | LDFLAGS2 = $(EXTRALDFLAGS2) |
---|
| 71 | |
---|
| 72 | STD_KINCLUDES = $(STD_INCLUDES) |
---|
| 73 | |
---|
| 74 | AS = as |
---|
| 75 | CPP = /lib/cpp |
---|
| 76 | LINT = lint |
---|
| 77 | RM = rm -f |
---|
| 78 | MV = mv |
---|
| 79 | CP = cp |
---|
| 80 | LN = ln -s |
---|
| 81 | RANLIB = ranlib |
---|
| 82 | RPM = rpm |
---|
| 83 | RPMBUILD = /usr/bin/rpmbuild |
---|
| 84 | |
---|
| 85 | LS = ls |
---|
| 86 | AWK = awk |
---|
| 87 | SORT = sort |
---|
| 88 | TR = tr |
---|
| 89 | MAKE = /usr/bin/make |
---|
| 90 | MAKEDASH = - |
---|
| 91 | |
---|
| 92 | SED = sed |
---|
| 93 | LEX = lex |
---|
| 94 | YACC = yacc |
---|
| 95 | BISON = bison |
---|
| 96 | NIDL = /etc/ncs/nidl $(NIDLFLAGS) |
---|
| 97 | |
---|
| 98 | MKTRACE = $(DESTDIR)/bin/mktrace |
---|
| 99 | MERGETRC = $(DESTDIR)/bin/mergetrc |
---|
| 100 | MKTRCFMT = $(DESTDIR)/bin/mktrcfmt |
---|
| 101 | MKRPC = $(DESTDIR)/bin/mkrpc |
---|
| 102 | CHKSYSTYPES = $(SHARKCLONEROOT)/../tools/chksystypes |
---|
| 103 | |
---|
| 104 | # Ship values |
---|
| 105 | |
---|
| 106 | LPP_NAME=mmfs |
---|
| 107 | LOCAL_PROD_NAME = mmfs |
---|
| 108 | SHIP_TYPE = FILE |
---|
| 109 | SHIP_OWNER = bin |
---|
| 110 | SHIP_GROUP = system |
---|
| 111 | SHIP_CLASS = apply |
---|
| 112 | SHIP_ROOT = $(SHARKCLONEROOT)/ship |
---|
| 113 | SHIPDIR = $(SHIP_ROOT)/usr/lpp/$(LPP_NAME) |
---|
| 114 | SHIP_CMD = /usr/ucb/install -c |
---|
| 115 | |
---|
| 116 | ################################################### |
---|
| 117 | # The following comes from the site.mcr |
---|
| 118 | ################################################### |
---|
| 119 | |
---|
| 120 | LINUX_DISTRIBUTION = KERNEL_ORG_LINUX |
---|
| 121 | |
---|
| 122 | KERNEL_HEADER_DIR = /usr/src/linux-headers-2.6.20-15-generic/include |
---|
| 123 | |
---|
| 124 | KERNEL_BUILD_DIR = /lib/modules/2.6.20-15-generic/build |
---|
| 125 | |
---|
| 126 | LINUX_PATCH_DEFINES = |
---|
| 127 | |
---|
| 128 | CDEBUGFLAGS = |
---|
| 129 | KCDEBUGFLAGS = |
---|
| 130 | |
---|
| 131 | ARCH_DEFINES = -DGPFS_ARCH_I386 -DGPFS_LITTLE_ENDIAN |
---|
| 132 | |
---|
| 133 | COMMON_DEFINES = -DALLOC_SUM_FILE -DBLOCK_RESTORE -DDESCQUORUM_OVERRIDE -DDIO -DDIO_XW -DDISK_LEASE_DMS -DDMAPI -DDMAPI_MOVERS -DDMAPI_PREFETCH_DIRATTRS -DEXPORTER_EVENTS -DFILESETS -DFILESET_QUOTAS -DGPFS_ERRNO_MAPPING -DGPFS_QUOTACTL -DLC_FENCING -DMMAP_DIO -DMMPMON -DMMPMON_CUMULATIVE -DMMPMON_DAEMON_PORT -DMMPMON_HISTOGRAMS -DMMPMON_NAMED_SOCKET -DMMPMON_RPC -DNFS_SKIP_SHRINK_TO_FIT -DNFS4_ACL -DNFS4_VCM -DNO_XCLUST -DPERF_STATS -DPOLICY -DPOLICY_RESTORE -DPOOLS -DPOW2_COND_SHIFT -DSANERGY -DSFS_PERF_SKIP_SYNC -DSFS_PERF_USE_SMALL_BUFFER -DSINGLE_PORT -DSMB_LOCKS -DTHREADED_RECEIVER -DTSCOMM_SECURITY -DUIDREMAP -DWAIT_FOR_NSD_SERVERS |
---|
| 134 | |
---|
| 135 | COMMON_TEMPSHIP_DEFINES = -DDBGASSERTS -DNEW_DELETE_DEBUG -DTRACK_USECOUNT -DTRIGGERS -DVERBOSETRACE |
---|
| 136 | |
---|
| 137 | COMMON_NEVERSHIP_DEFINES = -DINSTRUMENT_LOCKS -DPTHREAD_STATS -DTRACE_IO_DATA -DENTRYEXIT_TRACE |
---|
| 138 | |
---|
| 139 | SITE_OTHER_KDEFINES = -D_KERNEL -D__KERNEL__ -DMODULE -DGPFS_EXPORT_KSYMS -DEXPORT_SYMTAB |
---|
| 140 | |
---|
| 141 | COMMON_LINUX = -U_GNU_SOURCE -D__USE_BSD -D_LARGEFILE64_SOURCE -DGPFS_LINUX -DYESSTR=__YESSTR -DNOSTR=__NOSTR -DLUM -DNPTL -DSSEG_SWIZZLE_PTRS -D$(LINUX_DISTRIBUTION) -DLINUX_DISTRIBUTION_LEVEL=90 $(LINUX_PATCH_DEFINES) |
---|
| 142 | |
---|
| 143 | EXTRASTD_LDFLAGS = |
---|
| 144 | EXTRALDFLAGS2 = |
---|
| 145 | |
---|
| 146 | SITEMCRREV_RAW = "$Revision: 1.535.2.13 $ " |
---|
| 147 | |
---|
| 148 | OPTFLAGS = -g0 -O2 -march=i686 -fno-strict-aliasing -fno-exceptions -DGPFS_FRAME_POINTER |
---|
| 149 | |
---|
| 150 | KOPTFLAGS = -O2 -march=i686 -fno-strict-aliasing -fno-exceptions -fno-common -fomit-frame-pointer |
---|
| 151 | |
---|
| 152 | COMMON_26_FLAGS += -m32 -ffreestanding |
---|
| 153 | KOPTFLAGS += $(COMMON_26_FLAGS) -mpreferred-stack-boundary=2 |
---|
| 154 | OPTFLAGS += $(COMMON_26_FLAGS) |
---|
| 155 | |
---|
| 156 | KOPTFLAGS += -mregparm=3 -mpreferred-stack-boundary=2 |
---|
| 157 | |
---|
| 158 | DEFAULT_DEFINES = $(COMMON_LINUX) -DLINUX_KERNEL_VERSION=2062015 -DLIMIT_KSTACKS -DSSEG_RESERVE_MEM |
---|
| 159 | |
---|
| 160 | NEVERSHIP_DEFINES = -DKSTACK_CHECK -DSMART_PTR_DEBUG |
---|
| 161 | |
---|
| 162 | SITE_FAR_TRACE_OPTS = |
---|
| 163 | |
---|
| 164 | SITE_KFAR_TRACE_OPTS = -DFAR_TRACE -DFAR_CODE -fno-defer-pop |
---|
| 165 | |
---|
| 166 | SITE_DEFINES = $(ARCH_DEFINES) $(DEFAULT_DEFINES) $(COMMON_DEFINES) |
---|
| 167 | |
---|
| 168 | ################################################### |
---|
| 169 | # Back from site.mcr |
---|
| 170 | ################################################### |
---|
| 171 | |
---|
| 172 | .SUFFIXES: .o .32o .64o .C .c .s .spp .y .l .idl .sh .ko .spec .po .pko .rpc |
---|
| 173 | ALL_INCLUDES = -I. $(IMAKE_INCLUDES) $(STD_INCLUDES) |
---|
| 174 | ALL_KINCLUDES = -I. $(IMAKE_INCLUDES) $(STD_KINCLUDES) |
---|
| 175 | ALL_LIBPATHS = -L. $(IMAKE_LIBS) |
---|
| 176 | IMAKE_CMD = $(IMAKE) -Timake.tmpl -I. -I$(IRULESRC) -s makefile |
---|
| 177 | DOTDOTIMAKE_CMD = $(IMAKE) -Timake.tmpl -I. -I$(IRULESRC) -s makefile |
---|
| 178 | |
---|
| 179 | ALL_DEFINES = $(IMAKE_DEFINES) $(SITE_DEFINES) $(SITE_FAR_TRACE_OPTS) $(IMAKE_DEFINES_LAST) |
---|
| 180 | ALL_KDEFINES = $(IMAKE_DEFINES) $(SITE_DEFINES) $(SITE_OTHER_KDEFINES) $(SITE_KFAR_TRACE_OPTS) |
---|
| 181 | CFLAGS = $(OPTFLAGS) $(STD_CFLAGS) $(IMAKE_CFLAGS) $(CDEBUGFLAGS) $(ALL_INCLUDES) $(ALL_DEFINES) |
---|
| 182 | NATIVECFLAGS = -O $(STD_CFLAGS) $(IMAKE_CFLAGS) $(CDEBUGFLAGS) $(ALL_INCLUDES) $(ALL_DEFINES) |
---|
| 183 | KCFLAGS = $(KOPTFLAGS) $(STD_CFLAGS) $(IMAKE_CFLAGS) $(CDEBUGFLAGS) $(ALL_KINCLUDES) $(ALL_KDEFINES) |
---|
| 184 | TESTING_CFLAGS = -DTESTINGONLYTESTING $(CFLAGS) |
---|
| 185 | |
---|
| 186 | GPL_HEADER_DIR = $(DESTDIR)/include/gpl-linux |
---|
| 187 | GPL_LIB_DIR = $(DESTDIR)/lib/gpl-linux |
---|
| 188 | |
---|
| 189 | Headers:: |
---|
| 190 | @if [ "$(LINUX_DISTRIBUTION)" = "REDHAT_LINUX" ]; then \ |
---|
| 191 | if [ ! -f /etc/redhat-release ]; then \ |
---|
| 192 | echo "Error: the current Linux environment does not agree with the setting, LINUX_DISTRIBUTION = $(LINUX_DISTRIBUTION), specified in site.mcr!"; exit 1; \ |
---|
| 193 | else \ |
---|
| 194 | rhreltype=`awk '/Enterprise/ {print "Enterprise"}' /etc/redhat-release`; \ |
---|
| 195 | if [ "$$rhreltype" = "Enterprise" ]; then \ |
---|
| 196 | echo "Error: the current Linux environment appears to be RedHat Enterprise Linux, which requires setting LINUX_DISTRIBUTION = REDHAT_AS_LINUX in site.mcr!"; exit 1; \ |
---|
| 197 | fi; \ |
---|
| 198 | fi; \ |
---|
| 199 | elif [ "$(LINUX_DISTRIBUTION)" = "REDHAT_AS_LINUX" ]; then \ |
---|
| 200 | if [ ! -f /etc/redhat-release ]; then \ |
---|
| 201 | echo "Error: the current Linux environment does not agree with the setting, LINUX_DISTRIBUTION = $(LINUX_DISTRIBUTION), specified in site.mcr!"; exit 1; \ |
---|
| 202 | else \ |
---|
| 203 | rhreltype=`awk '/Enterprise/ {print "Enterprise"}' /etc/redhat-release`; \ |
---|
| 204 | if [ "$$rhreltype" != "Enterprise" ]; then \ |
---|
| 205 | echo "Error: the current Linux environment appears to be RedHat Linux (not Enterprise Linux [AS|ES|WS] version), which requires setting LINUX_DISTRIBUTION = REDHAT_LINUX in site.mcr!"; exit 1; \ |
---|
| 206 | fi; \ |
---|
| 207 | fi; \ |
---|
| 208 | elif [ "$(LINUX_DISTRIBUTION)" = "SUSE_LINUX" ]; then \ |
---|
| 209 | if [ ! -f /etc/SuSE-release ]; then \ |
---|
| 210 | echo "Error: the current Linux environment does not agree with the setting, LINUX_DISTRIBUTION = $(LINUX_DISTRIBUTION), specified in site.mcr!"; exit 1; \ |
---|
| 211 | fi; \ |
---|
| 212 | elif [ "$(LINUX_DISTRIBUTION)" = "KERNEL_ORG_LINUX" ]; then \ |
---|
| 213 | echo "This is OK" > /dev/null; \ |
---|
| 214 | else \ |
---|
| 215 | echo "Error: LINUX_DISTRIBUTION = '$(LINUX_DISTRIBUTION)' is not a valid choice in site.mcr!"; exit 1; \ |
---|
| 216 | fi; |
---|
| 217 | |
---|
| 218 | INSTUIDFLAGS = -c -m 4555 |
---|
| 219 | INSTLIBFLAGS = -c -m 0664 |
---|
| 220 | INSTINCFLAGS = -c -m 0444 |
---|
| 221 | INSTDOCFLAGS = -c -m 0444 |
---|
| 222 | INSTROOTFLAGS = -c $(EXTRAINSTROOTFLAGS) -m 0500 |
---|
| 223 | INSTROOTFLAGS2 = -c -m 0500 |
---|
| 224 | INSTPROGFLAGS = -c $(EXTRAINSTPROGFLAGS) -m 0555 |
---|
| 225 | INSTSHELLFLAGS = -c -m 0755 |
---|
| 226 | |
---|
| 227 | DASH_I = *-[^=\ ][i]* |
---|
| 228 | DASH_IK = *-[^=\ ][ik]* |
---|
| 229 | |
---|
| 230 | all:: libs |
---|
| 231 | All:: all |
---|
| 232 | test:: |
---|
| 233 | Test:: test |
---|
| 234 | libs:: headers |
---|
| 235 | Libs:: libs |
---|
| 236 | installLibs:: trclst |
---|
| 237 | trclst:: |
---|
| 238 | installLibs:: libs |
---|
| 239 | installLibs:: library.ti |
---|
| 240 | InstallLibs:: installLibs |
---|
| 241 | instLibs:: installLibs |
---|
| 242 | InstLibs:: InstallLibs |
---|
| 243 | rpm:: |
---|
| 244 | |
---|
| 245 | depend:: headers |
---|
| 246 | depend:: makefile |
---|
| 247 | Depend:: depend |
---|
| 248 | install.he:: |
---|
| 249 | library.ti:: |
---|
| 250 | headers:: install.he |
---|
| 251 | Headers:: headers |
---|
| 252 | install.ti:: |
---|
| 253 | install:: headers |
---|
| 254 | install:: libs |
---|
| 255 | install:: all |
---|
| 256 | install:: install.ti |
---|
| 257 | Install:: install |
---|
| 258 | dependInstall:: depend |
---|
| 259 | dependInstall:: install |
---|
| 260 | clean:: |
---|
| 261 | Clean:: clean |
---|
| 262 | cleanTest:: |
---|
| 263 | CleanTest:: cleanTest |
---|
| 264 | update:: ; $(SRC_UPDATE_CMD) |
---|
| 265 | checkin:: ; $(SRC_CHECKIN_CMD) |
---|
| 266 | Checkin:: checkin |
---|
| 267 | config1:: |
---|
| 268 | config2:: |
---|
| 269 | finish:: |
---|
| 270 | World:: config1 |
---|
| 271 | World:: Makefiles |
---|
| 272 | World:: Clean |
---|
| 273 | World:: config2 |
---|
| 274 | World:: Headers |
---|
| 275 | World:: Depend |
---|
| 276 | World:: InstallLibs |
---|
| 277 | World:: Install |
---|
| 278 | World:: finish |
---|
| 279 | Ship:: shipReset |
---|
| 280 | Ship:: shipSupport |
---|
| 281 | Ship:: shipFile |
---|
| 282 | Unship:: unshipSupport |
---|
| 283 | Unship:: unshipFile |
---|
| 284 | |
---|
| 285 | shipReset:: |
---|
| 286 | |
---|
| 287 | clean:: |
---|
| 288 | $(RM) #* ,* *~ *.CKP *.BAK *.bak core |
---|
| 289 | $(RM) *.ln *.o *.32o *.64o *.po *.ko *.pko make.log *.a *.lst *.map *.so |
---|
| 290 | $(RM) install.ti install.he library.ti *.rpm |
---|
| 291 | |
---|
| 292 | ################################################### |
---|
| 293 | # The following comes from the local Imakefile |
---|
| 294 | ################################################### |
---|
| 295 | |
---|
| 296 | DIRS = $(DESTDIR) $(DESTDIR)/data $(DESTDIR)/shark $(DESTDIR)/shark/config $(DESTDIR)/include $(DESTDIR)/lib $(DESTDIR)/bin $(DESTDIR)/messages |
---|
| 297 | |
---|
| 298 | install.ti:: makedirs |
---|
| 299 | @echo '\c' |
---|
| 300 | install.he:: makedirs |
---|
| 301 | @echo '\c' |
---|
| 302 | makedirs:: |
---|
| 303 | @echo "Checking Destination Directories...." |
---|
| 304 | @sh -c 'for i in $(DIRS); do \ |
---|
| 305 | if [ -f $$i ]; then \ |
---|
| 306 | echo "Mkdir: $$i is a FILE"; \ |
---|
| 307 | exit 1; \ |
---|
| 308 | elif [ ! -d $$i ]; then \ |
---|
| 309 | echo "Making directory $$i"; \ |
---|
| 310 | mkdir -p $$i; \ |
---|
| 311 | fi; \ |
---|
| 312 | done; \ |
---|
| 313 | exit 0' |
---|
| 314 | |
---|
| 315 | install.ti:: site.mcr imake.tmpl |
---|
| 316 | @(case '$(MAKEFLAGS)' in $(DASH_I)) set +e;; esac; \ |
---|
| 317 | changed="$?"; \ |
---|
| 318 | for i in $$changed; do \ |
---|
| 319 | (set -x; $(INSTALL) $(INSTINCFLAGS) $$i $(DESTDIR)/shark/config/$$i) done) |
---|
| 320 | |
---|
| 321 | config2:: install.ti |
---|
| 322 | |
---|
| 323 | install.ti:: depend.sh |
---|
| 324 | $(INSTALL) $(INSTSHELLFLAGS) depend.sh $(DESTDIR)/bin |
---|
| 325 | |
---|
| 326 | install.ti:: site.mcr |
---|
| 327 | |
---|
| 328 | install.ti:: ../makefile |
---|
| 329 | |
---|
| 330 | ################################################### |
---|
| 331 | # Back from the local Imakefile |
---|
| 332 | ################################################### |
---|
| 333 | |
---|
| 334 | Makefiles:: makefile |
---|
| 335 | |
---|
| 336 | installLibs::afterInstallLibs |
---|
| 337 | |
---|
| 338 | afterInstallLibs:: |
---|
| 339 | |
---|
| 340 | shipFile shipSupport:: |
---|
| 341 | |
---|
| 342 | unshipFile unshipSupport:: |
---|
| 343 | |
---|
| 344 | library.ti:: |
---|
| 345 | touch library.ti |
---|
| 346 | |
---|
| 347 | install.he:: |
---|
| 348 | touch install.he |
---|
| 349 | |
---|
| 350 | install.ti:: |
---|
| 351 | touch install.ti |
---|
| 352 | |
---|
| 353 | listdirs: |
---|
| 354 | @echo ${SUBDIRS} |
---|
| 355 | |
---|
| 356 | ##### DEPENDENCY LINE - DO NOT DELETE ##### |
---|
| 357 | |
---|