# Makefile generated by imake - do not edit! # $Xorg: imake.c,v 1.6 2001/02/09 02:03:15 xorgcvs Exp $ # $Id: imake.tmpl,v 1.113.2.2 2006/10/06 22:33:17 yuri Exp $ #================================================== # Copyright IBM 1993 #================================================== ################################################### # This makefile is automatically generated by # imake... do not modify or you may lose your # changes when imake generates makefiles again. # Ignore this message if you are not using imake. ################################################### RESOLVLIB = DESTDIR = $(SHARKCLONEROOT) TOOLDIR = /local/bin SHELL = /bin/sh CSHELL = /bin/csh IMAKE = /usr/X11R6/bin/imake CC=g++ C_COMP=gcc INSTALL = /usr/bin/install AR = ar clq BARELD = ld KAR = ld $(LDFLAGS2) -r -o ARDEL = ar d MAKEDEPEND = g++ CPLUSINC = LD = $(CC) CDEBUGFLAGS = NATIVE_CC=$(CC) NATIVE_C_COMP=$(C_COMP) NATIVE_LD=$(NATIVE_CC) PATCHED_KERNEL_FLAGS = CXI_HEADER_DIR = $(DESTDIR)/include CXI_HEADER_DIR = $(DESTDIR)/include/cxi SOURCE_CONTROL = cvs SRC_UPDATE_CMD = $(SOURCE_CONTROL) update -d SRC_CHECKIN_CMD = $(SOURCE_CONTROL) ci -a DEPENDSCRIPT = $(DESTDIR)/bin/depend.sh PATCHSCRIPT = $(DESTDIR)/bin/applypatch.sh IMAKE_DEFINES = IRULESRC = $(DESTDIR)/shark/config NIDLFLAGS = -exts C.c,S.c,W.c NIDLINCLUDES = $(LOCALNIDLINCLUDES) LINTOPTS = -axz LINTLIBFLAG = -C STD_CFLAGS = STD_LDFLAGS = STD_INCLUDES = -I$(DESTDIR)/include -I$(CXI_HEADER_DIR) ARFLAGS = KARFLAGS = STD_LDFLAGS = $(EXTRASTD_LDFLAGS) LDFLAGS2 = $(EXTRALDFLAGS2) STD_KINCLUDES = $(STD_INCLUDES) AS = as CPP = /lib/cpp LINT = lint RM = rm -f MV = mv CP = cp LN = ln -s RANLIB = ranlib RPM = rpm RPMBUILD = /usr/bin/rpmbuild LS = ls AWK = awk SORT = sort TR = tr MAKE = /usr/bin/make MAKEDASH = - SED = sed LEX = lex YACC = yacc BISON = bison NIDL = /etc/ncs/nidl $(NIDLFLAGS) MKTRACE = $(DESTDIR)/bin/mktrace MERGETRC = $(DESTDIR)/bin/mergetrc MKTRCFMT = $(DESTDIR)/bin/mktrcfmt MKRPC = $(DESTDIR)/bin/mkrpc CHKSYSTYPES = $(SHARKCLONEROOT)/../tools/chksystypes # Ship values LPP_NAME=mmfs LOCAL_PROD_NAME = mmfs SHIP_TYPE = FILE SHIP_OWNER = bin SHIP_GROUP = system SHIP_CLASS = apply SHIP_ROOT = $(SHARKCLONEROOT)/ship SHIPDIR = $(SHIP_ROOT)/usr/lpp/$(LPP_NAME) SHIP_CMD = /usr/ucb/install -c ################################################### # The following comes from the site.mcr ################################################### LINUX_DISTRIBUTION = KERNEL_ORG_LINUX KERNEL_HEADER_DIR = /usr/src/linux-headers-2.6.20-15-generic/include KERNEL_BUILD_DIR = /lib/modules/2.6.20-15-generic/build LINUX_PATCH_DEFINES = CDEBUGFLAGS = KCDEBUGFLAGS = ARCH_DEFINES = -DGPFS_ARCH_I386 -DGPFS_LITTLE_ENDIAN 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 COMMON_TEMPSHIP_DEFINES = -DDBGASSERTS -DNEW_DELETE_DEBUG -DTRACK_USECOUNT -DTRIGGERS -DVERBOSETRACE COMMON_NEVERSHIP_DEFINES = -DINSTRUMENT_LOCKS -DPTHREAD_STATS -DTRACE_IO_DATA -DENTRYEXIT_TRACE SITE_OTHER_KDEFINES = -D_KERNEL -D__KERNEL__ -DMODULE -DGPFS_EXPORT_KSYMS -DEXPORT_SYMTAB 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) EXTRASTD_LDFLAGS = EXTRALDFLAGS2 = SITEMCRREV_RAW = "$Revision: 1.535.2.13 $ " OPTFLAGS = -g0 -O2 -march=i686 -fno-strict-aliasing -fno-exceptions -DGPFS_FRAME_POINTER KOPTFLAGS = -O2 -march=i686 -fno-strict-aliasing -fno-exceptions -fno-common -fomit-frame-pointer COMMON_26_FLAGS += -m32 -ffreestanding KOPTFLAGS += $(COMMON_26_FLAGS) -mpreferred-stack-boundary=2 OPTFLAGS += $(COMMON_26_FLAGS) KOPTFLAGS += -mregparm=3 -mpreferred-stack-boundary=2 DEFAULT_DEFINES = $(COMMON_LINUX) -DLINUX_KERNEL_VERSION=2062015 -DLIMIT_KSTACKS -DSSEG_RESERVE_MEM NEVERSHIP_DEFINES = -DKSTACK_CHECK -DSMART_PTR_DEBUG SITE_FAR_TRACE_OPTS = SITE_KFAR_TRACE_OPTS = -DFAR_TRACE -DFAR_CODE -fno-defer-pop SITE_DEFINES = $(ARCH_DEFINES) $(DEFAULT_DEFINES) $(COMMON_DEFINES) ################################################### # Back from site.mcr ################################################### .SUFFIXES: .o .32o .64o .C .c .s .spp .y .l .idl .sh .ko .spec .po .pko .rpc ALL_INCLUDES = -I. $(IMAKE_INCLUDES) $(STD_INCLUDES) ALL_KINCLUDES = -I. $(IMAKE_INCLUDES) $(STD_KINCLUDES) ALL_LIBPATHS = -L. $(IMAKE_LIBS) IMAKE_CMD = $(IMAKE) -Timake.tmpl -I. -I$(IRULESRC) -s makefile DOTDOTIMAKE_CMD = $(IMAKE) -Timake.tmpl -I. -I$(IRULESRC) -s makefile ALL_DEFINES = $(IMAKE_DEFINES) $(SITE_DEFINES) $(SITE_FAR_TRACE_OPTS) $(IMAKE_DEFINES_LAST) ALL_KDEFINES = $(IMAKE_DEFINES) $(SITE_DEFINES) $(SITE_OTHER_KDEFINES) $(SITE_KFAR_TRACE_OPTS) CFLAGS = $(OPTFLAGS) $(STD_CFLAGS) $(IMAKE_CFLAGS) $(CDEBUGFLAGS) $(ALL_INCLUDES) $(ALL_DEFINES) NATIVECFLAGS = -O $(STD_CFLAGS) $(IMAKE_CFLAGS) $(CDEBUGFLAGS) $(ALL_INCLUDES) $(ALL_DEFINES) KCFLAGS = $(KOPTFLAGS) $(STD_CFLAGS) $(IMAKE_CFLAGS) $(CDEBUGFLAGS) $(ALL_KINCLUDES) $(ALL_KDEFINES) TESTING_CFLAGS = -DTESTINGONLYTESTING $(CFLAGS) GPL_HEADER_DIR = $(DESTDIR)/include/gpl-linux GPL_LIB_DIR = $(DESTDIR)/lib/gpl-linux Headers:: @if [ "$(LINUX_DISTRIBUTION)" = "REDHAT_LINUX" ]; then \ if [ ! -f /etc/redhat-release ]; then \ echo "Error: the current Linux environment does not agree with the setting, LINUX_DISTRIBUTION = $(LINUX_DISTRIBUTION), specified in site.mcr!"; exit 1; \ else \ rhreltype=`awk '/Enterprise/ {print "Enterprise"}' /etc/redhat-release`; \ if [ "$$rhreltype" = "Enterprise" ]; then \ 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; \ fi; \ fi; \ elif [ "$(LINUX_DISTRIBUTION)" = "REDHAT_AS_LINUX" ]; then \ if [ ! -f /etc/redhat-release ]; then \ echo "Error: the current Linux environment does not agree with the setting, LINUX_DISTRIBUTION = $(LINUX_DISTRIBUTION), specified in site.mcr!"; exit 1; \ else \ rhreltype=`awk '/Enterprise/ {print "Enterprise"}' /etc/redhat-release`; \ if [ "$$rhreltype" != "Enterprise" ]; then \ 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; \ fi; \ fi; \ elif [ "$(LINUX_DISTRIBUTION)" = "SUSE_LINUX" ]; then \ if [ ! -f /etc/SuSE-release ]; then \ echo "Error: the current Linux environment does not agree with the setting, LINUX_DISTRIBUTION = $(LINUX_DISTRIBUTION), specified in site.mcr!"; exit 1; \ fi; \ elif [ "$(LINUX_DISTRIBUTION)" = "KERNEL_ORG_LINUX" ]; then \ echo "This is OK" > /dev/null; \ else \ echo "Error: LINUX_DISTRIBUTION = '$(LINUX_DISTRIBUTION)' is not a valid choice in site.mcr!"; exit 1; \ fi; INSTUIDFLAGS = -c -m 4555 INSTLIBFLAGS = -c -m 0664 INSTINCFLAGS = -c -m 0444 INSTDOCFLAGS = -c -m 0444 INSTROOTFLAGS = -c $(EXTRAINSTROOTFLAGS) -m 0500 INSTROOTFLAGS2 = -c -m 0500 INSTPROGFLAGS = -c $(EXTRAINSTPROGFLAGS) -m 0555 INSTSHELLFLAGS = -c -m 0755 DASH_I = *-[^=\ ][i]* DASH_IK = *-[^=\ ][ik]* all:: libs All:: all test:: Test:: test libs:: headers Libs:: libs installLibs:: trclst trclst:: installLibs:: libs installLibs:: library.ti InstallLibs:: installLibs instLibs:: installLibs InstLibs:: InstallLibs rpm:: depend:: headers depend:: makefile Depend:: depend install.he:: library.ti:: headers:: install.he Headers:: headers install.ti:: install:: headers install:: libs install:: all install:: install.ti Install:: install dependInstall:: depend dependInstall:: install clean:: Clean:: clean cleanTest:: CleanTest:: cleanTest update:: ; $(SRC_UPDATE_CMD) checkin:: ; $(SRC_CHECKIN_CMD) Checkin:: checkin config1:: config2:: finish:: World:: config1 World:: Makefiles World:: Clean World:: config2 World:: Headers World:: Depend World:: InstallLibs World:: Install World:: finish Ship:: shipReset Ship:: shipSupport Ship:: shipFile Unship:: unshipSupport Unship:: unshipFile shipReset:: clean:: $(RM) #* ,* *~ *.CKP *.BAK *.bak core $(RM) *.ln *.o *.32o *.64o *.po *.ko *.pko make.log *.a *.lst *.map *.so $(RM) install.ti install.he library.ti *.rpm makefile:: Imakefile $(IRULESRC)/imake.tmpl $(IRULESRC)/site.mcr $(IMAKE_CMD); \ touch .depends; \ cat .depends >>makefile ################################################### # The following comes from the local Imakefile ################################################### .C.o: $(RM) $@ $(CC) -c $(CFLAGS) $*.C .C.32o: $(RM) $@ $(CC) -c $(CFLAGS) $(CFLAGS32) $*.C -o $*.32o .C.64o: $(RM) $@ $(CC) -c $(CFLAGS) $(CFLAGS64) $*.C -o $*.64o .c.o: $(RM) $@ $(C_COMP) -c $(CFLAGS) $*.c .c.32o: $(RM) $@ $(C_COMP) -c $(CFLAGS) $(CFLAGS32) $*.c -o $*.32o .c.64o: $(RM) $@ $(C_COMP) -c $(CFLAGS) $(CFLAGS64) $*.c -o $*.64o .c.ko: $(RM) $@ $(C_COMP) -o $@ -c $(KCFLAGS) $*.c .C.ko: $(RM) $@ $(CC) -o $@ -c $(KCFLAGS) $*.C .S.o: $(RM) $@ $(CC) -o $@ -c $(CFLAGS) $*.S .S.ko: $(RM) $@ $(CC) -o $@ -c $(KCFLAGS) $*.S .c.pko: $(RM) $@ $(C_COMP) -o $@ -c $(PATCHED_KERNEL_FLAGS) $(KCFLAGS) $*.c .C.pko: $(RM) $@ $(CC) -o $@ -c $(PATCHED_KERNEL_FLAGS) $(KCFLAGS) $*.C .rpc.h: $(MKRPC) $*.rpc HEADERS = cxiTypes.h cxiSystem.h cxi2gpfs.h cxiVFSStats.h cxiCred.h cxiIOBuffer.h cxiSharedSeg.h cxiMode.h Trace.h cxiMmap.h cxiAtomic.h cxiTSFattr.h cxiAclUser.h cxiLinkList.h cxiDmapi.h LockNames.h install.he:: $(HEADERS) @(case '$(MAKEFLAGS)' in $(DASH_I)) set +e;; esac; \ changed="$?"; \ for i in $$changed; do \ (set -x; $(INSTALL) $(INSTINCFLAGS) $$i $(CXI_HEADER_DIR)/$$i) done) ################################################### # Back from the local Imakefile ################################################### Makefiles:: makefile installLibs::afterInstallLibs afterInstallLibs:: shipFile shipSupport:: unshipFile unshipSupport:: library.ti:: touch library.ti install.he:: touch install.he install.ti:: touch install.ti listdirs: @echo ${SUBDIRS} ##### DEPENDENCY LINE - DO NOT DELETE #####