- PROGNAME=
- CFG=
- OUTDIR=
- INTDIR=
- SSL=
- LINKTYPE=
- # Set to 1 to allow the building using the DLL version of SNMPLIB. This is
- # NOT supported as this program is NOT thread safe and it WILL cause
- # problems!
- ALLOW_DLL=0
- !IF "$(OS)" == "Windows_NT"
- NULL=
- !ELSE
- NULL=nul
- !ENDIF
- !IF $(SSL) == 1
- OPENSSL="libeay32.lib"
- !ELSE
- OPENSSL=""
- !ENDIF
- !IF "$(CFG)" == "release"
- ALL : "..bin$(OUTDIR)snmpd.exe" "$(INTDIR)"
- CLEAN :
- -@erase "$(INTDIR)auto_nlist.obj"
- -@erase "$(INTDIR)kernel.obj"
- -@erase "$(INTDIR)snmpd.obj"
- -@erase "$(INTDIR)vc??.idb"
- -@erase "$(INTDIR)winservice.obj"
- -@erase "$(INTDIR)winservice.res"
- -@erase "$(INTDIR)snmpd.pch"
- -@erase "..bin$(OUTDIR)snmpd.exe"
- "..bin$(OUTDIR)" :
- if not exist "..bin$(OUTDIR)/$(NULL)" mkdir "..bin$(OUTDIR)"
- "$(INTDIR)" :
- if not exist "$(INTDIR)/$(NULL)" mkdir "$(INTDIR)"
- CPP=cl.exe
- CPP_PROJ=/nologo /MD /W3 /GX /O2 /I "." /I ".." /I "....snmplib" /I "...." /I "....include" /I "....agent" /I "....agentmibgroup" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /D "HAVE_WIN32_PLATFORM_SDK" /Fp"$(INTDIR)snmpd.pch" /YX /Fo"$(INTDIR)\" /Fd"$(INTDIR)\" /FD /c
- .c{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
- <<
- .cpp{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
- <<
- .cxx{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
- <<
- .c{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
- <<
- .cpp{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
- <<
- .cxx{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
- <<
- RSC=rc.exe
- RSC_PROJ=/l 0x409 /fo"$(INTDIR)winservice.res" /d "NDEBUG"
- BSC32=bscmake.exe
- BSC32_FLAGS=/nologo /o"$(INTDIR)snmpd.bsc"
- BSC32_SBRS=
- LINK32=link.exe
- LINK32_FLAGS=$(OPENSSL) netsnmp.lib netsnmpagent.lib netsnmpmibs.lib netsnmphelpers.lib advapi32.lib ws2_32.lib kernel32.lib user32.lib iphlpapi.lib /nologo /subsystem:console /pdb:none /machine:I386 /out:"..bin$(OUTDIR)/snmpd.exe" /libpath:"../lib/release"
- LINK32_OBJS=
- "$(INTDIR)auto_nlist.obj"
- "$(INTDIR)kernel.obj"
- "$(INTDIR)snmpd.obj"
- "$(INTDIR)winservice.obj"
- "$(INTDIR)winservice.res"
- "..bin$(OUTDIR)snmpd.exe" : "..bin$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
- !IF "$(LINKTYPE)" == "static" || "$(ALLOW_DLL)" == "1"
- $(LINK32) @<<
- $(LINK32_FLAGS) $(LINK32_OBJS)
- <<
- !ELSE # Linktype check
- -@echo .
- -@echo Aborting build. Applications can not be built using --linktype=dynamic
- -@echo .
- !ENDIF
- !ELSEIF "$(CFG)" == "debug"
- ALL : "..bin$(OUTDIR)snmpd.exe" "$(INTDIR)snmpd.bsc" "$(INTDIR)"
- CLEAN :
- -@erase "$(INTDIR)auto_nlist.obj"
- -@erase "$(INTDIR)auto_nlist.sbr"
- -@erase "$(INTDIR)kernel.obj"
- -@erase "$(INTDIR)kernel.sbr"
- -@erase "$(INTDIR)snmpd.obj"
- -@erase "$(INTDIR)snmpd.sbr"
- -@erase "$(INTDIR)vc??.idb"
- -@erase "$(INTDIR)vc??.pdb"
- -@erase "$(INTDIR)winservice.obj"
- -@erase "$(INTDIR)winservice.res"
- -@erase "$(INTDIR)winservice.sbr"
- -@erase "$(INTDIR)snmpd.bsc"
- -@erase "$(INTDIR)snmpd.pdb"
- -@erase "$(INTDIR)snmpd.pch"
- -@erase "..bin$(OUTDIR)snmpd.exe"
- "..bin$(OUTDIR)" :
- if not exist "..bin$(OUTDIR)/$(NULL)" mkdir "..bin$(OUTDIR)"
- "$(INTDIR)" :
- if not exist "$(INTDIR)/$(NULL)" mkdir "$(INTDIR)"
- CPP=cl.exe
- CPP_PROJ=/nologo /MDd /W3 /Gm /GX /Zi /Od /I "." /I ".." /I "....snmplib" /I "...." /I "....include" /I "....agent" /I "....agentmibgroup" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D "HAVE_WIN32_PLATFORM_SDK" /FR"$(INTDIR)\" /Fp"$(INTDIR)snmpd.pch" /YX /Fo"$(INTDIR)\" /Fd"$(INTDIR)\" /FD /c
- .c{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
- <<
- .cpp{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
- <<
- .cxx{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
- <<
- .c{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
- <<
- .cpp{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
- <<
- .cxx{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
- <<
- RSC=rc.exe
- RSC_PROJ=/l 0x409 /fo"$(INTDIR)winservice.res" /d "_DEBUG"
- BSC32=bscmake.exe
- BSC32_FLAGS=/nologo /o"$(INTDIR)snmpd.bsc"
- BSC32_SBRS=
- "$(INTDIR)auto_nlist.sbr"
- "$(INTDIR)kernel.sbr"
- "$(INTDIR)snmpd.sbr"
- "$(INTDIR)winservice.sbr"
- "$(INTDIR)snmpd.bsc" : "..bin$(OUTDIR)" $(BSC32_SBRS)
- $(BSC32) @<<
- $(BSC32_FLAGS) $(BSC32_SBRS)
- <<
- LINK32=link.exe
- LINK32_FLAGS=$(OPENSSL) netsnmp.lib netsnmpagent.lib netsnmpmibs.lib netsnmphelpers.lib advapi32.lib ws2_32.lib kernel32.lib user32.lib iphlpapi.lib /nologo /subsystem:console /incremental:no /pdb:"$(INTDIR)snmpd.pdb" /debug /machine:I386 /out:"..bin$(OUTDIR)/snmpd.exe" /pdbtype:sept /libpath:"../lib/debug"
- LINK32_OBJS=
- "$(INTDIR)auto_nlist.obj"
- "$(INTDIR)kernel.obj"
- "$(INTDIR)snmpd.obj"
- "$(INTDIR)winservice.obj"
- "$(INTDIR)winservice.res"
- "..bin$(OUTDIR)snmpd.exe" : "..bin$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
- !IF "$(LINKTYPE)" == "static" || "$(ALLOW_DLL)" == "1"
- $(LINK32) @<<
- $(LINK32_FLAGS) $(LINK32_OBJS)
- <<
- !ELSE # Linktype check
- -@echo .
- -@echo Aborting build. Applications can not be built using --linktype=dynamic
- -@echo .
- !ENDIF
- !ENDIF
- !IF "$(NO_EXTERNAL_DEPS)" != "1"
- !IF EXISTS("snmpd.dep")
- !INCLUDE "snmpd.dep"
- !ELSE
- !MESSAGE Warning: cannot find "snmpd.dep"
- !ENDIF
- !ENDIF
- !IF "$(CFG)" == "release" || "$(CFG)" == "debug"
- SOURCE=....agentauto_nlist.c
- !IF "$(CFG)" == "release"
- "$(INTDIR)auto_nlist.obj" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
- !ELSEIF "$(CFG)" == "debug"
- "$(INTDIR)auto_nlist.obj" "$(INTDIR)auto_nlist.sbr" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
- !ENDIF
- SOURCE=....agentkernel.c
- !IF "$(CFG)" == "release"
- "$(INTDIR)kernel.obj" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
- !ELSEIF "$(CFG)" == "debug"
- "$(INTDIR)kernel.obj" "$(INTDIR)kernel.sbr" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
- !ENDIF
- SOURCE=....agentsnmpd.c
- !IF "$(CFG)" == "release"
- "$(INTDIR)snmpd.obj" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
- !ELSEIF "$(CFG)" == "debug"
- "$(INTDIR)snmpd.obj" "$(INTDIR)snmpd.sbr" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
- !ENDIF
- SOURCE=....snmplibwinservice.c
- !IF "$(CFG)" == "release"
- "$(INTDIR)winservice.obj" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
- !ELSEIF "$(CFG)" == "debug"
- "$(INTDIR)winservice.obj" "$(INTDIR)winservice.sbr" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
- !ENDIF
- SOURCE=....snmplibwinservice.rc
- !IF "$(CFG)" == "release"
- "$(INTDIR)winservice.res" : $(SOURCE) "$(INTDIR)"
- $(RSC) /l 0x409 /fo"$(INTDIR)winservice.res" /i "....snmplib" /d "NDEBUG" $(SOURCE)
- !ELSEIF "$(CFG)" == "debug"
- "$(INTDIR)winservice.res" : $(SOURCE) "$(INTDIR)"
- $(RSC) /l 0x409 /fo"$(INTDIR)winservice.res" /i "....snmplib" /d "_DEBUG" $(SOURCE)
- !ENDIF
- !ENDIF