# Nmake macros for building Windows 32-Bit apps !include !if ("$(TARGETOS)" == "WINNT") && ("$(CPU)" == "IA64") !message Sorry, this is not supported on the IA64 platforms. !else PROJ = SendToFaxRecipientCPP all: $(OUTDIR) $(OUTDIR)\$(PROJ).exe !message $(OUTDIR) $(OUTDIR) : if not exist "$(OUTDIR)/$(NULL)" mkdir $(OUTDIR) # Define project specific macros PROJ_OBJS = $(OUTDIR)\SendToFaxRecipient.obj INCLUDE = $(DXSDKROOT)\Include;$(INCLUDE) $(PROJ_OBJS) : SendToFaxRecipient.cpp SendToFaxRecipient.h $(cc) $(cdebug) $(cflags) /Od /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" /Gm /EHsc /RTC1 /c /Wp64 /TP SendToFaxRecipient.cpp $(cvarsdll) /Fo"$(OUTDIR)\\" /Fd"$(OUTDIR)\\" INCLUDE = $(DXSDKROOT)\Include;$(INCLUDE) EXTRA_LIBS = $(STRMBASE) kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib fxsutility.lib uuid.lib odbc32.lib odbccp32.lib !IFDEF NODEBUG DEBUG= !ELSE DEBUG=/DEBUG /PDB:$(OUTDIR)\SendToFaxRecipientCPP.pdb !ENDIF # Build rule for EXE $(OUTDIR)\$(PROJ).EXE: $(BASE_OBJS) $(PROJ_OBJS) $(link) /OUT:$(OUTDIR)\SendToFaxRecipientCPP.exe /INCREMENTAL $(PROJ_OBJS) $(DEBUG) /SUBSYSTEM:CONSOLE /MACHINE:$(CPU) $(EXTRA_LIBS) # embedd the manifest if exist $@.manifest mt.exe -manifest $@.manifest -outputresource:$@;1 # Rules for cleaning out old files clean: $(CLEANUP) !endif