Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

140 lines
3.4 KiB

  1. ##
  2. ## Copyright (c) 2000, Intel Corporation
  3. ## All rights reserved.
  4. ##
  5. ## WARRANTY DISCLAIMER
  6. ##
  7. ## THESE MATERIALS ARE PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  8. ## "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  9. ## LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  10. ## A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR ITS
  11. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  12. ## EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  13. ## PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  14. ## PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
  15. ## OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY OR TORT (INCLUDING
  16. ## NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THESE
  17. ## MATERIALS, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  18. ##
  19. ## Intel Corporation is the author of the Materials, and requests that all
  20. ## problem reports or change requests be submitted to it directly at
  21. ## http://developer.intel.com/opensource.
  22. ##
  23. include $(SERVER_AREA)/include/Makefile.inc
  24. IELDIR = $(LOCALDIR)/src/iel
  25. IEL_H = iel.h
  26. OBJECTS = iel.$(OEXT) iel_glob.$(OEXT)
  27. SRC = iel.c
  28. LIB = libiel.$(LEXT)
  29. OLIB = libiel.$(OEXT)
  30. VPATH = /topg_drive/x86sw/src/iel
  31. ifeq ($(HOSTTYPE), MACH386)
  32. SHELL = csh
  33. endif
  34. ifdef LP64
  35. LP_SIZE_FLAG = -D LP64
  36. endif
  37. ifdef AP32
  38. GCC_BIN=ecl /Ap32 /As32
  39. endif
  40. ifdef AP64
  41. GCC_BIN=ecl
  42. endif
  43. ifeq ($(HOSTTYPE), WINNT)
  44. USER_CFLAGS = -c -I$(LOCALINC) -MD $(LP_SIZE_FLAG)
  45. ### LOCALDIR = /x86sw
  46. else
  47. USER_CFLAGS = -c -I$(LOCALINC) $(LP_SIZE_FLAG)
  48. endif
  49. vpath iel.h .
  50. LOCALINC = $(LOCALDIR)/include
  51. INSTALLINC_SEARCH_PATH = $(SERVER_AREA)/include
  52. all: $(LOCALINC)/iel.h $(LIB)
  53. $(LIB) : $(OBJECTS)
  54. $(AR) $(AR_OPT)"$(LOCALLIB)/$(LIB)" $(OBJECTS)
  55. $(LOCALINC)/iel.h: ./iel.h
  56. echo making include file
  57. cp iel.h $(LOCALINC)
  58. chmod +w $(LOCALINC)/iel.h
  59. iel.$(OEXT): iel.h $(SRC) #func.h
  60. iel_glob.$(OEXT): $(INCLUDES)
  61. func.h: $(SRC)
  62. touch func.h
  63. test -w func.h || chmod u+w func.h
  64. $(PERL) mhdr func.h $(SRC)
  65. ###################################
  66. ##### Source release rules ####
  67. ###################################
  68. C_FILES = IEL_VER.c iel.c iel_glob.c
  69. SOURCE_RELEASE_IEL_DIR = $(TARGET_TREE)/src/iel
  70. SOURCE_RELEASE_FILES = Makefile $(C_FILES) iel.h
  71. source_release_copy: $(SOURCE_RELEASE_FILES)
  72. @echo Copying iel source files to $(SOURCE_RELEASE_IEL_DIR)
  73. $(CP) $(SOURCE_RELEASE_FILES) $(SOURCE_RELEASE_IEL_DIR)
  74. source_release_install:
  75. source_release_clean:
  76. @echo Cleaning iel source release files
  77. $(RM) *.$(OEXT)
  78. source_release_check:
  79. ###################################
  80. install:
  81. @echo Installing IEL at $(INSTALLLIB)
  82. touch $(INSTALLLIB)/$(LIB) $(INSTALLINC)/$(IEL_H)
  83. mv $(INSTALLLIB)/$(LIB) $(INSTALLLIB)/$(LIB).bak
  84. cp $(LOCALLIB)/$(LIB) $(INSTALLLIB)/$(LIB)
  85. mv $(INSTALLINC)/$(IEL_H) $(INSTALLINC)/$(IEL_H).bak
  86. cp $(LOCALINC)/$(IEL_H) $(INSTALLINC)
  87. release:
  88. @echo Releasing $(LIB) at $(RELEASELIB)
  89. touch $(RELEASELIB)/$(LIB) $(RELEASEINC)/$(IEL_H)
  90. $(MV) $(RELEASELIB)/$(LIB) $(RELEASELIB)/$(LIB).bak
  91. $(CP) $(INSTALLLIB)/$(LIB) $(RELEASELIB)/$(LIB)
  92. $(MV) $(RELEASEINC)/$(IEL_H) $(RELEASEINC)/$(IEL_H).bak
  93. $(CP) $(INSTALLINC)/$(IEL_H) $(RELEASEINC)/$(IEL_H)
  94. clean:
  95. ( rcsclean ; exit 0 )
  96. $(RM) *.o func.fp $(LIB)