📄 makefile.linux
字号:
## Makefile for building SNMP++ X11 Example #### Copyright (c) 1996# Hewlett-Packard Company## ATTENTION: USE OF THIS SOFTWARE IS SUBJECT TO THE FOLLOWING TERMS.# Permission to use, copy, modify, distribute and/or sell this software# and/or 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# makes 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.XMIBTEST = xmibqueryXMIBTESTOBJS = xmibquery.o xmibform.oTARGETS = $(XMIBTEST)SNMPPLUSDIR = ..COPTIONS = -DGCCCINCDIRS = -I$(SNMPPLUSDIR)/includeXINCDIRS = -DSNMPX11 -I/usr/X11R6/include USEROPTS = -gCFLAGS = $(COPTIONS) $(CINCDIRS) $(XINCDIRS) $(USEROPTS)LDFLAGS = $(CFLAGS)HEADERS = ../include/address.h ../include/counter.h ../include/ctr64.h \ ../include/gauge.h ../include/octet.h ../include/oid.h \ ../include/pdu.h ../include/smi.h ../include/target.h \ ../include/timetick.h ../include/vb.h ../include/snmp_pp.h \ ../include/integer.h ../include/smival.h ../include/msgqueue.h \ ../include/userdefined.h ../include/usertimeout.h \ ../include/eventlist.h ../include/msec.hXLIBS = -L/usr/X11R6/lib -L/usr/lib -lXm -lXt -lX11 -lmLIBSNMPPLUS = $(SNMPPLUSDIR)/src/libsnmp++.aLIBXSNMPPLUS = $(SNMPPLUSDIR)/src/libsnmpx11.aCC = cc -AaCPP = $(PURE) g++ LD = $(PURE) g++ .c.o: $(CC) $(CFLAGS) -c $<.C.o: $(CPP) $(CFLAGS) -c $<.cpp.o: $(CPP) $(CFLAGS) -c $<all: $(TARGETS)$(XMIBTEST): $(LIBXSNMPPLUS) $(XMIBTESTOBJS) $(LD) $(LDFLAGS) $(XMIBTESTOBJS) $(LIBXSNMPPLUS) \ $(XLIBS) -o $(XMIBTEST) ## Dependencies:#$(XMIBTESTOBJS): $(HEADERS)run: -for file in $(TARGETS); do \ $$file || echo "\n$$file FAILED\n"; \ doneclean: -rm -f *.o *.a *~ coreclobber: clean -rm -f $(TARGETS)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -