📄 makefile.solaris
字号:
## File: makefile# By: Alex Theo de Jong# Created: September 1995# Description:# Makefile for utilities and support functions# # Note# Edit the CC and CPP variables to set either the Sprac# C++ compiler or the GNU g++ compiler.# Operating SystemOS = -DSOLARIS# DirectoriesPIDRDIR = .INSTBIN = ../../Bin/SolarisINSTLIB = ../../../LibINSTINC = ../../../IncATMINC = /usr/fore/include# ToolsCP = cpMV = mvCHMOD = chmod 666RM = rm -fCC = /opt/SUNWspro/bin/cc # gccCPP = CC # g++ -V2.7.2 # -V2.6.3# Compiler optionsEXTERNAL = # -fexternal-templatesATM = -DFORE_ATMPROTOTYPE = # -fno-strict-prototypeDEBUG = -g # gdb -DTRACE # -DDEBUGWARNINGS = # -Wall # List all warnings # -w # Suppress warnings #OPTIMIZE = # -O6 # -O2# Compiler flagsCPPFLAGS = $(DEBUG) $(WARNINGS) $(OPTIMIZE) $(OS) $(ATM) \ $(EXTERNAL) $(PROTOTYPE) -I$(PIDRDIR) -I$(INSTINC) -I$(ATMINC)# Loader/linker flagsLDFLAGS = -L$(INSTLIB)LDLIBS = -lutil -latm -lnsl -lsocket# Things to compile# when using Sparc Compiler: SUNHDRS = String.h Regex.hSUNOBJS = String.o Regex.o gnu_error.o xexit.o xmalloc.o alloca.o rx.oOBJECTS = $(SUNOBJS) athread.o network.oHEADERS = $(SUNHDRS) athread.hh network.hh debug.hh error.hh util.hh TDPList.hhPROGRAM = testLIBRARY = libutil.a# Compile linesall: $(PROGRAM) $(LIBRARY)install: $(LIBRARY)clean: installcleaninstallclean: $(RM) *.o *~ *.~?~ core $(PROGRAM)%.a: $(OBJECTS) $(AR) vrus $(INSTLIB)/$*.a $(OBJECTS) $(CP) *.hh $(INSTINC) $(CHMOD) $(INSTINC)/*.hh $(CP) *.h $(INSTINC) $(CHMOD) $(INSTINC)/*.h.cc.o: $(RM) $@ $(CPP) $(CPPFLAGS) -c $<.c.o: $(RM) $@ $(CC) $(CPPFLAGS) -w -c $<test: test.cc $(LIBRARY) $(RM) $@ $(CPP) $(CPPFLAGS) -o test test.cc $(LDFLAGS) $(LDLIBS)# Dependenciesnetwork.o: network.hh athread.hhathread.o: athread.hhString.o: String.h Regex.o: Regex.h ansidecl.h libiberty.h builtin.hrx.o: rx.h ansidecl.h libiberty.halloca.o: ansidecl.h libiberty.hxmalloc.o: ansidecl.h libiberty.hxexit.o: ansidecl.h libiberty.hgnu_error.o: ansidecl.h
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -