aboutsummaryrefslogtreecommitdiff
path: root/vendor/readline/mkpkg
blob: 2ad7be64c6618d3d34852a0d5cac5aa4190af5ab (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
32
33
34
35
36
# Make the GNU Readline/History libraries

$call libs
$exit

libs:
	$ifeq (IRAFARCH, macosx) then
	    !(./configure --disable-dynamic --enable-static")
	    !make libreadline.a |& tee spool
	    !mv libreadline.a ../../bin
	$else $ifeq (IRAFARCH, macintel) then
	    !(./configure --disable-dynamic --enable-static)
	    !make libreadline.a |& tee spool
	    !mv libreadline.a ../../bin
	$else $ifeq (IRAFARCH, linux) then
	    !(./configure --disable-dynamic --enable-static CFLAGS="-m32")
	    !make libreadline.a |& tee spool
	    !mv libreadline.a ../../bin
	$else $ifeq (IRAFARCH, freebsd) then
	    !(./configure --disable-dynamic --enable-static CFLAGS="-m32")
	    !make libreadline.a |& tee spool
	    !mv libreadline.a ../../bin
	$else
	    !(./configure --disable-dynamic --enable-static)
	    !make libreadline.a |& tee spool
	    !mv libreadline.a ../../bin
	$endif
	!make clean
	!rm Makefile spool
	;

clean:
	!make clean
	!rm Makefile spool
	;