Source code of Windows XP (NT5)
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.
|
|
!ifndef TargetEnvironment TargetEnvironment=DOS !endif
!IF "$(DEBUG)" == "ON" SUFF=d !ELSE SUFF=r !ENDIF
TARGETS=$(OBJDIR)\awtest.exe RM = rm
!IF "$(TGT)" == "UNIX" ####### Used for CASTELLE ######## OBJDIR = bin CC = gcc RM = rm INC = -I. #ENCOBJ = nsfenc.obj ENCOBJ = prtenc.obj
LIBPATH = LIBS = PATH = OPTS = -o $@ -DPORTABLE -DEXTERNAL -DSUNOS LOPTS = -o $@ ## DBG = -DDEBUG -DDEBUG2 -DTEST ## for final release set DBG = <nothing> ## use SUNOS to get SUNOS timer code
!ELSE IF "$(TGT)" == "NTPDD" ####### Used by OPTUS ######## OBJDIR = portable CC = $(TOOLS_PATH)\msvcnt.200\bin\cl OPTS = -DPORTABLE -DEXTERNAL -Fo$(OBJDIR)\ -Za -DNOGETTICK -DSTDCALL LOPTS = -Fm -Fe$(OBJDIR)\awtest.exe DBG = PATH = LIBS = LIBPATH = $(TOOLS_PATH)\msvcnt.200\lib INC = -I$(TOOLS_PATH)\msvcnt.200\include -I..\..\ifaxdev\h -I. ENCOBJ = ..\support\win32.$(SUFF)\nsfenc.obj
!ELSE IF "$(TGT)" == "DOS" ####### As yet unused ######## MODEL = L OBJDIR = portable CC = $(TOOLS_PATH)\msvc.150\bin\cl OPTS = -DPORTABLE -DEXTERNAL -Fo$(OBJDIR)\ -Za -A$(MODEL) -DDOS LOPTS = -Fm -Fe$(OBJDIR)\awtest.exe -AL DBG = PATH = LIBS = LIBPATH = $(TOOLS_PATH)\msvc.150\lib INC = -I$(TOOLS_PATH)\msvc.150\include -I..\..\ifaxdev\h -I. ENCOBJ = portenc.obj DBG = -DDEBUG
!ELSE IF "$(TGT)" == "DOS_C6" ####### Used for BROOKTROUT ######## MODEL = L
LIBname=$(OBJDIR)\awnsf.lib TARGETS=$(LIBname) $(OBJDIR)\awtest.exe LIBOBJfiles = $(OBJDIR)\awnsf.obj $(ENCOBJ) OBJDIR = DOS_c6$(MODEL) STDCver =c.600 TargetEnvironment=DOS CC = $(TOOLS_PATH)\$(STDCver)\bin\cl LIBUTIL = $(TOOLS_PATH)\$(STDCver)\bin\lib.exe
OPTS = -DNOGETTICK -DPORTABLE -DEXTERNAL -Za -A$(MODEL) -DDOS_C6 LOPTS = -Fm -Fe$(OBJDIR)\awtest.exe -A$(MODEL) /Co DBG = LIBS = $(MODEL)LIBCR.LIB LIBH.LIB PATH = $(TOOLS_PATH)\$(STDCver)\bin;$(TOOLS_PATH)\$(STDCver)\binb LIBPATH = $(TOOLS_PATH)\$(STDCver)\lib INC = -I$(TOOLS_PATH)\$(STDCver)\include -I..\..\ifaxdev\h -I. -I..\common ENCOBJ = ..\support\DOS_c6\$(MODEL)nsfenc.obj ## DBG = -DDEBUG -DDEBUG2 -DTEST
!ELSE IF "$(TGT)" == "DOS_C5" ####### Used for OPTIS ######## LIBname=$(OBJDIR)\awnsf.lib TARGETS=$(LIBname) $(OBJDIR)\awtest.exe LIBOBJfiles = $(OBJDIR)\awnsf.obj $(ENCOBJ)
MODEL = L STDCver=c.510 TargetEnvironment=DOS OBJDIR = DOS_c5$(MODEL) CC = $(TOOLS_PATH)\$(STDCver)\bin\cl LIBUTIL = $(TOOLS_PATH)\$(STDCver)\bin\lib.exe
OPTS = -DNOGETTICK -DPORTABLE -DEXTERNAL -Za -A$(MODEL) -DDOS_C5 LOPTS = -Fm -Fe$(OBJDIR)\awtest.exe -A$(MODEL) /Co DBG = LIBS = $(MODEL)LIBCR.LIB LIBH.LIB PATH = $(TOOLS_PATH)\$(STDCver)\bin;$(TOOLS_PATH)\$(STDCver)\binb LIBPATH = $(TOOLS_PATH)\$(STDCver)\lib INC = -I$(TOOLS_PATH)\$(STDCver)\include -I..\..\ifaxdev\h -I. -I..\common ENCOBJ = ..\support\DOS_c5\$(MODEL)nsfenc.obj
## DBG = -DDEBUG -DDEBUG2 -DTEST
!ENDIF
OBJDIR=$(OBJDIR).$(SUFF)
!IF "$(DEBUG2)" == "ON" DBG = -DDEBUG -DDEBUG2 -Zi !ELSE IF "$(DEBUG)" == "ON" DBG = -DDEBUG -Zi !ENDIF
!IF "$(TEST)" == "ON" DBG = $(DBG) -DTEST !ENDIF
Models=S M L
all: $(TARGETS)
Portable: for %%m in ( $(Models) ) do NMAKE -f makefile.prt TGT=DOS_C6 DEBUG=OFF MODEL=%%m for %%m in ( $(Models) ) do NMAKE -f makefile.prt TGT=DOS_C6 DEBUG=ON MODEL=%%m for %%m in ( $(Models) ) do NMAKE -f makefile.prt TGT=DOS_C5 DEBUG=OFF MODEL=%%m for %%m in ( $(Models) ) do NMAKE -f makefile.prt TGT=DOS_C5 DEBUG=ON MODEL=%%m
$(OBJDIR)\awtest.exe: $(OBJDIR)\awnsf.obj $(OBJDIR)\awtest.obj $(ENCOBJ) @if not exist $(OBJDIR) mkdir $(OBJDIR) set PATH=$(PATH) set LIB=$(LIBPATH) set CL=$(LOPTS) $(**) $(LIBS) $(CC) /Fe$@
.c{$(OBJDIR)}.obj: @if not exist $(OBJDIR) mkdir $(OBJDIR) set PATH=$(PATH) set INCLUDE=$(INC) set CL=$(OPTS) $(DBG) $(INC) $(CC) -c -Fo$(OBJDIR)\ $<
!ifdef LIBname $(LIBname): $(LIBOBJfiles) -$(RM) $@ > NUL $(LIBUTIL) @<<response.lnk $* y $(**: = &^ +) $*.lst <<KEEP !endif
cleanall: $(RM) $(OBJDIR)\*.obj $(OBJDIR)\*.exe
|