"Fossies" - the Fresh Open Source Software Archive

Member "grace-5.1.25/src/Makefile" (14 Feb 2015, 2717 Bytes) of package /linux/misc/grace-5.1.25.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "Makefile": 5.1.24_vs_5.1.25.

    1 #####################################################
    2 # Makefile for Grace                                #
    3 #####################################################
    4 # You should not change anything here.              #
    5 #####################################################
    6 
    7 TOP=..
    8 
    9 include $(TOP)/Make.conf
   10 
   11 .SUFFIXES : .c $(O)
   12 
   13 GRBATCH=gracebat$(EXE)
   14 
   15 GRACECLI=grace$(EXE)
   16 
   17 CEPHES_LIB=$(TOP)/cephes/libcephes.a
   18 
   19 CFLAGS=$(CFLAGS0) -I$(TOP) -I. $(T1_INC) $(XBAE_INC) $(CPPFLAGS) $(GUI_FLAGS)
   20 
   21 LIBS=$(GUI_LIBS) $(CEPHES_LIB) $(NETCDF_LIBS) $(FFTW_LIB) \
   22 	$(T1_LIB) $(PDF_LIB) $(JPEG_LIB) $(PNG_LIB) $(Z_LIB) \
   23 	$(NOGUI_LIBS) $(DL_LIB)
   24 
   25 PREFS=-DGRACE_HOME=\"$(GRACE_HOME)\" -DGRACE_PRINT_CMD=\"$(PRINT_CMD)\" \
   26 	-DGRACE_EDITOR=\"$(GRACE_EDITOR)\" \
   27 	-DGRACE_HELPVIEWER=\"$(GRACE_HELPVIEWER)\" \
   28 	-DCCOMPILER=\"'$(CC) $(CFLAGS) $(LDFLAGS) $(LIBS)'\" 
   29 
   30 all : $(GRACE)
   31 
   32 
   33 include Make.common
   34 
   35 $(GROBJS) $(GUIOBJS) $(PARS_O) buildinfo$(O) : $(TOP)/config.h
   36 
   37 include Make.dep
   38 
   39 xmgrace$(EXE) : $(GROBJS) $(PARS_C) $(GUIOBJS) $(CEPHES_LIB)
   40 	$(CC) $(CFLAGS) $(GROBJS) $(GUIOBJS) -o $@ $(LDFLAGS) $(LIBS)
   41 
   42 grace$(EXE) : $(GROBJS) $(PARS_C) $(CEPHES_LIB)
   43 	$(CC) $(CFLAGS) $(GROBJS) -o $@ $(LDFLAGS) $(LIBS)
   44 
   45 
   46 buildinfo$(EXE) : buildinfo$(O)
   47 	$(CC) $(CFLAGS) $? -o $@ $(LDFLAGS) $(GUI_LIBS) $(T1_LIB) $(JPEG_LIB) $(PNG_LIB) $(Z_LIB) $(NOGUI_LIBS)
   48 
   49 buildinfo$(O) : $(TOP)/Make.conf
   50 	$(CC) $(CFLAGS) $(PREFS) -c buildinfo.c -o $@
   51 
   52 buildinfo.h : buildinfo$(EXE) $(GRSRCS) $(GUISRCS)
   53 	$(RM) t.h
   54 	./buildinfo$(EXE) > t.h
   55 	mv -f t.h $@
   56 
   57 $(PARS_C) : $(PARS_Y)
   58 	$(YACC) -t $?
   59 	mv -f y.tab.c $@
   60 
   61 
   62 install : $(GRACE)
   63 	$(MKINSTALLDIRS) $(DESTDIR)$(GRACE_HOME)/bin
   64 	$(INSTALL_PROGRAM) -s $(GRACE) $(DESTDIR)$(GRACE_HOME)/bin/$(GRACE)
   65 	cd $(DESTDIR)$(GRACE_HOME)/bin; $(RM) $(GRBATCH); $(LN_S) $(GRACE) $(GRBATCH)
   66 
   67 tests : dummy
   68 
   69 $(DESTDIR)$(GRACE_HOME)/bin/$(GRACE) : $(GRACE)
   70 	$(MAKE) install
   71 
   72 links : $(DESTDIR)$(GRACE_HOME)/bin/$(GRACE)
   73 	$(MKINSTALLDIRS) $(DESTDIR)$(PREFIX)/bin
   74 	cd $(DESTDIR)$(PREFIX)/bin; $(RM) $(GRACE); $(LN_S) $(GRACE_HOME)/bin/$(GRACE) $(GRACE)
   75 	cd $(DESTDIR)$(PREFIX)/bin; $(RM) $(GRBATCH); $(LN_S) $(GRACE_HOME)/bin/$(GRACE) $(GRBATCH)
   76 	cd $(DESTDIR)$(PREFIX)/bin; $(RM) $(GRACECLI); $(LN_S) $(GRACE_HOME)/bin/$(GRACE) $(GRACECLI)
   77 
   78 clean : 
   79 	$(RM) $(GROBJS) $(GUIOBJS) $(PARS_O) buildinfo.h buildinfo$(O) buildinfo$(EXE)
   80 
   81 distclean : clean
   82 	$(RM) $(GRACE) tags *.orig *.*gr .gdb_history t1lib.log
   83 
   84 devclean : distclean
   85 	$(RM) $(PARS_C)
   86 
   87 depend :
   88 	echo "# Generated automatically by \`make depend'" > Make.dep
   89 	$(CC) $(CFLAGS) -MM $(GRSRCS) $(GUISRCS) $(PARS_C) buildinfo.c \
   90 		| sed 's/\.o:/\$$(O)\ :/g' >> Make.dep
   91 
   92 tags : $(GRSRCS) $(GUISRCS) $(PARS_Y)
   93 	ctags $(GRSRCS) $(GUISRCS) $(PARS_Y)
   94 
   95 dummy :
   96 
   97 # DO NOT DELETE