foot.mk

来自「有限元学习研究用源代码(老外的),供科研人员参考」· MK 代码 · 共 220 行

MK
220
字号
.PRECIOUS: $(LIB)
.SUFFIXES: .tex .h-tex .c-tex .dvi .ps .html .html-dir .cc .cxx .ibg \
.cog .sgz .geo .html .sh .pl .F .so .lua

.c.o:
	@echo compiling $< '--->' $@ 
	@$(CC) $(CFLAGS) -c -o $@ $<

.c.so:	
	@echo compiling $< '--->' $@ 
	@$(CC)  $(CFLAGS) -c -o $@ $< $(SHLDFLAGS) 
 

.f.o:
	@echo compiling $< '--->' $@ 
	@$(FC) $(FFLAGS) -c -o $@ $<
.F.o:
	@echo compiling $< '--->' $@ 
	@$(FC) $(FFLAGS) -c -o $@ $<


.cxx.o:
	@echo compiling $< '--->' $@ 
	@$(CXX) $(CXXFLAGS) -c -o $@ $< 

.cxx:
	@echo compiling $< '--->' $@ 
	@$(CXX) $(CXXFLAGS) -o $@ $< $(LDFLAGS) $(LOADLIBES) 

.cc.o:
	@echo compiling $< '--->' $@ 
	@$(CXX) $(CXXFLAGS) -c -o $@ $< 
	-rm -f $@.o

.c:
	@echo compiling $< '--->' $@ 
	@$(CC) $(CFLAGS) $< -o $(TMPDIR)/$@ $(LDFLAGS) $(LOADLIBES) 
	cp $(TMPDIR)/$@ $@
	rm -f $(TMPDIR)/$@
	-rm -f $@.o
.f:
	@echo compiling $< '--->' $@ 
	@$(FC) $(FFLAGS) $< -o $(TMPDIR)/$@ $(LDFLAGS) $(LOADLIBES) 
	cp $(TMPDIR)/$@ $@
	rm -f $(TMPDIR)/$@
	-rm -f $@.o

.sh:
	@echo compiling $< '--->' $@ 
	@cp $< $@
	@chmod +wx $@

.pl:
	@echo compiling $< '--->' $@ 
	@cp $< $@
	@chmod +wx $@

.lua:
	@echo compiling $< '--->' $@
	@echo \#!$(BINDIR)/pdelib > $(TMPDIR)/pdelib.tmp 
	@cat $(TMPDIR)/pdelib.tmp  $< > $@
	@rm $(TMPDIR)/pdelib.tmp
	@chmod +x $@


.h.h-tex:
	c2latex $< > $@

.c.c-tex:
	c2latex $< > $@

.tex.dvi:
	-latex $<
	-bibtex `echo $< |cut -f1 -d.`
	-latex $<
	-bibtex `echo $< | cut -f1 -d.`
	-latex $<

.dvi.ps:
	dvips $< -o $@


.tex.html:
	latex2html -init_file $(PDELIB_HOME)/modules/tools/latex2html-page.pl $<
	@rm -f .*.dir .*.pag *.css
#	@rm -f index.html 

.tex.html-dir:
	latex2html -init_file $(PDELIB_HOME)/modules/tools/latex2html-dir.pl -dir $@ $<



oclean: 
	-@rm -f *.o

lib: $(OBJ)
	-@if test -f *.o ; then echo $(AR) rv $(LIB) *.o ; $(AR) rv $(LIB) *.o  ; rm *.o ;  fi
	-@if test x$(SHLIB) != x ; then  echo making shlib;\
          ld -o $(SHLIB) $(SHLDFLAGS) $(LIB) $(LOADLIBES) ; fi


bin: $(BIN)
none:


bininstall:
	@if test ! 'x$(BIN)' = x ; then \
 for file in xxx-xxx-xxx $(BIN) ; do \
   if test -f $$file ; then \
   echo mv $$file $(BINDIR)/$$file;\
   mv $$file $(BINDIR)/$$file ;\
   chmod +x $(BINDIR)/$$file ;\
  fi;\
 done; \
 fi

binclean:
	@if test ! 'x$(BIN)' = x ; then \
 for file in $(BIN) ; do \
   if test -f $$file ; then \
   echo rm $$file ;\
   rm $$file ;\
  fi;\
 done; \
 fi


# docs are in two formats: as html-dir and as ps
doc: 
	-@mkdir $(DOCDIR)
	-@mkdir $(DOCDIR)/postscript
	-cp -r *.html-dir $(DOCDIR)
	-cp *.ps $(DOCDIR)/postscript
 
clean: 
	-@rm -rf $(BIN) core *.o *~ *.ps *.h-tex\
         *.dvi *.html-dir *.log *.toc *.aux\
	*.bbl *.blg $(GARBAGE)

src: 
	for s in $(SRC) ; do if test ! -f $$s ; then $(CO) -u $$s ; fi ; done

.ibg.sgz:
	sg create/ibg $<


rmnew:
	rm -f $(new)

new: rmnew $(new)


status:
	@echo CFLAGS:
	@echo $(CFLAGS)
	@echo
	@echo FFLAGS:
	@echo $(FFLAGS)
	@echo
	@echo CXXFLAGS:
	@echo $(CXXFLAGS)
	@echo
	@echo LDFLAGS:
	@echo $(LDFLAGS)
	@echo
	@echo LOADLIBES:
	@echo $(LOADLIBES)
lib-clean: 
	rm $(LIB)

doc-clean:
	$(MAKE) -f $(PDELIB_HOME)/doc/src/Makefile hwclean
doc-load:
	$(MAKE) -f $(PDELIB_HOME)/doc/src/Makefile hwupload
doc-access:
	$(MAKE) -f $(PDELIB_HOME)/doc/src/Makefile hwaccess

#
# $Log: foot.mk,v $
# Revision 1.28  1999/02/10 17:28:06  darcy
# Linux-Anpassung
#
# Revision 1.27  1999/02/03 19:07:09  fuhrmann
# *** empty log message ***
#
# Revision 1.26  1999/02/03 17:52:34  fuhrmann
# configure stuff
#
# Revision 1.25  1999/01/05 19:25:36  fuhrmann
# *** empty log message ***
#
# Revision 1.24  1998/12/21 18:15:16  fuhrmann
# bininstall bug
#
# Revision 1.23  1998/11/30 18:43:50  fuhrmann
# .f target
#
# Revision 1.22  1998/11/30 18:24:24  fuhrmann
# remove .o when compiling exe
#
# Revision 1.21  1998/11/30 17:47:40  fuhrmann
# tmpdir default variable
#
# Revision 1.20  1998/11/30 17:28:06  fuhrmann
# *** empty log message ***
#
# Revision 1.19  1998/11/30 17:10:24  fuhrmann
# *** empty log message ***
#
# Revision 1.18  1998/09/14 19:14:29  darcy
# minor bugs in 1.7
#
# Revision 1.17  1998/09/14 15:50:27  fuhrmann
# *** empty log message ***
#
# Revision 1.16  1998/08/11  09:26:57  fuhrmann
# *** empty log message ***
#
#

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?