[16] | 1 | /* $Id: Imakefile,v 1.9 2006/10/12 00:53:43 kywang Exp $ */ |
---|
| 2 | /* Misc items to correctly perform stand-alone build for GPL Linux layer */ |
---|
| 3 | /* with standard GPFS development build framework; this avoids keeping */ |
---|
| 4 | /* yet another set of makefiles in synch. */ |
---|
| 5 | |
---|
| 6 | |
---|
| 7 | MkdirTarget($(CXI_HEADER_DIR)) |
---|
| 8 | MkdirTarget($(GPL_LIB_DIR)) |
---|
| 9 | |
---|
| 10 | #ifndef SRC_BUILD |
---|
| 11 | InstallHeaders(DirIds.h, $(CXI_HEADER_DIR)) |
---|
| 12 | #endif |
---|
| 13 | |
---|
| 14 | #ifdef SRC_BUILD |
---|
| 15 | HEADERS = gpfs.h errids.h defragQueue.h |
---|
| 16 | InstallHeaders($(HEADERS), $(DESTDIR)/include) |
---|
| 17 | #endif |
---|
| 18 | |
---|
| 19 | # stub for mktrace |
---|
| 20 | InstallFiles(mktrace, $(INSTSHELLFLAGS), $(DESTDIR)/bin) |
---|
| 21 | |
---|
| 22 | /* Install patch scripts */ |
---|
| 23 | InstallFileToFile(createpatch.sh, $(INSTSHELLFLAGS), $(DESTDIR)/bin) |
---|
| 24 | InstallFileToFile(applypatch.sh, $(INSTSHELLFLAGS), $(DESTDIR)/bin) |
---|
| 25 | |
---|
| 26 | stubs:: |
---|
| 27 | echo "#!/bin/ksh" > mktrace |
---|
| 28 | echo "# mktrace stub" >> mktrace |
---|
| 29 | echo "exit 0" >> mktrace |
---|
| 30 | |
---|
| 31 | getupdatelevel.o: getupdatelevel.c |
---|
| 32 | $(RM) $@ |
---|
| 33 | $(CC) -c $(CFLAGS) -I$(KERNEL_HEADER_DIR) -D__KERNEL__ $*.c |
---|
| 34 | |
---|
| 35 | ProgramTarget(getupdatelevel, getupdatelevel.o, , ) |
---|
| 36 | InstallFileToFile(getupdatelevel, , $(DESTDIR)/bin) |
---|
| 37 | |
---|
| 38 | clean:: |
---|
| 39 | rm -f mktrace |
---|