Makefile.bcc
上传用户:cnryan
上传日期:2008-12-15
资源大小:260k
文件大小:4k
- ############################################################################
##
## Makefile.bcc
##
## SNMP++v3.2.21
## -----------------------------------------------
## Copyright (c) 2001-2006 Jochen Katz, Frank Fock
##
## This software is based on SNMP++2.6 from Hewlett Packard:
##
## Copyright (c) 1996
## Hewlett-Packard Company
##
## ATTENTION: USE OF THIS SOFTWARE IS SUBJECT TO THE FOLLOWING TERMS.
## Permission to use, copy, modify, distribute andor sell this software
## andor its documentation is hereby granted without fee. User agrees
## to display the above copyright notice and this license notice in all
## copies of the software and any documentation of the software. User
## agrees to assume all liability for the use of the software;
## Hewlett-Packard and Jochen Katz make no representations about the
## suitability of this software for any purpose. It is provided
## "AS-IS" without warranty of any kind, either express or implied. User
## hereby grants a royalty-free license to any and all derivatives based
## upon this software code base.
##
## Stuttgart, Germany, Fri Jun 16 17:48:57 CEST 2006
##
##########################################################################*
- CXX = bcc32
- CXXFLAGS = -P -tWM -DWIN32=1 -DSNMP_PP_NATIVE_EXPORTS=1
- LIBDESDIR = ....libdes
- LIBDES = $(LIBDESDIR)libdes.lib
- INCLUDES = -I..include -I. -I$(LIBDESDIR)
- #
- # Header Files
- #
- USERHEADERS = ..includeaddress.h ..includecounter.h ..includectr64.h
- ..includegauge.h ..includeoctet.h ..includeoid.h
- ..includepdu.h ..includesmi.h ..includetarget.h
- ..includetimetick.h ..includevb.h ..includesnmp_pp.h
- ..includeinteger.h ..includesmival.h ..includesnmperrs.h
- ..includecollect.h ..includeoid_def.h ..includeasn1.h
- ..includesnmpmsg.h ..includev3.h ..includesha.h
- ..includeusm_v3.h ..includemp_v3.h ..includeidea.h
- ..includeconfig_snmp_pp.h ..includeauth_priv.h
- ..includereentrant.h
- UXHEADERS = ..includemsgqueue.h ..includeuserdefined.h
- ..includeusertimeout.h ..includeeventlist.h
- ..includemsec.h ..includenotifyqueue.h
- HEADERS = $(USERHEADERS) $(UXHEADERS)
- #
- # Object Files produced
- #
- OBJS = address.obj counter.obj ctr64.obj gauge.obj integer.obj octet.obj
- oid.obj pdu.obj target.obj timetick.obj vb.obj asn1.obj snmpmsg.obj
- uxsnmp.obj eventlist.obj msgqueue.obj userdefined.obj usertimeout.obj
- msec.obj notifyqueue.obj sha.obj v3.obj usm_v3.obj mp_v3.obj idea.obj
- auth_priv.obj reentrant.obj md5c.obj
- P1OBJ = test_app.obj
- #
- # Libraries: dependencies and produced
- #
- LIBDIR = ..lib
- SNMP_PP_LIB = snmp_pp.lib
- SNMP_PP_DLL = snmp_pp.dll
- #
- # Here for a quick sanity check upon completing a build...
- #
- PROG1 = test_app.exe
- .SUFFIXES: .cpp .C
- .cpp.obj:
- $(CXX) $(CXXFLAGS) $(INCLUDES) -c {$? }
- #
- # Build rules
- #
- all: $(SNMP_PP_LIB) $(SNMP_PP_DLL) $(PROG1)
- $(PROG1): $(SNMP_PP_LIB) $(P1OBJ)
- $(CXX) $(CXXFLAGS) $(INCLUDES) $(P1OBJ) $(LIBDIR)$(SNMP_PP_LIB)
- $(LIBDES) -e$(PROG1)
- $(SNMP_PP_LIB): $(OBJS)
- -@if not exist $(LIBDIR) mkdir $(LIBDIR)
- tlib $(LIBDIR)$(SNMP_PP_LIB) /a $(OBJS)
- lib: $(SNMP_PP_LIB)
- $(SNMP_PP_DLL): $(OBJS)
- -@if not exist $(LIBDIR) mkdir $(LIBDIR)
- bcc32 -tWD -e$(LIBDIR)$(SNMP_PP_DLL) $(OBJS) $(LIBDES) $(W32LIBS)
- dll: $(SNMP_PP_DLL)
- clean:
- @echo Cleaning up...
- -@if exist *.obj del *.obj >nul
- -@if exist *.lib del *.lib >nul
- -@if exist $(LIBDIR)*.lib del $(LIBDIR)*.lib >nul
- -@if exist $(LIBDIR)*.dll del $(LIBDIR)*.dll >nul
- -@if exist $(LIBDIR)*.tds del $(LIBDIR)*.tds >nul
- -@if exist *.exe del *.exe >nul
- #
- # Dependency rules
- #
- $(P1OBJ): $(HEADERS)
- $(OBJS): $(HEADERS)