Use 0x0502 instead of 0x0500. There is no 64-bit Windows 2000 support.
Explicitly list the machine type as X64 for linking.
-I$(DESTDIR)\include\rx \
-DWIN32_LEAN_AND_MEAN \
-DSTRICT \
- -D_WIN32_IE=0x0500 \
- -D_WIN32_WINNT=0x0500 \
- -DWINVER=0x0500 \
+ -D_WIN32_IE=0x0502 \
+ -D_WIN32_WINNT=0x0502 \
+ -DWINVER=0x0502 \
-DREGISTER_POWER_NOTIFICATIONS \
-DAFS_AFSDB_ENV \
-DAFS_FREELANCE_CLIENT \
#################### Link optional build flags set ###########
afslflags = $(afslflags) \
- /FIXED:NO /VERBOSE:LIB
+ /FIXED:NO /VERBOSE:LIB /MACHINE:X64
!IF ("$(AFSVER_CL)"=="1400")
afslflags = $(afslflags) /MANIFEST