aboutsummaryrefslogtreecommitdiff
path: root/vendor/cfitsio/mklibs
blob: 3b6f4dc5afd4b49b44cf13a56c8daf681ae77f82 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/csh -f

#set top = `(chdir .. ; pwd)`
set top = `pwd`

setenv CC 	"gcc"
setenv CXX 	"g++"


if ($?PLMACH) then
  if ($PLMACH == "macosx") then
    setenv CFLAGS "-mmacosx-version-min=10.5 -DDarwin"
  endif
endif

echo "  (Using toplevel directory '"$top"' ....)"

# Global options.
set	gopts = "--prefix=$top --exec-prefix=$top --disable-shared"

./configure $gopts  				 >& _spool
make clean 					>>& _spool
make 						>>& _spool

cp   libcfitsio.a ../voclient/lib
mv   libcfitsio.a ../../lib
cp   fitsio*.h longnam.h ../../include

make clean
echo "done"