Debian Codegraph @

debian/external_deps/fetk/punc/tools/tests/blas/Makefile.simple

raw
1 ### ##########################################################################
2 ### PUNC = < Portable Understructure for Numerical Computing >
3 ### Copyright (C) 1994-- Michael Holst
4 ###
5 ### This library is free software; you can redistribute it and/or
6 ### modify it under the terms of the GNU Lesser General Public
7 ### License as published by the Free Software Foundation; either
8 ### version 2.1 of the License, or (at your option) any later version.
9 ###
10 ### This library is distributed in the hope that it will be useful,
11 ### but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 ### Lesser General Public License for more details.
14 ###
15 ### You should have received a copy of the GNU Lesser General Public
16 ### License along with this library; if not, write to the Free Software
17 ### Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 ###
19 ### rcsid="$Id: Makefile.simple,v 1.4 2010/08/12 05:52:42 fetk Exp $"
20 ### ##########################################################################
21
22 ## ###########################################################################
23 ## File: Makefile.simple
24 ##
25 ## Purpose: Simple makefile for building FEtk tools without using autoconf.
26 ##
27 ## Notes: Edit as needed and then invoke via "make -f Makefile.simple"
28 ##
29 ## Author: Michael Holst
30 ## ###########################################################################
31
32 ARCH = powerpc-apple-darwin8.6.0
33 #ARCH = x86_64-unknown-linux-gnu
34 DMAL =
35 #DMAL = -ldmalloc
36 SYSLIB = -L/usr/X11R6/lib -L/sw/lib -lreadline -lncurses -lm ${DMAL}
37 #SYSLIB = -L/usr/lib64 -lreadline -lncurses -lm ${DMAL}
38
39 HOME = /usr/people/mholst
40 FETK_INC = -I${HOME}/include
41 FETK_LIB = -L${HOME}/lib/${ARCH} -lblas -lpunc -lmaloc
42
43 default : goc gof
44
45 mainc.o : mainc.c
46 gcc -c -g -O2 -I. ${FETK_INC} mainc.c
47
48 mainf.o : mainf.f
49 g77 -c -g -O2 -I. ${FETK_INC} mainf.f
50
51 goc : mainc.o
52 gcc -g -O2 -o goc mainc.o ${FETK_LIB} ${SYSLIB}
53
54 gof : mainf.o
55 g77 -g -O2 -o gof mainf.o ${FETK_LIB} ${SYSLIB}
56
57 setdmal :
58 dmalloc -l logfile -i 100 high
59
60 clean :
61 -rm -f *.o go io.mc hist.mcsh logfile .gdb_history goc gof
62