Filter Library Camera Interface Physics

Makefile.inc

00001 #
00002 # ./Makefile.inc - common makefile part for Camera Filter Library
00003 #
00004 # This file is part of the Camera Filter Library.
00005 # Computer Aided Measurement Environment for Realtime Atomic imaging (Camera)
00006 #
00007 # Copyright (C) 2004, Leiden Probe Microscopy.
00008 # Copyright (C) 2004, Universiteit Leiden.
00009 #
00010 # Original author: Martin J. Moene
00011 #
00012 # $Id$
00013 #
00014 
00015 #
00016 # implicit rules:
00017 #
00018 
00019 .suffixes: .hpj .tex .c .cc .cpp .lib .rc .iss
00020 
00021 .c.obj:
00022         $(CC) -c $(CFLAGS) $(CPPFLAGS) {$< }
00023 
00024 .c.exe:
00025         $(CC) $(CFLAGS) $(CPPFLAGS) $<        
00026 
00027 .cc.obj:
00028         $(CXX) -c $(CXXFLAGS) $(CPPFLAGS) $<
00029 
00030 .cpp.obj:
00031         $(CXX) -c $(CXXFLAGS) $(CPPFLAGS) $<
00032 
00033 .cpp.exe:
00034         $(CXX) $(CXXFLAGS) $(LFLAGS) -Fe$@ $< $(LIBS)
00035 
00036 .rc.res:
00037         $(RC) -r $(RCFLAGS) $<
00038 
00039 #.dll.lib:
00040 #        $(IMPLIB) $(ILFLAGS) $*.lib $*.dll
00041 
00042 #
00043 # Workaround:
00044 # Because doxygen 1.3.4 ignores configuration option MAKEINDEX_CMD_NAME
00045 # when creating PDF, we supply the latex/Makefile ourselves to create an
00046 # index with LaTeX.
00047 #
00048 
00049 .tex.pdf:
00050         cd latex
00051         $(RM) -f Makefile               # cp (-f) alone sometimes yerks about
00052         $(CP) ../Makefile.ltx Makefile  #   ../Makefile and Makefile being the same file
00053         $(RM) -f Makefile.own           # cp (-f) ... idem
00054         $(MV) -f <<
00055 SHELL=$(SHELL)
00056 include Makefile
00057 << Makefile.own
00058         $(GNUMAKE) -f Makefile.own
00059         -$(RM) ../$<.pdf                # keep case by remove before move
00060         $(MV) $<.pdf ..
00061         cd ..
00062 
00063 .hpj.hlp:
00064         $(HC) $(HCFLAGS) $<
00065 
00066 .jpg.eps:
00067         $(IMGTOPS) $(IMGTOPSFLAGS) -o $@ $<
00068 
00069 .png.eps:
00070         $(IMGTOPS) $(IMGTOPSFLAGS) -o $@ $<
00071 
00072 .iss.exe:
00073         $(ISCC) $< >$<.log
00074 
00075 #
00076 # explicit rules:
00077 #
00078 
00079 clean.bat: FORCE
00080    $(MV) -f << clean.bat
00081 @echo off
00082 $(RM) *.bak *.$$$$$$
00083 cd %1
00084 $(MAKE) /nologo clean
00085 cd ..
00086 <<
00087 
00088 distclean.bat: FORCE
00089    $(MV) -f << distclean.bat
00090 @echo off
00091 $(RM) *.bak *.$$$$$$
00092 cd %1
00093 $(MAKE) /nologo distclean
00094 cd ..
00095 <<
00096 #distclean.bat
00097 
00098 
00099 FORCE:
00100    @echo off
00101 
00102 #
00103 # end of file
00104 #
00105 

Camera Filter Library documentation © 2004-2007 by Leiden Probe Microscopy