# # Linux # MAKEFILE=Makefile.linux BINDIR=/usr/local/lib/propath/bin LIBDIR=/usr/local/lib/ INCLUDEDIR=/usr/local/include/ FC=g77 FCOPT= -finit-local-zero -fno-automatic -O6 CC=gcc CCOPT= -O6 LD=g77 LDOPT= -L. AR=ar AROPT=rs RM=rm CP=cp -uvp EXT_F=.f EXT_O=.o EXT_A=.a HEAD_A=lib EXT_EXE= # -------------------------------------------------------- # Makefile for F-propath BWR # -------------------------------------------------------- # # Name of libraly(PLIB) # PLIB=$(HEAD_A)jbwrmx.a #PLIB=jbwrmx.a # binary : $(PLIB) \ sample1 sample2 test test2 ctest : $(PLIB) ctest.c $(CC) $(CFLAGS) -I/home/satoru/momoki/ -L/home/satoru/momoki/ \ -o ctest ctest.c $(PLIB) -lm -lmomoki $(PLIB) : \ $(PLIB)(bwrm15.o)\ $(PLIB)(bwrm14.o)\ $(PLIB)(bwrm13.o)\ $(PLIB)(bwrm12.o)\ $(PLIB)(bwrm11.o)\ $(PLIB)(bwrm8.o)\ $(PLIB)(bwrm7.o)\ $(PLIB)(bwrm6.o)\ $(PLIB)(bwrm5.o)\ $(PLIB)(bwrm4.o)\ $(PLIB)(bwrm3.o)\ $(PLIB)(bwrm2.o)\ $(PLIB)(bwrm1.o)\ $(PLIB)(bwrm97.o)\ $(PLIB)(bwrm98.o)\ $(PLIB)(bwrm99.o) clean: rm -f *.o *.a # *-ss$(EXT_EXE) install: cp $(HEAD_A)*$(EXT_A) $(LIBDIR) # cp *-ss$(EXT_EXE) $(BINDIR) (%.o): %.c $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $*.o; $(AR) r $@ $*.o; # @touch $@ ; # to adjust timestanp of lib*.a. But why do I have to touch ??? @$(RM) $*.o (%.o): %.f $(FC) $(FLOPT) -c $< -o $*.o; $(AR) r $@ $*.o; # @touch $@ ; # to adjust timestanp of lib*.a. But why do I have to touch ??? @$(RM) $*.o sample1 : $(PLIB) sample1.f $(FC) $(FLOPT) -o sample1 sample1.f $(PLIB) -lm sample2 : $(PLIB) sample2.f $(FC) $(FLOPT) -o sample2 sample2.f $(PLIB) -lm test : $(PLIB) test.f $(FC) $(FLOPT) -o test test.f $(PLIB) -lm test2 : $(PLIB) test2.f $(FC) $(FLOPT) -o test2 test2.f $(PLIB) -lm