Makefile.bcc 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. ############################################################################
  2. ##
  3. ## Makefile.bcc
  4. ##
  5. ## SNMP++v3.2.23
  6. ## -----------------------------------------------
  7. ## Copyright (c) 2001-2007 Jochen Katz, Frank Fock
  8. ##
  9. ## This software is based on SNMP++2.6 from Hewlett Packard:
  10. ##
  11. ## Copyright (c) 1996
  12. ## Hewlett-Packard Company
  13. ##
  14. ## ATTENTION: USE OF THIS SOFTWARE IS SUBJECT TO THE FOLLOWING TERMS.
  15. ## Permission to use, copy, modify, distribute andor sell this software
  16. ## andor its documentation is hereby granted without fee. User agrees
  17. ## to display the above copyright notice and this license notice in all
  18. ## copies of the software and any documentation of the software. User
  19. ## agrees to assume all liability for the use of the software;
  20. ## Hewlett-Packard and Jochen Katz make no representations about the
  21. ## suitability of this software for any purpose. It is provided
  22. ## "AS-IS" without warranty of any kind, either express or implied. User
  23. ## hereby grants a royalty-free license to any and all derivatives based
  24. ## upon this software code base.
  25. ##
  26. ## Stuttgart, Germany, Sun Nov 11 15:10:59 CET 2007
  27. ##
  28. ##########################################################################*
  29. CXX = bcc32
  30. CXXFLAGS = -P -tWM -DWIN32=1 -DSNMP_PP_NATIVE_EXPORTS=1
  31. LIBDESDIR = ..\..\libdes
  32. LIBDES =$(LIBDESDIR)\libdes.lib
  33. GET = snmpGet.exe
  34. GETOBJS = snmpGet.obj
  35. SET = snmpSet.exe
  36. SETOBJS = snmpSet.obj
  37. NEXT = snmpNext.exe
  38. NEXTOBJS = snmpNext.obj
  39. WALK = snmpWalk.exe
  40. WALKOBJS = snmpWalk.obj
  41. BULKWALK = snmpBulk.exe
  42. BULKWALKOBJS = snmpBulk.obj
  43. TRAPSEND = snmpTraps.exe
  44. TRAPSENDOBJS = snmpTraps.obj
  45. TRAPRECEIVE = receive_trap.exe
  46. TRAPRECEIVEOBJS = receive_trap.obj
  47. INFORM = snmpInform.exe
  48. INFORMOBJS = snmpInform.obj
  49. PASSWD = snmpPasswd.exe
  50. PASSWDOBJS = snmpPasswd.obj
  51. WALKTHREADS = snmpWalkThreads.exe
  52. WALKTHREADSOBJS = snmpWalkThreads.obj
  53. TESTAPP = test_app.exe
  54. TESTAPPOBJS = test_app.obj
  55. OBJS = $(GETOBJS) $(SETOBJS) $(NEXTOBJS) $(WALKOBJS) $(TESTAPPOBJS) \
  56. $(BULKWALKOBJS) $(TRAPSENDOBJS) $(TRAPRECEIVEOBJS) $(INFORMOBJS) \
  57. $(PASSWDOBJS) $(WALKTHREADSOBJS)
  58. TARGETS = $(GET) $(SET) $(NEXT) $(WALK) $(BULKWALK) $(TESTAPP) \
  59. $(TRAPSEND) $(TRAPRECEIVE) $(INFORM) $(PASSWD) $(WALKTHREADS)
  60. SNMPPLUSDIR = ..
  61. SNMPLIBPATH = $(SNMPPLUSDIR)\lib
  62. RSAEURODIR = ..\..\rsaeuro
  63. HEADERS = ..\include\address.h ..\include\counter.h ..\include\ctr64.h \
  64. ..\include\gauge.h ..\include\octet.h ..\include\oid.h \
  65. ..\include\pdu.h ..\include\smi.h ..\include\target.h \
  66. ..\include\timetick.h ..\include\vb.h ..\include\snmp_pp.h \
  67. ..\include\integer.h ..\include\smival.h ..\include\msgqueue.h \
  68. ..\include\userdefined.h ..\include\usertimeout.h \
  69. ..\include\eventlist.h ..\include\msec.h ..\include\usm_v3.h \
  70. ..\include\v3.h ..\include\mp_v3.h ..\include\sha.h
  71. LIBSNMPPLUS = $(SNMPLIBPATH)\libsnmp_pp.lib
  72. LIBDES = $(LIBDESDIR)\libdes.lib
  73. INCLUDES = -I..\include
  74. .SUFFIXES: .exe .obj .cpp
  75. .cpp.obj:
  76. $(CXX) $(CXXFLAGS) $(INCLUDES) -c $<
  77. .obj.exe:
  78. $(CXX) $(CXXFLAGS) $(LIBSNMPPLUS) $<
  79. all: $(TARGETS)
  80. #
  81. # Dependencies:
  82. #
  83. $(OBJS): $(HEADERS)
  84. clean:
  85. @echo Cleaning up...
  86. -@if exist *.obj del *.obj >nul
  87. -@if exist *.lib del *.lib >nul
  88. -@if exist *.exe del *.exe >nul
  89. -@if exist *.dll del *.dll >nul
  90. -@if exist *.tds del *.tds >nul