"Fossies" - the Fresh Open Source Software Archive

Member "statist-1.4.2/src/Makefile" (18 Nov 2006, 4113 Bytes) of package /linux/privat/old/statist-1.4.2.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.

    1 # This file is part of statist
    2 # 
    3 # It is distributed under the GNU General Public License.
    4 # See the file COPYING for details.
    5 # 
    6 # Copyright (C) 1997-1999 Dirk Melcher <Dirk.Melcher@usf.Uni-Osnabrueck.DE>
    7 # Copyright (C) 1998-2006 Bernhard Reiter <bernhard@intevation.de>
    8 # Copyright (C) 2005-2006 Jakson Aquino <jalvesaq@gmail.com>
    9 #
   10 # $Id: Makefile,v 1.24 2006/11/18 19:47:23 jakson Exp $
   11 #*************************************************************/
   12 # Makefile fuer UNIX-Version und gnuplot-Graphik
   13 # Makefile adjusted for unix with gnuplot graphics.
   14 
   15 include ../Makefile.inc
   16 
   17 # Choose your compiler, the example flags are for the gcc
   18 CC = gcc
   19 
   20 LIBTOOL = ar crus
   21 
   22 COMPILERCFLAGS = -c -Wall
   23 COMPILERCFLAGS += -g
   24 COMPILERCFLAGS += -O2
   25 #COMPILERCFLAGS += -DDEBUG
   26 
   27 LIBS += -lm
   28 LFLAGS = -o
   29 #LFLAGS = -g -o
   30 
   31 
   32 # Only use the next line, if you want to create a lib ("shlib" or "lib")
   33 #STATISTX = -DSTATIST_X
   34 
   35 ###############################################################################
   36 # ADDITIONAL OPTIONS FOR MS-DOS/WINDOWS:
   37 #
   38 #COMPILERCFLAGS += -DMSDOS
   39 #
   40 # To compile with MinGW (or Dev-C++), uncomment the options -DMSDOS,
   41 # -I"C:/DEV-CPP/include", and  -L"C:/DEV-CPP/lib".
   42 #
   43 # If you will compile with gettext support, using MinGW (or Dev-C++) you have
   44 # to indicate where libintl.h, libintl3.dll and libiconv.dll are.  So,
   45 # uncomment the options -I"C:/GnuWin32/include and -I"C:/GnuWin32/bin; You
   46 # have also to uncomment the option -lintl3. With CygWin the only option you
   47 # have to set is -lintl.
   48 #
   49 # You need a version of gnuplot that comes with pgnuplot.exe. If not, uncomment
   50 # the option -DNOPIPE.
   51 #
   52 #COMPILERCFLAGS += -DNOPIPE
   53 #COMPILERCFLAGS += -I"C:/DEV-CPP/include"
   54 #COMPILERCFLAGS += -I"C:/GnuWin32/include"
   55 #
   56 #LIBS += -L"C:/DEV-CPP/lib"
   57 #LIBS += -L"C:/GnuWin32/bin"
   58 #LIBS += -lintl3
   59 #LIBS += -lintl
   60 #
   61 # If your compiler don't find "values.h" or if it don't find the definition of
   62 # DBL_MAX, uncomment the option -DNO_VALUES_H.
   63 #
   64 # If you don't want to use gettext, you have to define NO_GETTEXT, and Statist
   65 # will use its own macro. If you want real gettext, use one of the following
   66 # instead:
   67 #
   68 #EXTRACFLAGS = -DNO_GETTEXT
   69 #EXTRACFLAGS += -DNO_VALUES_H
   70 #EXTRACFLAGS += -DNO_IOCTIL_H
   71 #
   72 # END OF OPTIONS FOR MS-DOS/WINDOWS
   73 ###############################################################################
   74 
   75 
   76 # Flags for statist.c:
   77 STATISTCFLAGS = -DLOCALEDIR="\"$(MESSAGE_CATALOGS)\""
   78 STATISTCFLAGS += -DDOCDIR="\"$(DOCDIR)\"" 
   79 
   80 CFLAGS= $(COMPILERCFLAGS) $(EXTRACFLAGS) $(STATISTX)
   81 
   82 #MAIN = $(HOME)/tools/statist
   83 MAIN=statist
   84 SH_LIB = libstatist.so.1.3.1
   85 STAT_LIB = libstatist.a
   86 
   87 
   88 OBJECTS = statist.o menue.o procs.o funcs.o data.o plot.o \
   89 memory_handling.o
   90 LIB_OBJECTS = menue.o procs.o funcs.o data.o plot.o memory_handling.o
   91 
   92 .POSIX:
   93 
   94 # Decide between "main", "shlib" and "lib"
   95 all: main
   96 #all: lib
   97 #all: shlib
   98 
   99 main:   $(MAIN)
  100 
  101 check: main
  102 	echo Running tests... in the appropriate directory
  103 	(cd ../tests ; \
  104 	$(MAKE) check \
  105 	)
  106 
  107 shlib:	$(SH_LIB)
  108 
  109 lib:	$(STAT_LIB)
  110 
  111 
  112 $(MAIN) : $(OBJECTS) Makefile
  113 	$(CC) $(LFLAGS) $(MAIN) $(OBJECTS) $(LIBS)
  114 
  115 # change AB:
  116 $(SH_LIB):		$(LIB_OBJECTS) Makefile
  117 	$(CC) -shared $(LIB_OBJECTS) -o $(SH_LIB)
  118 
  119 $(STAT_LIB):	$(LIB_OBJECTS) Makefile
  120 	 $(LIBTOOL) $(STAT_LIB) $(LIB_OBJECTS)
  121 
  122 statist.o : statist.c statist.h menue.h data.h funcs.h
  123 	$(CC) $(CFLAGS) $(STATISTCFLAGS) statist.c
  124 
  125 menue.o : menue.c menue.h procs.h data.h statist.h
  126 	$(CC) $(CFLAGS) menue.c
  127 
  128 procs.o : procs.c procs.h funcs.h statist.h
  129 	$(CC) $(CFLAGS) procs.c
  130 
  131 funcs.o : funcs.c funcs.h statist.h
  132 	$(CC) $(CFLAGS) funcs.c
  133 
  134 data.o : data.c data.h statist.h
  135 	$(CC) $(CFLAGS) data.c
  136 
  137 plot.o : plot.c plot.h statist.h funcs.h
  138 	$(CC) $(CFLAGS) plot.c
  139 
  140 memory_handling.o : memory_handling.c memory_handling.h statist.h
  141 	$(CC) $(CFLAGS) memory_handling.c
  142 
  143 install: $(MAIN)
  144 	install -d $(PREFIX)/bin
  145 	install -s $(MAIN) $(PREFIX)/bin/
  146 	(cd ../po; make install)
  147 	(cd ../doc; make install)
  148 
  149 uninstall:
  150 	rm -f $(PREFIX)/bin/statist
  151 	(cd ../po; make uninstall)
  152 	(cd ../doc; make uninstall)
  153 
  154 clean:
  155 	-rm -f $(OBJECTS) $(MAIN) *.log *.aux core $(STAT_LIB) $(SH_LIB)
  156 	(cd ../tests ; \
  157 	$(MAKE) clean \
  158 	)