00001 00002 SERVICES_DIR=$(TARGET_DIRECTORY) 00003 SERVICES_TAB=$(SERVICES_DIR)\services.tab 00004 00005 $(SERVICES_TAB): ..\services.tab 00006 @echo Creating $@ from $** 00007 $(C_PREPROCESSOR) $** > $@ 00008 00009 obj\$(TARGET_DIRECTORY)\sysstubs.obj: $(TARGET_DIRECTORY)\sysstubs.$(ASM_SUFFIX) 00010 00011 obj\$(TARGET_DIRECTORY)\systable.obj: $(TARGET_DIRECTORY)\systable.$(ASM_SUFFIX) 00012 00013 $(TARGET_DIRECTORY)\sysstubs.$(ASM_SUFFIX) $(TARGET_DIRECTORY)\systable.$(ASM_SUFFIX): $(SERVICES_TAB) ..\$(TARGET_DIRECTORY)\table.stb ..\$(TARGET_DIRECTORY)\services.stb 00014 gensrv -d $(TARGET_DIRECTORY) -e $(ASM_SUFFIX) -g $(SERVICES_DIR) $(TARGET_BRACES) -a . -s .. 00015 00016 # 00017 # "nmake genxx" will generate platform-dependent include files 00018 # 00019 00020 !if "$(TARGET_DIRECTORY)"=="alpha" || "$(TARGET_DIRECTORY)"=="axp64" 00021 KS_NAME=ksp$(TARGET_DIRECTORY) 00022 HAL_NAME=halp$(TARGET_DIRECTORY) 00023 00024 !else if "$(TARGET_DIRECTORY)"=="i386" 00025 HAL_NAME=hal386 00026 KS_NAME=ks386 00027 00028 !else 00029 HAL_NAME=hal$(TARGET_DIRECTORY) 00030 KS_NAME=ks$(TARGET_DIRECTORY) 00031 !endif 00032 00033 KS_TARGET =$(_NTROOT)\public\sdk\inc\$(KS_NAME).$(ASM_INCLUDE_SUFFIX) 00034 HAL_TARGET=$(_NTROOT)\private\ntos\inc\$(HAL_NAME).$(ASM_INCLUDE_SUFFIX) 00035 00036 genxx: $(KS_TARGET) $(HAL_TARGET) 00037 00038 # 00039 # If the following invocation of genxx fails, make sure you have a 00040 # current version of genxx. 00041 # 00042 00043 $(KS_TARGET) $(HAL_TARGET): \ 00044 !if $(AXP64) 00045 ..\alpha\genalpha.m4 \ 00046 !endif 00047 ..\$(TARGET_DIRECTORY)\gen$(TARGET_DIRECTORY).m4 \ 00048 ..\genxx.h \ 00049 ..\genxx.inc \ 00050 $(_NTROOT)\public\ddk\inc\ntddk.h 00051 set PASS0ONLY= 00052 if not exist obj\$(TARGET_DIRECTORY) mkdir obj\$(TARGET_DIRECTORY) 00053 -erase obj\$(TARGET_DIRECTORY)\gen$(TARGET_DIRECTORY).obj 00054 -erase ..\$(TARGET_DIRECTORY)\gen$(TARGET_DIRECTORY).c 00055 m4 < ..\$(TARGET_DIRECTORY)\gen$(TARGET_DIRECTORY).m4 \ 00056 > ..\$(TARGET_DIRECTORY)\gen$(TARGET_DIRECTORY).c 00057 nmake -l obj\$(TARGET_DIRECTORY)\gen$(TARGET_DIRECTORY).obj NTNOPCH=1 00058 genxx -$(TARGET_DIRECTORY) 00059 00060