📄 makefile.in
字号:
# top level makefile for p4P4ARCH = @P4ARCH@MAKE = @MAKE@top_srcdir = @top_srcdir@srcdir = @srcdir@libbuild_dir = @libbuild_dir@SHELL=/bin/sh@VPATH@ MFLAGS = #MFLAGS = -i # for alliant fx/8 P4_DIRS = lib alog usc include bin servers MPD_HOME = ../../mpdEXAMPLES_DIRS = contrib messages monitors# keep other p4 stuff in ch_p4/p4 directory; this is for p4mpdALL_DIRS = $(P4_DIRS) lib_f#ALL_DIRS = $(P4_DIRS) $(EXAMPLES_DIRS) \# lib_f messages_f contrib_f doc usc/usctest miscDIRS = $(ALL_DIRS)RM = /bin/rmall: @echo making p4 on architecture=$(P4ARCH)# @$(MAKE) makefiles P4ARCH=$(P4ARCH) @$(MAKE) $(MFLAGS) links P4ARCH=$(P4ARCH) @$(MAKE) mpdstuff @for dir in $(DIRS) ;\ do \ echo " " ;\ echo making p4 in directory $$dir ;\ (cd $$dir; $(MAKE) $(MFLAGS) default) ;\ done p4: @echo making p4 on architecture=$(P4ARCH) @$(MAKE) makefiles P4ARCH=$(P4ARCH) @$(MAKE) $(MFLAGS) links P4ARCH=$(P4ARCH) @$(MAKE) mpdstuff @for dir in $(P4_DIRS) ;\ do \ echo " " ;\ echo making p4 in directory $$dir ;\ (cd $$dir; $(MAKE) $(MFLAGS) default) ;\ done ## Make sure the MAKE is the last statement in the (cd xxx; make) to ensure# that an error causes the make to abort right there# The following code duplicates part of the build and creates an unnecessary # libp4 in a local directory.# @for dir in $(P4_DIRS) ;\# do \# echo " " ;\# echo making p4 in directory $$dir ;\# (cd $$dir; $(MAKE) $(MFLAGS) default) ;\# done p4inmpi: @echo making p4 on architecture=$(P4ARCH) @$(MAKE) $(MFLAGS) p4links P4ARCH=$(P4ARCH) @$(MAKE) mpdstuff (cd lib; $(MAKE) $(MFLAGS) MPIARCH=$(MPIARCH) \ MPILIBNAME=$(MPILIBNAME) p4inmpi ) (cd alog; $(MAKE) $(MFLAGS) MPIARCH=$(MPIARCH) \ MPILIBNAME=$(MPILIBNAME) p4inmpi ) (cd usc; $(MAKE) $(MFLAGS) MPIARCH=$(MPIARCH) \ MPILIBNAME=$(MPILIBNAME) p4inmpi )# # If we don't find the file, remove it anyway incase it is a dangling linkp4links:# @if [ -f lib/p4_config.h ] ;\# then\# true ;\# else\# ${MAKE} config_hdr P4ARCH=$(P4ARCH) ;\# fi @if [ -f include/alog.h ] ;\ then\ true ;\ else\ (cd include ;\ rm -f alog.h alog_evntdfs.h ; \ ln -s ${top_srcdir}/alog/alog.h . ;\ ln -s ${top_srcdir}/alog/alog_evntdfs.h . ;\ ) ;\ fi @if [ -f include/usc.h ] ;\ then\ true ;\ else\ (cd include ;\ rm -f usc.h usc_sys.h ; \ ln -s ${top_srcdir}/usc/usc.h . ;\ ln -s ${top_srcdir}/usc/usc_sys.h . ;\ ) ;\ fi @if [ -f include/p4.h ] ;\ then\ true ;\ else\ (cd include ;\ rm -f p4.h p4_MD.h p4_config.h p4_defs.h p4_funcs.h p4_globals.h ;\ rm -f p4_macros.h p4_mon.h p4_patchlevel.h p4_sock_util.h ;\ rm -f p4_sr.h p4_sys.h p4_sys_funcs.h stcdchi.h ; \ ln -s ${top_srcdir}/lib/p4.h . ;\ ln -s ${top_srcdir}/lib/p4_MD.h . ;\ ln -s ${top_srcdir}/lib/p4_defs.h . ;\ ln -s ${top_srcdir}/lib/p4_funcs.h . ;\ ln -s ${top_srcdir}/lib/p4_globals.h . ;\ ln -s ${top_srcdir}/lib/p4_macros.h . ;\ ln -s ${top_srcdir}/lib/p4_mon.h . ;\ ln -s ${top_srcdir}/lib/p4_patchlevel.h . ;\ ln -s ${top_srcdir}/lib/p4_sock_util.h . ;\ ln -s ${top_srcdir}/lib/p4_sr.h . ;\ ln -s ${top_srcdir}/lib/p4_sys.h . ;\ ln -s ${top_srcdir}/lib/p4_sys_funcs.h . ;\ ln -s ${top_srcdir}/lib/sfcdchi.h . ;\ ln -s ../p4_config.h . ;\ ) ;\ filinks: @if [ -f include/alog.h ] ;\ then\ true ;\ else\ (cd include ;\ rm -f alog.h alog_evntdfs.h ; \ ln -s ${top_srcdir}/alog/alog.h . ;\ ln -s ${top_srcdir}/alog/alog_evntdfs.h . ;\ ) ;\ fi @if [ -f include/usc.h ] ;\ then\ true ;\ else\ (cd include ;\ rm -f usc.h usc_sys.h ; \ ln -s ${top_srcdir}/usc/usc.h . ;\ ln -s ${top_srcdir}/usc/usc_sys.h . ;\ ) ;\ fi @if [ -f include/p4.h ] ;\ then\ true ;\ else\ (cd include ;\ rm -f p4.h p4_MD.h p4_config.h p4_defs.h p4_funcs.h p4_globals.h ;\ rm -f p4_macros.h p4_mon.h p4_patchlevel.h p4_sock_util.h ;\ rm -f p4_sr.h p4_sys.h p4_sys_funcs.h stcdchi.h ; \ ln -s ${top_srcdir}/lib/p4.h . ;\ ln -s ${top_srcdir}/lib/p4_MD.h . ;\ ln -s ${top_srcdir}/lib/p4_config.h . ;\ ln -s ${top_srcdir}/lib/p4_defs.h . ;\ ln -s ${top_srcdir}/lib/p4_funcs.h . ;\ ln -s ${top_srcdir}/lib/p4_globals.h . ;\ ln -s ${top_srcdir}/lib/p4_macros.h . ;\ ln -s ${top_srcdir}/lib/p4_mon.h . ;\ ln -s ${top_srcdir}/lib/p4_patchlevel.h . ;\ ln -s ${top_srcdir}/lib/p4_sock_util.h . ;\ ln -s ${top_srcdir}/lib/p4_sr.h . ;\ ln -s ${top_srcdir}/lib/p4_sys.h . ;\ ln -s ${top_srcdir}/lib/p4_sys_funcs.h . ;\ ln -s ${top_srcdir}/lib/sfcdchi.h . ;\ ) ;\ fi @if [ -f messages_f/p4f.h ] ;\ then\ true ;\ else\ (cd messages_f; \ rm -f p4f.h ;\ ln -s ${top_srcdir}/lib_f/p4f.h . ; cd ..) ;\ fi @if [ -f contrib_f/p4f.h ] ;\ then\ true ;\ else\ (cd contrib_f; \ rm -f p4f.h ; \ ln -s ${top_srcdir}/lib_f/p4f.h . ; cd ..) ;\ fimpdstuff: @echo "making mpdstuff ..." @( cd $(MPD_HOME); $(MAKE) )clean: @for dir in $(DIRS) ;\ do \ echo cleaning $$dir ;\ (cd $$dir; $(MAKE) clean) ;\ done $(RM) -f *~ *.o *.bak @(cd $(MPD_HOME); if [ -f Makefile ] ; then $(MAKE) clean ; fi)dist: realclean realclean: @for dir in $(DIRS) ;\ do \ if test -s $$dir/Makefile ; then \ echo cleaning $$dir ;\ (cd $$dir; $(MAKE) realclean) ; fi ;\ done $(RM) -f *~ *.o *.bak Makefile mdepcflagsMakefiles: makefilesINSTALLDIR = ./$(P4ARCH)install: @echo installing p4 in $(INSTALLDIR) @if [ -d $(INSTALLDIR) ] ;\ then\ echo 'using existing directory $(INSTALLDIR)' ;\ else\ mkdir $(INSTALLDIR) ;\ fi @cp Makefile $(INSTALLDIR)## @mkdir $(INSTALLDIR)/util## @cp util/* $(INSTALLDIR)/util @mkdir $(INSTALLDIR)/include @cp include/*.h $(INSTALLDIR)/include @mkdir $(INSTALLDIR)/lib @cp lib/libp4.a $(INSTALLDIR)/lib @grep RANLIB util/defs.MD > $(INSTALLDIR)/lib/makeranlib @echo "doran:" >> $(INSTALLDIR)/lib/makeranlib @echo ' $$(RANLIB) libp4.a' >> $(INSTALLDIR)/lib/makeranlib @(cd $(INSTALLDIR)/lib; $(MAKE) -f makeranlib doran; $(RM) makeranlib) @mkdir $(INSTALLDIR)/bin @cp bin/* $(INSTALLDIR)/bin @mkdir $(INSTALLDIR)/examples @cp messages/sr_test.c messages/sr_user.h \ messages/systest.c messages/makefile.proto \ messages/run_ipsc messages/run_ncube messages/run_delta \ messages/sr_test.pg messages/systest.pg $(INSTALLDIR)/examples @sed -e "s@P4_HOME_DIR = ..@P4_HOME_DIR = $(INSTALLDIR)@" \ $(INSTALLDIR)/examples/makefile.proto > $(INSTALLDIR)/temp @mv $(INSTALLDIR)/temp $(INSTALLDIR)/examples/makefile.proto @$(MAKE) makefiles DIRS=$(INSTALLDIR)/examples @(cd $(INSTALLDIR)/examples; $(MAKE) sr_test systest) @mkdir $(INSTALLDIR)/lib_f @cp lib_f/libp4_f.a lib_f/*.h $(INSTALLDIR)/lib_f @grep RANLIB util/defs.MD > $(INSTALLDIR)/lib_f/makeranlib @echo "doran:" >> $(INSTALLDIR)/lib_f/makeranlib @echo ' $$(RANLIB) libp4_f.a' >> $(INSTALLDIR)/lib_f/makeranlib @(cd $(INSTALLDIR)/lib_f; $(MAKE) -f makeranlib doran; $(RM) makeranlib) @mkdir $(INSTALLDIR)/examples_f @cp messages_f/sr_test.f messages_f/p4f.h \ messages_f/makefile.proto \ messages_f/sr_test.pg $(INSTALLDIR)/examples_f @sed -e "s@P4_HOME_DIR = ..@P4_HOME_DIR = $(INSTALLDIR)@" \ $(INSTALLDIR)/examples_f/makefile.proto > $(INSTALLDIR)/temp @mv $(INSTALLDIR)/temp $(INSTALLDIR)/examples_f/makefile.proto @$(MAKE) makefiles DIRS=$(INSTALLDIR)/examples_f @(cd $(INSTALLDIR)/examples_f; $(MAKE) sr_test) @echo installed p4 in $(INSTALLDIR)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -