/* $Id: Imakefile,v 1.9 2006/10/12 00:53:43 kywang Exp $ */ /* Misc items to correctly perform stand-alone build for GPL Linux layer */ /* with standard GPFS development build framework; this avoids keeping */ /* yet another set of makefiles in synch. */ MkdirTarget($(CXI_HEADER_DIR)) MkdirTarget($(GPL_LIB_DIR)) #ifndef SRC_BUILD InstallHeaders(DirIds.h, $(CXI_HEADER_DIR)) #endif #ifdef SRC_BUILD HEADERS = gpfs.h errids.h defragQueue.h InstallHeaders($(HEADERS), $(DESTDIR)/include) #endif # stub for mktrace InstallFiles(mktrace, $(INSTSHELLFLAGS), $(DESTDIR)/bin) /* Install patch scripts */ InstallFileToFile(createpatch.sh, $(INSTSHELLFLAGS), $(DESTDIR)/bin) InstallFileToFile(applypatch.sh, $(INSTSHELLFLAGS), $(DESTDIR)/bin) stubs:: echo "#!/bin/ksh" > mktrace echo "# mktrace stub" >> mktrace echo "exit 0" >> mktrace getupdatelevel.o: getupdatelevel.c $(RM) $@ $(CC) -c $(CFLAGS) -I$(KERNEL_HEADER_DIR) -D__KERNEL__ $*.c ProgramTarget(getupdatelevel, getupdatelevel.o, , ) InstallFileToFile(getupdatelevel, , $(DESTDIR)/bin) clean:: rm -f mktrace