1 saw 1.1 #
2 # This directory contains code that is needed to in some ports of the
3 # Hall C analyzer to platforms other than HPUX. For example, it contains
4 # definitions of some fortran functions that are missing under F2C/Linux.
5 #
|
6 saw 1.2 # $Log: Makefile.Unix,v $
|
7 jones 1.6 # Revision 1.5 2000/11/30 14:23:03 saw
8 # Add other_wrappers.f for jidnnt
9 #
|
10 saw 1.5 # Revision 1.4 1998/12/09 16:31:16 saw
11 # Remove dependence on Csoft environment variable
12 #
|
13 saw 1.4 # Revision 1.3 1998/12/01 20:37:29 saw
14 # (SAW) Linux fixes
15 #
|
16 saw 1.3 # Revision 1.2 1996/11/22 17:05:53 saw
17 # (SAW) Add routines for porting to Linux and AIX
18 #
|
19 saw 1.2 # Revision 1.1 1996/09/09 13:34:01 saw
20 # Initial revision
21 #
|
22 saw 1.1 NEWSTYLE=1
|
23 saw 1.4 include ../../etc/Makefile
|
24 jones 1.6 include ../../etc/Makefile.flags
|
25 saw 1.1
|
26 jones 1.6 ifeq ($(MYOS),AIX)
|
27 saw 1.2 libsources = bit_wrappers.f
28 install-dirs := lib
29 else
|
30 jones 1.6 ifeq ($(MYOS),Linux)
|
31 saw 1.3 ifeq ($(F77COMPILER),Absoft)
32 libsources = absoft_wrappers.f
33 else
|
34 saw 1.5 libsources = bit_wrappers.f trig_wrappers.f ran_wrappers.f \
35 other_wrappers.f
|
36 saw 1.3 endif
|
37 saw 1.2 install-dirs := lib
38 else
39 libsources =
40 install-dirs :=
41 endif
42 endif
|
43 saw 1.1
44 sources = $(libsources)
45
|
46 saw 1.3 lib_targets := $(patsubst %.f, libport.a(%.o), $(libsources)) \
47 libport.a(cwrappers.o)
|
48 saw 1.1
49 #default:
50 # @echo "nothing to make"
51
|
52 saw 1.2 ifdef NFSDIRECTORY
53 ../%.f : $(NFSDIRECTORY)/PORT/%.f
54 ln -s $< $@
55
|
56 saw 1.3 ../%.c : $(NFSDIRECTORY)/PORT/%.c
57 ln -s $< $@
58
59 .PRECIOUS: ../%.f ../%.c
|
60 saw 1.2 endif
|
61 saw 1.1
|
62 saw 1.3 cwrappers.o: ../cwrappers.c
63
64 include $(libsources:.f=.d) cwrappers.d
|