summaryrefslogtreecommitdiffstats
path: root/unix/Makefile.in
blob: f5f18bcb93e09282dd40ab7afcbd075dbba0abf0 (plain)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
OS	= @OS@
ARCH	= @ARCH@
ROOT	= @ROOT@
TKFLAGS	= @TKFLAGS@
TKIMGFLAGS = @TKIMGFLAGS@
JOBS	= @CORES@

WITHTCL =--with-tcl=$(ROOT)/tcl$(TCLVER)/unix
WITHTK  =--with-tk=$(ROOT)/tk$(TCLVER)/unix $(WITHTCL)
CACHE	=--config-cache --cache-file=../config.cache

include ./make.include

#--------------------------build

.PHONY	: saods9 tcl tk

saods9	: dirs tcl tk \
	tclcheckdns tcliis tclsignal \
	tclzvfs tclxml xpa \
	tkblt tktable tkimg \
	tkmpeg tkhtml1 tkcon \
	tksao ds9

tcl	: tcl$(TCLVER)/unix/Makefile
	@echo ""
	@echo "*** Install tcl$(TCLVER) ***"
	$(MAKE) -C tcl$(TCLVER)/unix -j $(JOBS) install

tcl$(TCLVER)/unix/Makefile :
	@echo ""
	@echo "*** Configure tcl$(TCLVER) ***"
	cd tcl$(TCLVER)/unix; \
	./configure \
	--prefix $(ROOT) -exec-prefix $(ROOT) \
	--disable-shared --enable-symbols \
	--config-cache --cache-file=../../config.cache

tk	: tk$(TCLVER)/unix/Makefile
	@echo ""
	@echo "*** Install tk$(TCLVER) ***"
	$(MAKE) -C tk$(TCLVER)/unix -j $(JOBS) install

tk$(TCLVER)/unix/Makefile :
	@echo ""
	@echo "*** Configure tk$(TCLVER) ***"
	cd tk$(TCLVER)/unix; \
	./configure \
	$(TKFLAGS) \
	--prefix $(ROOT) -exec-prefix $(ROOT) \
	--disable-shared --enable-symbols \
	--config-cache --cache-file=../../config.cache

#--------------------------clean

.PHONY	: tkunixclean

tkunixclean :

#--------------------------distclean

.PHONY	: tkunixdistclean

tkunixdistclean :

#--------------------------distribution

.PHONY	: dist

dist	:
	cd bin; tar cvf - ds9* | gzip > ../dist/ds9.$(ARCH).$(DS9VERSION).tar.gz
	cd bin; tar cvf - xpa* | gzip > ../dist/xpa.$(ARCH).$(XPAVERSION).tar.gz