head	8.7;
access;
symbols;
locks; strict;
comment	@# @;


8.7
date	2026.05.11.12.01.10;	author mcalabre;	state Exp;
branches;
next	8.6;

8.6
date	2026.03.29.13.53.56;	author mcalabre;	state Exp;
branches
	8.6.1.1;
next	8.5;

8.5
date	2025.12.06.13.47.41;	author mcalabre;	state Exp;
branches
	8.5.1.1;
next	8.4;

8.4
date	2024.10.28.13.56.16;	author mcalabre;	state Exp;
branches
	8.4.1.1;
next	8.3;

8.3
date	2024.05.13.16.33.00;	author mcalabre;	state Exp;
branches
	8.3.1.1;
next	8.2;

8.2
date	2023.11.16.10.00.29;	author mcalabre;	state Exp;
branches
	8.2.1.1;
next	8.1;

8.1
date	2023.07.05.17.12.07;	author mcalabre;	state Exp;
branches
	8.1.1.1;
next	8.0;

8.0
date	2023.07.01.06.15.04;	author mcalabre;	state Exp;
branches
	8.0.1.1;
next	7.13;

7.13
date	2022.10.07.03.43.35;	author mcalabre;	state Exp;
branches
	7.13.1.1;
next	7.12;

7.12
date	2022.09.09.04.57.58;	author mcalabre;	state Exp;
branches
	7.12.1.1;
next	7.11;

7.11
date	2022.04.26.06.13.52;	author mcalabre;	state Exp;
branches
	7.11.1.1;
next	7.10;

7.10
date	2022.04.23.14.25.15;	author mcalabre;	state Exp;
branches
	7.10.1.1;
next	7.9;

7.9
date	2022.03.25.15.14.48;	author mcalabre;	state Exp;
branches
	7.9.1.1;
next	7.8;

7.8
date	2022.03.25.06.11.49;	author mcalabre;	state Exp;
branches
	7.8.1.1;
next	7.7;

7.7
date	2021.07.12.06.36.49;	author mcalabre;	state Exp;
branches
	7.7.1.1;
next	7.6;

7.6
date	2021.04.13.12.57.01;	author mcalabre;	state Exp;
branches
	7.6.1.1;
next	7.5;

7.5
date	2021.03.20.05.54.58;	author mcalabre;	state Exp;
branches
	7.5.1.1;
next	7.4;

7.4
date	2021.01.31.02.24.51;	author mcalabre;	state Exp;
branches
	7.4.1.1;
next	7.3;

7.3
date	2020.06.03.03.37.02;	author mcalabre;	state Exp;
branches
	7.3.1.1;
next	7.2;

7.2
date	2020.03.09.07.31.23;	author mcalabre;	state Exp;
branches
	7.2.1.1;
next	7.1;

7.1
date	2019.12.31.13.25.19;	author mcalabre;	state Exp;
branches
	7.1.1.1;
next	6.4;

6.4
date	2019.08.15.09.30.18;	author mcalabre;	state Exp;
branches
	6.4.1.1;
next	6.3;

6.3
date	2019.07.12.07.33.39;	author mcalabre;	state Exp;
branches
	6.3.1.1;
next	6.2;

6.2
date	2018.10.20.10.03.13;	author mcalabre;	state Exp;
branches
	6.2.1.1;
next	6.1;

6.1
date	2018.10.19.08.35.17;	author mcalabre;	state Exp;
branches
	6.1.1.1;
next	5.20;

5.20
date	2018.10.05.05.32.41;	author mcalabre;	state Exp;
branches
	5.20.1.1;
next	5.19;

5.19
date	2018.07.26.15.37.04;	author mcalabre;	state Exp;
branches
	5.19.1.1;
next	5.18;

5.18
date	2018.01.10.08.32.14;	author mcalabre;	state Exp;
branches
	5.18.1.1;
next	5.17;

5.17
date	2017.09.18.08.44.23;	author mcalabre;	state Exp;
branches
	5.17.1.1;
next	5.16;

5.16
date	2017.01.15.04.25.01;	author mcalabre;	state Exp;
branches
	5.16.1.1;
next	5.15;

5.15
date	2016.04.05.12.55.10;	author mcalabre;	state Exp;
branches
	5.15.1.1;
next	5.14;

5.14
date	2016.02.07.10.49.31;	author mcalabre;	state Exp;
branches
	5.14.1.1;
next	5.13;

5.13
date	2016.01.26.08.51.13;	author mcalabre;	state Exp;
branches
	5.13.1.1;
next	5.12;

5.12
date	2015.11.15.02.13.00;	author mcalabre;	state Exp;
branches
	5.12.1.1;
next	5.11;

5.11
date	2015.10.18.09.13.05;	author mcalabre;	state Exp;
branches
	5.11.1.1;
next	5.10;

5.10
date	2015.10.09.08.19.15;	author mcalabre;	state Exp;
branches
	5.10.1.1;
next	5.9;

5.9
date	2015.07.21.09.20.01;	author mcalabre;	state Exp;
branches
	5.9.1.1;
next	5.8;

5.8
date	2015.07.08.11.03.59;	author mcalabre;	state Exp;
branches
	5.8.1.1;
next	5.7;

5.7
date	2015.06.29.02.44.16;	author mcalabre;	state Exp;
branches
	5.7.1.1;
next	5.6;

5.6
date	2015.06.14.07.11.24;	author mcalabre;	state Exp;
branches
	5.6.1.1;
next	5.5;

5.5
date	2015.05.05.13.16.31;	author mcalabre;	state Exp;
branches
	5.5.1.1;
next	5.4;

5.4
date	2015.04.21.14.41.05;	author mcalabre;	state Exp;
branches
	5.4.1.1;
next	5.3;

5.3
date	2015.04.21.02.50.51;	author mcalabre;	state Exp;
branches
	5.3.1.1;
next	5.2;

5.2
date	2015.04.15.12.35.07;	author mcalabre;	state Exp;
branches
	5.2.1.1;
next	5.1;

5.1
date	2015.04.07.10.56.36;	author mcalabre;	state Exp;
branches
	5.1.1.1;
next	5.0;

5.0
date	2015.04.05.12.24.59;	author mcalabre;	state Exp;
branches
	5.0.1.1;
next	4.25;

4.25
date	2014.12.14.14.29.36;	author mcalabre;	state Exp;
branches
	4.25.1.1;
next	4.24;

4.24
date	2014.09.18.15.25.00;	author mcalabre;	state Exp;
branches
	4.24.1.1;
next	4.23;

4.23
date	2014.05.13.05.50.51;	author mcalabre;	state Exp;
branches
	4.23.1.1;
next	4.22;

4.22
date	2014.04.12.15.03.52;	author mcalabre;	state Exp;
branches
	4.22.1.1;
next	4.21;

4.21
date	2014.03.24.05.12.27;	author mcalabre;	state Exp;
branches
	4.21.1.1;
next	4.20;

4.20
date	2013.12.18.05.42.49;	author mcalabre;	state Exp;
branches
	4.20.1.1;
next	4.19;

4.19
date	2013.09.29.14.17.51;	author mcalabre;	state Exp;
branches
	4.19.1.1;
next	4.18;

4.18
date	2013.07.13.10.00.04;	author mcalabre;	state Exp;
branches
	4.18.1.1;
next	4.17;

4.17
date	2013.01.29.05.29.20;	author cal103;	state Exp;
branches
	4.17.1.1;
next	4.16;

4.16
date	2012.11.07.04.42.44;	author cal103;	state Exp;
branches
	4.16.1.1;
next	4.15;

4.15
date	2012.09.26.14.26.05;	author cal103;	state Exp;
branches
	4.15.1.1;
next	4.14;

4.14
date	2012.07.13.10.02.27;	author cal103;	state Exp;
branches
	4.14.1.1;
next	4.13;

4.13
date	2012.03.14.07.39.30;	author cal103;	state Exp;
branches
	4.13.1.1;
next	4.12;

4.12
date	2012.02.29.07.57.56;	author cal103;	state Exp;
branches
	4.12.1.1;
next	4.11;

4.11
date	2012.02.20.23.30.02;	author cal103;	state Exp;
branches
	4.11.1.1;
next	4.10;

4.10
date	2012.02.05.23.41.44;	author cal103;	state Exp;
branches
	4.10.1.1;
next	4.9;

4.9
date	2012.01.24.05.40.29;	author cal103;	state Exp;
branches
	4.9.1.1;
next	4.8;

4.8
date	2011.08.15.08.05.53;	author cal103;	state Exp;
branches
	4.8.1.1;
next	4.7;

4.7
date	2011.02.07.07.03.42;	author cal103;	state Exp;
branches
	4.7.1.1;
next	4.6;

4.6
date	2010.11.16.06.15.31;	author cal103;	state Exp;
branches
	4.6.1.1;
next	4.5;

4.5
date	2010.07.16.07.01.25;	author cal103;	state Exp;
branches
	4.5.1.1;
next	4.4;

4.4
date	2009.08.06.07.41.33;	author cal103;	state Exp;
branches
	4.4.1.1;
next	4.3;

4.3
date	2007.12.27.05.41.36;	author cal103;	state Exp;
branches
	4.3.1.1;
next	4.2;

4.2
date	2005.09.23.05.23.40;	author cal103;	state Exp;
branches
	4.2.1.1;
next	4.1;

4.1
date	2005.08.30.08.23.54;	author cal103;	state Exp;
branches;
next	4.0;

4.0
date	2005.02.04.06.21.34;	author cal103;	state Exp;
branches;
next	3.6;

3.6
date	2004.08.25.05.26.20;	author cal103;	state Exp;
branches;
next	3.5;

3.5
date	2004.06.28.04.41.01;	author mcalabre;	state Exp;
branches;
next	3.4;

3.4
date	2004.02.11.00.11.52;	author mcalabre;	state Exp;
branches;
next	3.3;

3.3
date	2003.10.22.07.28.12;	author mcalabre;	state Exp;
branches;
next	3.2;

3.2
date	2003.09.09.04.04.04;	author mcalabre;	state Exp;
branches;
next	3.1;

3.1
date	2003.04.28.08.25.21;	author mcalabre;	state Exp;
branches;
next	3.0;

3.0
date	2003.04.01.04.03.42;	author mcalabre;	state Exp;
branches;
next	2.13;

2.13
date	2002.04.03.00.00.20;	author mcalabre;	state Exp;
branches;
next	2.12;

2.12
date	2001.11.15.03.10.17;	author mcalabre;	state Exp;
branches;
next	2.11;

2.11
date	2000.12.06.00.54.46;	author mcalabre;	state Exp;
branches;
next	2.10;

2.10
date	2000.05.10.04.42.41;	author mcalabre;	state Exp;
branches;
next	2.9;

2.9
date	99.12.13.07.39.57;	author mcalabre;	state Exp;
branches;
next	2.8;

2.8
date	99.11.19.00.00.40;	author mcalabre;	state Exp;
branches;
next	2.7;

2.7
date	98.01.30.00.14.34;	author mcalabre;	state Exp;
branches;
next	2.6;

2.6
date	97.01.02.22.12.53;	author mcalabre;	state Exp;
branches;
next	2.5;

2.5
date	96.09.10.06.30.24;	author mcalabre;	state Exp;
branches;
next	2.4;

2.4
date	96.05.07.20.55.27;	author mcalabre;	state Exp;
branches;
next	2.3;

2.3
date	95.11.16.06.18.42;	author mcalabre;	state Exp;
branches;
next	2.2;

2.2
date	95.11.16.06.16.49;	author mcalabre;	state Exp;
branches;
next	2.1;

2.1
date	95.11.09.03.04.52;	author mcalabre;	state Exp;
branches;
next	2.0;

2.0
date	95.09.11.03.47.55;	author mcalabre;	state Exp;
branches;
next	1.2;

1.2
date	95.09.11.03.46.59;	author mcalabre;	state Exp;
branches;
next	1.1;

1.1
date	95.01.31.03.09.08;	author mcalabre;	state Exp;
branches;
next	;

4.2.1.1
date	2005.12.05.02.39.43;	author cal103;	state Exp;
branches;
next	4.2.1.2;

4.2.1.2
date	2005.12.05.02.42.12;	author cal103;	state Exp;
branches;
next	4.2.1.3;

4.2.1.3
date	2005.12.15.04.59.35;	author cal103;	state Exp;
branches;
next	4.2.1.4;

4.2.1.4
date	2007.06.29.01.19.09;	author cal103;	state Exp;
branches;
next	4.2.1.5;

4.2.1.5
date	2007.06.29.01.25.41;	author cal103;	state Exp;
branches;
next	4.2.1.6;

4.2.1.6
date	2007.06.29.07.57.12;	author cal103;	state Exp;
branches;
next	4.2.1.7;

4.2.1.7
date	2007.07.03.04.34.37;	author cal103;	state Exp;
branches;
next	4.2.1.8;

4.2.1.8
date	2007.07.03.08.36.23;	author cal103;	state Exp;
branches;
next	4.2.1.9;

4.2.1.9
date	2007.07.04.07.15.37;	author cal103;	state Exp;
branches;
next	4.2.1.10;

4.2.1.10
date	2007.07.05.04.41.58;	author cal103;	state Exp;
branches;
next	4.2.1.11;

4.2.1.11
date	2007.07.05.05.01.15;	author cal103;	state Exp;
branches;
next	4.2.1.12;

4.2.1.12
date	2007.07.05.07.11.57;	author cal103;	state Exp;
branches;
next	4.2.1.13;

4.2.1.13
date	2007.07.06.07.04.02;	author cal103;	state Exp;
branches;
next	4.2.1.14;

4.2.1.14
date	2007.07.09.06.52.40;	author cal103;	state Exp;
branches;
next	4.2.1.15;

4.2.1.15
date	2007.07.11.01.53.19;	author cal103;	state Exp;
branches;
next	4.2.1.16;

4.2.1.16
date	2007.07.11.08.36.54;	author cal103;	state Exp;
branches;
next	4.2.1.17;

4.2.1.17
date	2007.08.02.06.52.09;	author cal103;	state Exp;
branches;
next	4.2.1.18;

4.2.1.18
date	2007.08.08.04.31.52;	author cal103;	state Exp;
branches;
next	4.2.1.19;

4.2.1.19
date	2007.12.24.04.16.27;	author cal103;	state Exp;
branches;
next	4.2.1.20;

4.2.1.20
date	2007.12.27.05.02.13;	author cal103;	state Exp;
branches;
next	;

4.3.1.1
date	2007.12.27.13.23.47;	author cal103;	state Exp;
branches;
next	4.3.1.2;

4.3.1.2
date	2008.02.11.06.00.38;	author cal103;	state Exp;
branches;
next	4.3.1.3;

4.3.1.3
date	2009.07.13.06.28.18;	author cal103;	state Exp;
branches;
next	4.3.1.4;

4.3.1.4
date	2009.07.21.07.29.23;	author cal103;	state Exp;
branches;
next	4.3.1.5;

4.3.1.5
date	2009.07.22.05.30.09;	author cal103;	state Exp;
branches;
next	4.3.1.6;

4.3.1.6
date	2009.07.30.05.05.59;	author cal103;	state Exp;
branches;
next	4.3.1.7;

4.3.1.7
date	2009.08.05.02.01.23;	author cal103;	state Exp;
branches;
next	;

4.4.1.1
date	2009.08.10.08.52.49;	author cal103;	state Exp;
branches;
next	4.4.1.2;

4.4.1.2
date	2009.08.11.00.17.00;	author cal103;	state Exp;
branches;
next	4.4.1.3;

4.4.1.3
date	2009.08.11.00.35.47;	author cal103;	state Exp;
branches;
next	4.4.1.4;

4.4.1.4
date	2009.08.12.23.54.01;	author cal103;	state Exp;
branches;
next	4.4.1.5;

4.4.1.5
date	2010.07.09.01.46.15;	author cal103;	state Exp;
branches;
next	4.4.1.6;

4.4.1.6
date	2010.07.15.02.05.05;	author cal103;	state Exp;
branches;
next	4.4.1.7;

4.4.1.7
date	2010.07.15.04.37.52;	author cal103;	state Exp;
branches;
next	;

4.5.1.1
date	2010.07.16.07.05.31;	author cal103;	state Exp;
branches;
next	4.5.1.2;

4.5.1.2
date	2010.08.12.07.37.51;	author cal103;	state Exp;
branches;
next	4.5.1.3;

4.5.1.3
date	2010.08.12.08.12.48;	author cal103;	state Exp;
branches;
next	4.5.1.4;

4.5.1.4
date	2010.10.13.23.57.13;	author cal103;	state Exp;
branches;
next	4.5.1.5;

4.5.1.5
date	2010.10.15.05.30.13;	author cal103;	state Exp;
branches;
next	4.5.1.6;

4.5.1.6
date	2010.11.15.06.53.31;	author cal103;	state Exp;
branches;
next	4.5.1.7;

4.5.1.7
date	2010.11.16.04.18.48;	author cal103;	state Exp;
branches;
next	4.5.1.8;

4.5.1.8
date	2010.11.16.04.28.41;	author cal103;	state Exp;
branches;
next	;

4.6.1.1
date	2010.11.16.06.16.19;	author cal103;	state Exp;
branches;
next	4.6.1.2;

4.6.1.2
date	2010.11.18.00.46.11;	author cal103;	state Exp;
branches;
next	4.6.1.3;

4.6.1.3
date	2010.11.24.01.26.44;	author cal103;	state Exp;
branches;
next	4.6.1.4;

4.6.1.4
date	2010.12.13.06.00.40;	author cal103;	state Exp;
branches;
next	4.6.1.5;

4.6.1.5
date	2011.01.14.06.31.33;	author cal103;	state Exp;
branches;
next	4.6.1.6;

4.6.1.6
date	2011.01.14.06.33.16;	author cal103;	state Exp;
branches;
next	4.6.1.7;

4.6.1.7
date	2011.01.18.03.12.19;	author cal103;	state Exp;
branches;
next	4.6.1.8;

4.6.1.8
date	2011.01.18.03.22.04;	author cal103;	state Exp;
branches;
next	4.6.1.9;

4.6.1.9
date	2011.01.18.03.55.45;	author cal103;	state Exp;
branches;
next	4.6.1.10;

4.6.1.10
date	2011.01.25.00.33.50;	author cal103;	state Exp;
branches;
next	;

4.7.1.1
date	2011.02.07.07.04.22;	author cal103;	state Exp;
branches;
next	4.7.1.2;

4.7.1.2
date	2011.07.21.04.33.51;	author cal103;	state Exp;
branches;
next	4.7.1.3;

4.7.1.3
date	2011.08.09.08.21.05;	author cal103;	state Exp;
branches;
next	4.7.1.4;

4.7.1.4
date	2011.08.11.04.25.28;	author cal103;	state Exp;
branches;
next	4.7.1.5;

4.7.1.5
date	2011.08.12.08.50.56;	author cal103;	state Exp;
branches;
next	4.7.1.6;

4.7.1.6
date	2011.08.13.06.40.18;	author cal103;	state Exp;
branches;
next	;

4.8.1.1
date	2011.08.15.08.07.06;	author cal103;	state Exp;
branches;
next	4.8.1.2;

4.8.1.2
date	2011.09.16.04.41.29;	author cal103;	state Exp;
branches;
next	4.8.1.3;

4.8.1.3
date	2011.11.23.04.48.27;	author cal103;	state Exp;
branches;
next	4.8.1.4;

4.8.1.4
date	2011.12.05.06.41.07;	author cal103;	state Exp;
branches;
next	;

4.9.1.1
date	2012.01.24.05.41.45;	author cal103;	state Exp;
branches;
next	;

4.10.1.1
date	2012.02.05.23.42.46;	author cal103;	state Exp;
branches;
next	;

4.11.1.1
date	2012.02.20.23.31.13;	author cal103;	state Exp;
branches;
next	;

4.12.1.1
date	2012.02.29.07.59.10;	author cal103;	state Exp;
branches;
next	;

4.13.1.1
date	2012.03.14.07.40.37;	author cal103;	state Exp;
branches;
next	4.13.1.2;

4.13.1.2
date	2012.03.21.02.55.04;	author cal103;	state Exp;
branches;
next	4.13.1.3;

4.13.1.3
date	2012.07.12.15.36.09;	author cal103;	state Exp;
branches;
next	4.13.1.4;

4.13.1.4
date	2012.07.13.03.30.49;	author cal103;	state Exp;
branches;
next	4.13.1.5;

4.13.1.5
date	2012.07.13.03.33.19;	author cal103;	state Exp;
branches;
next	;

4.14.1.1
date	2012.07.13.10.04.44;	author cal103;	state Exp;
branches;
next	4.14.1.2;

4.14.1.2
date	2012.09.26.08.18.13;	author cal103;	state Exp;
branches;
next	;

4.15.1.1
date	2012.09.26.14.27.51;	author cal103;	state Exp;
branches;
next	;

4.16.1.1
date	2012.11.07.04.45.56;	author cal103;	state Exp;
branches;
next	;

4.17.1.1
date	2013.01.29.05.32.32;	author cal103;	state Exp;
branches;
next	4.17.1.2;

4.17.1.2
date	2013.07.12.03.38.16;	author mcalabre;	state Exp;
branches;
next	;

4.18.1.1
date	2013.07.13.10.02.37;	author mcalabre;	state Exp;
branches;
next	4.18.1.2;

4.18.1.2
date	2013.07.14.02.15.55;	author mcalabre;	state Exp;
branches;
next	;

4.19.1.1
date	2013.09.29.14.20.38;	author mcalabre;	state Exp;
branches;
next	;

4.20.1.1
date	2013.12.18.05.46.55;	author mcalabre;	state Exp;
branches;
next	;

4.21.1.1
date	2014.03.24.05.15.28;	author mcalabre;	state Exp;
branches;
next	;

4.22.1.1
date	2014.04.12.15.06.32;	author mcalabre;	state Exp;
branches;
next	4.22.1.2;

4.22.1.2
date	2014.05.10.14.35.31;	author mcalabre;	state Exp;
branches;
next	;

4.23.1.1
date	2014.05.13.05.53.49;	author mcalabre;	state Exp;
branches;
next	;

4.24.1.1
date	2014.09.18.15.28.09;	author mcalabre;	state Exp;
branches;
next	;

4.25.1.1
date	2014.12.14.14.32.45;	author mcalabre;	state Exp;
branches;
next	4.25.1.2;

4.25.1.2
date	2015.03.06.01.28.00;	author mcalabre;	state Exp;
branches;
next	4.25.1.3;

4.25.1.3
date	2015.03.13.22.25.49;	author mcalabre;	state Exp;
branches;
next	4.25.1.4;

4.25.1.4
date	2015.03.15.09.01.20;	author mcalabre;	state Exp;
branches;
next	4.25.1.5;

4.25.1.5
date	2015.04.03.02.25.01;	author mcalabre;	state Exp;
branches;
next	4.25.1.6;

4.25.1.6
date	2015.04.03.07.08.41;	author mcalabre;	state Exp;
branches;
next	4.25.1.7;

4.25.1.7
date	2015.04.05.08.27.41;	author mcalabre;	state Exp;
branches;
next	;

5.0.1.1
date	2015.04.05.12.28.00;	author mcalabre;	state Exp;
branches;
next	5.0.1.2;

5.0.1.2
date	2015.04.07.09.49.49;	author mcalabre;	state Exp;
branches;
next	;

5.1.1.1
date	2015.04.07.11.01.10;	author mcalabre;	state Exp;
branches;
next	5.1.1.2;

5.1.1.2
date	2015.04.15.09.20.45;	author mcalabre;	state Exp;
branches;
next	;

5.2.1.1
date	2015.04.15.12.39.14;	author mcalabre;	state Exp;
branches;
next	;

5.3.1.1
date	2015.04.21.02.54.02;	author mcalabre;	state Exp;
branches;
next	5.3.1.2;

5.3.1.2
date	2015.04.21.13.27.49;	author mcalabre;	state Exp;
branches;
next	;

5.4.1.1
date	2015.04.21.14.44.28;	author mcalabre;	state Exp;
branches;
next	5.4.1.2;

5.4.1.2
date	2015.05.05.12.59.40;	author mcalabre;	state Exp;
branches;
next	;

5.5.1.1
date	2015.05.05.13.21.00;	author mcalabre;	state Exp;
branches;
next	;

5.6.1.1
date	2015.06.14.07.14.44;	author mcalabre;	state Exp;
branches;
next	5.6.1.2;

5.6.1.2
date	2015.06.16.07.46.49;	author mcalabre;	state Exp;
branches;
next	5.6.1.3;

5.6.1.3
date	2015.06.28.14.46.48;	author mcalabre;	state Exp;
branches;
next	;

5.7.1.1
date	2015.06.29.02.47.24;	author mcalabre;	state Exp;
branches;
next	5.7.1.2;

5.7.1.2
date	2015.07.03.13.31.15;	author mcalabre;	state Exp;
branches;
next	5.7.1.3;

5.7.1.3
date	2015.07.08.07.07.28;	author mcalabre;	state Exp;
branches;
next	;

5.8.1.1
date	2015.07.08.11.07.18;	author mcalabre;	state Exp;
branches;
next	;

5.9.1.1
date	2015.07.21.09.28.07;	author mcalabre;	state Exp;
branches;
next	;

5.10.1.1
date	2015.10.09.08.22.35;	author mcalabre;	state Exp;
branches;
next	;

5.11.1.1
date	2015.10.18.09.16.27;	author mcalabre;	state Exp;
branches;
next	;

5.12.1.1
date	2015.11.15.02.16.14;	author mcalabre;	state Exp;
branches;
next	;

5.13.1.1
date	2016.01.26.08.54.32;	author mcalabre;	state Exp;
branches;
next	;

5.14.1.1
date	2016.02.07.10.52.44;	author mcalabre;	state Exp;
branches;
next	;

5.15.1.1
date	2016.04.05.12.58.35;	author mcalabre;	state Exp;
branches;
next	;

5.16.1.1
date	2017.01.15.04.28.59;	author mcalabre;	state Exp;
branches;
next	5.16.1.2;

5.16.1.2
date	2017.09.12.04.11.36;	author mcalabre;	state Exp;
branches;
next	;

5.17.1.1
date	2017.09.18.08.45.59;	author mcalabre;	state Exp;
branches;
next	5.17.1.2;

5.17.1.2
date	2017.12.05.01.28.46;	author mcalabre;	state Exp;
branches;
next	;

5.18.1.1
date	2018.01.10.08.33.04;	author mcalabre;	state Exp;
branches;
next	;

5.19.1.1
date	2018.07.26.15.41.40;	author mcalabre;	state Exp;
branches;
next	5.19.1.2;

5.19.1.2
date	2018.10.03.13.23.30;	author mcalabre;	state Exp;
branches;
next	5.19.1.3;

5.19.1.3
date	2018.10.05.04.33.39;	author mcalabre;	state Exp;
branches;
next	;

5.20.1.1
date	2018.10.05.05.33.33;	author mcalabre;	state Exp;
branches;
next	5.20.1.2;

5.20.1.2
date	2018.10.07.06.30.09;	author mcalabre;	state Exp;
branches;
next	5.20.1.3;

5.20.1.3
date	2018.10.19.04.16.57;	author mcalabre;	state Exp;
branches;
next	;

6.1.1.1
date	2018.10.19.08.36.15;	author mcalabre;	state Exp;
branches;
next	;

6.2.1.1
date	2018.10.20.10.04.15;	author mcalabre;	state Exp;
branches;
next	6.2.1.2;

6.2.1.2
date	2019.07.11.07.56.26;	author mcalabre;	state Exp;
branches;
next	6.2.1.3;

6.2.1.3
date	2019.07.12.06.56.24;	author mcalabre;	state Exp;
branches;
next	;

6.3.1.1
date	2019.07.12.07.34.37;	author mcalabre;	state Exp;
branches;
next	;

6.4.1.1
date	2019.08.15.09.31.29;	author mcalabre;	state Exp;
branches;
next	;

7.1.1.1
date	2019.12.31.13.28.19;	author mcalabre;	state Exp;
branches;
next	7.1.1.2;

7.1.1.2
date	2020.02.26.10.58.05;	author mcalabre;	state Exp;
branches;
next	;

7.2.1.1
date	2020.03.09.07.34.50;	author mcalabre;	state Exp;
branches;
next	;

7.3.1.1
date	2020.06.03.03.38.10;	author mcalabre;	state Exp;
branches;
next	;

7.4.1.1
date	2021.01.31.02.26.24;	author mcalabre;	state Exp;
branches;
next	7.4.1.2;

7.4.1.2
date	2021.03.02.13.24.57;	author mcalabre;	state Exp;
branches;
next	7.4.1.3;

7.4.1.3
date	2021.03.20.04.26.06;	author mcalabre;	state Exp;
branches;
next	;

7.5.1.1
date	2021.03.20.05.56.42;	author mcalabre;	state Exp;
branches;
next	7.5.1.2;

7.5.1.2
date	2021.04.11.08.15.52;	author mcalabre;	state Exp;
branches;
next	;

7.6.1.1
date	2021.04.13.13.00.35;	author mcalabre;	state Exp;
branches;
next	7.6.1.2;

7.6.1.2
date	2021.05.13.04.12.34;	author mcalabre;	state Exp;
branches;
next	7.6.1.3;

7.6.1.3
date	2021.05.13.04.16.16;	author mcalabre;	state Exp;
branches;
next	;

7.7.1.1
date	2021.07.12.06.38.27;	author mcalabre;	state Exp;
branches;
next	;

7.8.1.1
date	2022.03.25.06.14.14;	author mcalabre;	state Exp;
branches;
next	;

7.9.1.1
date	2022.03.25.15.16.40;	author mcalabre;	state Exp;
branches;
next	;

7.10.1.1
date	2022.04.23.14.26.54;	author mcalabre;	state Exp;
branches;
next	;

7.11.1.1
date	2022.04.26.06.15.32;	author mcalabre;	state Exp;
branches;
next	;

7.12.1.1
date	2022.09.09.05.00.36;	author mcalabre;	state Exp;
branches;
next	;

7.13.1.1
date	2022.10.07.03.45.47;	author mcalabre;	state Exp;
branches;
next	;

8.0.1.1
date	2023.07.01.06.22.44;	author mcalabre;	state Exp;
branches;
next	;

8.1.1.1
date	2023.07.05.17.15.00;	author mcalabre;	state Exp;
branches;
next	;

8.2.1.1
date	2023.11.16.10.05.57;	author mcalabre;	state Exp;
branches;
next	8.2.1.2;

8.2.1.2
date	2024.05.13.14.16.34;	author mcalabre;	state Exp;
branches;
next	;

8.3.1.1
date	2024.05.13.16.35.39;	author mcalabre;	state Exp;
branches;
next	8.3.1.2;

8.3.1.2
date	2024.07.09.09.22.14;	author mcalabre;	state Exp;
branches;
next	;

8.4.1.1
date	2024.10.28.13.58.41;	author mcalabre;	state Exp;
branches;
next	;

8.5.1.1
date	2025.12.06.14.05.15;	author mcalabre;	state Exp;
branches;
next	8.5.1.2;

8.5.1.2
date	2026.03.29.13.39.58;	author mcalabre;	state Exp;
branches;
next	;

8.6.1.1
date	2026.03.29.14.19.26;	author mcalabre;	state Exp;
branches;
next	8.6.1.2;

8.6.1.2
date	2026.04.05.08.18.17;	author mcalabre;	state Exp;
branches;
next	8.6.1.3;

8.6.1.3
date	2026.04.24.05.34.44;	author mcalabre;	state Exp;
branches;
next	;


desc
@GNU makefile for WCSLIB.
@


8.7
log
@WCSLIB 8.7
@
text
@#-----------------------------------------------------------------------------
# GNU makefile for building WCSLIB 8.7 and its test suite.
#
# Summary of the main targets
# ---------------------------
#   build:     Build the library.
#
#   clean:     Delete intermediate object files.
#
#   cleaner:   clean, and also delete the test executables.
#
#   cleanest (distclean or realclean): cleaner, and also delete the object
#              library and the C source files generated by 'flex'.
#
#   check (or test): Compile and run the test programs.  By default they are
#              executed in batch mode, and non-graphical tests only report
#              "PASS" on success.  Use
#
#                make MODE=interactive check
#
#              to run them interactively with full diagnostic output.  To skip
#              graphical tests even if PGPLOT is available, use
#
#                make CHECK=nopgplot check
#
#   tests:     Compile the test programs (but don't run them).
#
# Notes:
#   1) If you need to make changes then preferably modify ../makedefs.in
#      instead and re-run configure.
#
# Author: Mark Calabretta, Australia Telescope National Facility, CSIRO.
# http://www.atnf.csiro.au/computing/software/wcs
# $Id: GNUmakefile,v 8.6.1.3 2026/04/24 05:34:44 mcalabre Exp mcalabre $
#-----------------------------------------------------------------------------
# Get configure settings.
SUBDIR := C
include ../makedefs

FLEXMODS := $(patsubst %.l,%.c,$(wildcard *.l))
CFILES   := $(filter-out $(FLEXMODS), $(wildcard *.c))
MODULES  := $(sort \
              $(patsubst %.c,%.o, \
                $(filter-out getwcstab.c,$(CFILES)) $(FLEXMODS)))

ifeq "$(WCSTRIG)" "MACRO"
  CPPFLAGS += -DWCSTRIG_MACRO
  MODULES  := $(filter-out wcstrig.o, $(MODULES))
else
  ifeq "$(WCSTRIG)" "NATIVE"
    MODULES := $(filter-out wcstrig.o, $(MODULES))
  endif
endif

LIBLOCK := lib.lock

# For building the sharable library.
PICLIB := libwcs-PIC.a

CPPFLAGS += -I. -I..

vpath %.c  test
vpath %.h  ..
vpath %.in ..


# For building and exercising the test suite
# ------------------------------------------
# Test programs that don't require CFITSIO or PGPLOT...
TEST_N := tlin tdis1 tdis2 tlog tprj1 tsph tsphdpa tspx ttab1 twcs twcssub \
          tpih1 tbth1 tfitshdr tunits twcsfix twcscompare

# ...and unofficial test programs.
TEST_n := tdisiter tspcaips tspcspxe tspctrne twcs_locale

# Test programs that require CFITSIO (they don't need PGPLOT).
TEST_C := twcstab twcshdr tdis3 twcslint

# Test programs that require PGPLOT but not PGSBOX.
TEST_P := tspc tprj2 tcel1 tcel2 ttab2 ttab3 twcsmix

# Test programs that require PGSBOX (and therefore PGPLOT).
TEST_B := tpih2

# Test programs for POSIX threads.
TEST_T := tpih_pthread twcs_pthread

# Test programs that are compiled but not automatically exercised.
TEST_X := tsphdpa twcshdr


TESTS  := $(TEST_N)

# Do we have CFITSIO?
DO_CFITSIO := 1
ifeq "$(CFITSIOINC)" ""
  DO_CFITSIO := 0
else ifeq "$(CFITSIOLIB)" ""
  DO_CFITSIO := 0
endif

ifeq "$(DO_CFITSIO)" "1"
  # Yes, add test programs that use it.
  TESTS += $(TEST_C)
  CFITSIO_CFLAGS := $(filter-out -Wpadded,$(CFLAGS))
else
  # No, amend TEST_X.
  TEST_X := $(filter-out $(TEST_C),$(TEST_X))
endif

# Do we have PGPLOT?
DO_PGPLOT := 0
ifneq "$(CHECK)" "nopgplot"
  DO_PGPLOT := 1
  ifeq "$(PGPLOTINC)" ""
    DO_PGPLOT := 0
  else ifeq "$(PGPLOTLIB)" ""
    DO_PGPLOT := 0
  endif

  ifeq "$(DO_PGPLOT)" "1"
    # Yes, add test programs that use it.
    TESTS += $(TEST_P) $(TEST_B)
  else
    # No, amend TEST_X.
    TEST_X := $(filter-out $(TEST_P) $(TEST_B),$(TEST_X))
  endif
endif

# Remove tests that aren't automatically exercised.
TESTS := $(filter-out $(TEST_X), $(TESTS))

PGSBOXLIB := ../pgsbox/libpgsbox-$(LIBVER).a

ADDRE := 0x[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]*

# Pattern rules
#--------------

ifeq "$(FLEX)" "flex"
  %.c : %.l
	-@@ echo ''
	-@@ $(RM) $@@
	   $(FLEX) $(FLFLAGS) -t $< | sed -e 's/^[	 ]*#/#/' > $@@
else
  %.c : %.l
	-@@ echo ''
	-@@ $(RM) $@@
	   cp flexed/$@@ .
endif

$(WCSLIB)(%.o) : %.c
	-@@ echo ''
	   $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
	 @@ if [ ! -f $(LIBLOCK) ] ; then \
	     echo $(AR) r$(ARFLAGS) $(WCSLIB) $% ; \
	     $(AR) r$(ARFLAGS) $(WCSLIB) $% ; \
	     $(RM) $% ; \
	   fi

$(PICLIB)(%.o) : $(WCSLIB)(%.o)
	-@@ echo ''
	   $(CC) $(CPPFLAGS) $(CFLAGS) $(SHRFLAGS) -c $(%:.o=.c)
	 @@ if [ ! -f $(LIBLOCK) ] ; then \
	     echo $(AR) r$(ARFLAGS) $(PICLIB) $% ; \
	     $(AR) r$(ARFLAGS) $(PICLIB) $% ; \
	     $(RM) $% ; \
	   fi

# May need to create temporary symlinks to include file directories for
# CFITSIO, etc. for the following two rules.
%.i : %.c
	-@@ echo ''
	-@@ $(RM) $@@
	   $(CPP) $(CPPFLAGS) $(CFLAGS) $< > $@@

# Print out include file dependencies.
%.d : %.c
	-@@ echo ''
	-@@ $(CPP) $(CPPFLAGS) $(CFLAGS) $< | \
	   sed -n -e 's|^# 1 "\([^/].*\.h\)".*|\1|p' | \
	   sed -e 's|.*/||' | \
	   sort -u

%.fits : test/%.keyrec ../utils/tofits
	   ../utils/tofits < $< > $@@

# Static code analysis (clang-tidy).
%.sca : %.c ../.clang-tidy
	-@@ echo ''
	   $(ANALYSE) $< -- 2>&1 | tee $@@

# Use 'make VALGRIND=T run_%' to have VALGRIND defined (from flavours).
# Use 'make VALGRIND=T check < /dev/null |& tee check_valgrind.log' to run
# valgrind on the lot.
run_% : %
	-@@ echo ''
	-@@ $(TIMER)
	 @@ if [ '$(MODE)' = interactive -o '$(VALGRIND)' ] ; then \
	     printf 'Press <CR> to run $<: ' ; \
	     read DUMMY ; \
	   fi ; \
	   if [ '$(VALGRIND)' ] ; then \
	     if [ '$<' = tunits ] ; then \
	       $(VALGRIND) ./$< < test/units_test ; \
	     else \
	       $(VALGRIND) ./$< ; \
	     fi ; \
	   else \
	     if [ '$(filter $<, $(TEST_N) $(TEST_C))' ] ; then \
	       if [ '$<' = tunits ] ; then \
	         if [ '$(MODE)' = interactive ] ; then \
	           ./$< < test/units_test 2>&1 | tee $<.out ; \
	         else \
	           ./$< < test/units_test > $<.out 2>&1 ; \
	         fi ; \
	       else \
	         if [ '$(MODE)' = interactive ] ; then \
	           ./$< < /dev/null 2>&1 | tee $<.out ; \
	         else \
	           ./$< < /dev/null > $<.out 2>&1 ; \
	         fi ; \
	       fi ; \
	       if grep 'FAIL:' $<.out > /dev/null ; then \
	         if [ '$(MODE)' != interactive ] ; then \
	           head -2 $<.out ; \
	           grep 'FAIL:' $<.out ; \
	         fi ; \
	         echo 'FAIL: C/$<' >> test_results ; \
	       elif grep 'PASS:' $<.out > /dev/null ; then \
	         if [ '$(MODE)' != interactive ] ; then \
	           head -2 $<.out ; \
	           grep 'PASS:' $<.out ; \
	         fi ; \
	         echo 'PASS: C/$<' >> test_results ; \
	       elif [ -f 'test/$<.out' ] ; then \
	         trap 'rm -f run_$<.tmp' 0 1 2 3 15 ; \
	         sed -e 's/$(ADDRE)/0x<address>/g' \
	             -e 's/chksum:.*/chksum: <CHECKSUM>/' $<.out > \
	           run_$<.tmp ; \
	         mv -f run_$<.tmp $<.out ; \
	         if cmp -s $<.out test/$<.out ; then \
	           if [ '$(MODE)' != interactive ] ; then \
	             head -2 $<.out ; \
	           fi ; \
	           echo 'PASS: Output agrees with C/test/$<.out' ; \
	           echo 'PASS: C/$<' >> test_results ; \
	         else \
	           if [ '$(MODE)' != interactive ] ; then \
	             cat $<.out ; \
	           fi ; \
	           echo '' ; \
	           echo 'FAIL: Output disagrees with C/test/$<.out' ; \
	           echo 'FAIL: C/$<' >> test_results ; \
	         fi ; \
	       elif [ '$(MODE)' != interactive ] ; then \
	         cat $<.out ; \
	         echo 'FAIL: C/$<' >> test_results ; \
	       fi ; \
	     elif [ '$(MODE)' = interactive ] ; then \
	       ./$< ; \
	     else \
	       if [ '$<' = tcel2 ] ; then \
	         echo N | ./$< ; \
	       else \
	         ./$< < /dev/null 2>&1 ; \
	       fi ; \
	     fi ; \
	   fi
	-@@ echo ''

# Static and static pattern rules
#--------------------------------

.PHONY : analyse build check clean cleaner cleanest distclean install lib \
         realclean run_% test tests uninstall

build : lib

lib : $(FLEXMODS)
	-@@ echo ''
	-@@ echo 'Building WCSLIB C library...'
	 @@ $(MAKE) --no-print-directory $(WCSLIB)

$(WCSLIB) : $(LIBLOCK) $(MODULES:%=$(WCSLIB)(%))
	-@@ echo ''
	 @@ set *.o ; \
	     if [ "$$1" != "*.o" ] ; then \
	       echo $(AR) r$(ARFLAGS) $@@ *.o ; \
	       $(AR) r$(ARFLAGS) $@@ *.o ; \
	       echo $(RANLIB) $@@ ; \
	       $(RANLIB) $@@ ; \
	       $(RM) *.o ; \
	     fi
	-@@ $(RM) $<
	 @@ if [ "$(SHRLIB)" != "" ] ; then \
	     $(MAKE) --no-print-directory $(SHRLIB) ; \
	   fi

$(SHRLIB) : $(PICLIB)
	-@@ echo ''
	-@@ $(RM) -r tmp
	   mkdir tmp && \
	     cd tmp && \
	     trap 'cd .. ; $(RM) -r tmp' 0 1 2 3 15 ; \
	     $(AR) x ../$(PICLIB) && \
	     $(SHRLD) -o $@@ *.o $(LDFLAGS) $(LIBS) && \
	     mv $@@ ..

$(PICLIB) : $(LIBLOCK) $(MODULES:%=$(PICLIB)(%))
	-@@ echo ''
	 @@ set *.o ; \
	     if [ "$$1" != "*.o" ] ; then \
	       echo $(AR) r$(ARFLAGS) $@@ *.o ; \
	       $(AR) r$(ARFLAGS) $@@ *.o ; \
	       $(RM) *.o ; \
	     fi
	-@@ $(RM) $<

$(LIBLOCK) : FORCE
	 @@ $(RM) *.o
	 @@ touch $@@

analyse : $(CFILES:%.c=%.sca)

install : build
	-  if [ ! -d "$(LIBDIR)" ] ; then \
	     $(INSTALL) -d -m 775 $(LIBDIR) ; \
	   fi
	   if [ "$(ARFLAGS)" = U ] ; then \
	     $(RM) -r tmp ; \
	     mkdir tmp && \
	       cd tmp && \
	       trap 'cd .. ; $(RM) -r tmp' 0 1 2 3 15 ; \
	       $(AR) x ../$(WCSLIB) && \
	       $(AR) rD $(WCSLIB) *.o && \
	       $(INSTALL) -m 644 $(WCSLIB) $(LIBDIR) ; \
	       cd .. ; \
	       $(RM) -r tmp ; \
	   else \
	     $(INSTALL) -m 644 $(WCSLIB) $(LIBDIR) ; \
	   fi
	   $(RANLIB) $(LIBDIR)/$(WCSLIB)
	-  if [ -h "$(LIBDIR)/libwcs.a" ] ; then \
	     $(RM) $(LIBDIR)/libwcs.a ; \
	   fi
	   $(LN_S) $(WCSLIB) $(LIBDIR)/libwcs.a
	   if [ "$(SHRLIB)" != "" ] ; then \
	     $(INSTALL) -m 755 $(SHRLIB) $(LIBDIR) ; \
	     if [ -h "$(LIBDIR)/$(SONAME)" ] ; then \
	       $(RM) $(LIBDIR)/$(SONAME) ; \
	     fi ; \
	     $(LN_S) $(SHRLIB) $(LIBDIR)/$(SONAME) ; \
	     if [ "$(SHRLN)" != "" ] ; then \
	       if [ -h "$(LIBDIR)/$(SHRLN)" ] ; then \
	         $(RM) $(LIBDIR)/$(SHRLN) ; \
	       fi ; \
	       $(LN_S) $(SONAME) $(LIBDIR)/$(SHRLN) ; \
	     fi ; \
	   fi
	-  if [ ! -d "$(INCDIR)" ] ; then \
	     $(INSTALL) -d -m 775 $(INCDIR) ; \
	   fi
	   $(INSTALL) -m 444 *.h $(INCDIR)
	-  $(RM) $(INCLINK)
	   $(LN_S) $(notdir $(INCDIR)) $(INCLINK)

uninstall :
	-  cd $(LIBDIR) && $(RM) $(WCSLIB) $(SHRLN) $(SONAME) $(SHRLIB)
	-  $(RM) $(INCDIR)
	-  $(RM) $(INCLINK)

clean :
	- $(RM) *.o $(LIBLOCK) *.i a.out t*.out core *.dSYM *.sca
	- $(RM) -r $(EXTRA_CLEAN)

cleaner : clean
	-  $(RM) .gdb_history
	-  $(RM) $(TEST_N) $(TEST_n) $(TEST_T) $(TEST_X)
	-  $(RM) $(TEST_P) tdis3 tpih2 twcshdr twcslint twcstab
	-  $(RM) bth.fits fitshdr.fits pih.fits wcslint.fits wcspcx.fits
	-  $(RM) wcstab.fits SIP.fits SIPTPV.fits TPV3.fits TPV5.fits
	-  $(RM) TPV7.fits DSS.fits TNX.fits ZPX.fits
	-  $(RM) t*_cfitsio test_results

cleanest distclean realclean : cleaner
	-  $(RM) ../wcsconfig.h ../wcsconfig_tests.h
	-  $(RM) fitshdr.c wcsbth.c wcspih.c wcsulex.c wcsutrn.c
	-  $(RM) $(PICLIB) libwcs-*.a libwcs.so.* libwcs.*.dylib

check test : tests $(TESTS:%=run_%)

tests : $(TESTS) $(TEST_X)

# TEST_N and TEST_n programs (no special libraries required).
$(TEST_N) $(TEST_n) : % : test/%.c $(WCSLIB)
	-@@ echo ''
	   $(CC) $(CPPFLAGS) $(CFLAGS) -o $@@ $< $(LDFLAGS) $(WCSLIB) $(LIBS)
	-@@ $(RM) $@@.o

# TEST_N programs (optionally using CFITSIO).
tpih1_cfitsio tbth1_cfitsio tfitshdr_cfitsio : %_cfitsio : test/%.c $(WCSLIB)
	-@@ echo ''
	   $(CC) -DDO_CFITSIO $(CPPFLAGS) $(CFITSIOINC) $(CFITSIO_CFLAGS) \
	     -o $@@ $< $(LDFLAGS) $(CFITSIOLIB) $(WCSLIB) $(LIBS)
	-@@ $(RM) $@@.o

# TEST_C programs (using CFITSIO).
twcstab : test/twcstab.c $(WCSLIB) $(GETWCSTAB)
	-@@ echo ''
	   $(CC) $(CPPFLAGS) $(CFITSIOINC) $(CFITSIO_CFLAGS) -o $@@ $< \
	     $(GETWCSTAB) $(LDFLAGS) $(CFITSIOLIB) $(WCSLIB) $(LIBS)
	-@@ $(RM) $@@.o $(GETWCSTAB)

twcshdr : test/twcshdr.c $(WCSLIB) $(GETWCSTAB)
	-@@ echo ''
	   $(CC) $(CPPFLAGS) $(CFITSIOINC) $(CFITSIO_CFLAGS) -o $@@ $< \
	     $(GETWCSTAB) $(LDFLAGS) $(CFITSIOLIB) $(WCSLIB) $(LIBS)
	-@@ $(RM) $@@.o $(GETWCSTAB)

tdis3 : test/tdis3
	-@@ echo ''
	   cp $< .
	-@@ chmod a+x $@@

twcslint : test/twcslint
	-@@ echo ''
	   cp $< .
	-@@ chmod a+x $@@

# TEST_P programs (using PGPLOT).
$(TEST_P) : % : test/%.c $(WCSLIB)
	-@@ echo ''
	   $(CC) $(CPPFLAGS) $(PGPLOTINC) $(CFLAGS) -c -o $@@.o $<
	   $(LD) -o $@@ $@@.o $(LDFLAGS) $(PGPLOTLIB) $(WCSLIB) $(FLIBS) $(LIBS)
	-@@ $(RM) $@@.o

# TEST_B programs (PGSBOX and PGPLOT).
tpih2 : test/tpih2.c $(PGSBOXLIB) $(WCSLIB)
	-@@ echo ''
	   $(CC) $(CPPFLAGS) -I../pgsbox $(PGPLOTINC) $(CFLAGS) -c -o $@@.o $<
	   $(LD) -o $@@ $@@.o $(LDFLAGS) $(PGSBOXLIB) $(PGPLOTLIB) $(WCSLIB) \
	     $(FLIBS) $(LIBS)
	-@@ $(RM) $@@.o

tpih2_cfitsio : test/tpih2.c $(PGSBOXLIB) $(WCSLIB)
	-@@ echo ''
	   $(CC) -DDO_CFITSIO $(CPPFLAGS) -I../pgsbox $(PGPLOTINC) \
	     $(CFITSIOINC) $(CFITSIO_CFLAGS) -c -o $@@.o $<
	   $(LD) -o $@@ $@@.o $(LDFLAGS) $(PGSBOXLIB) $(PGPLOTLIB) \
	     $(CFITSIOLIB) $(WCSLIB) $(FLIBS) $(LIBS)
	-@@ $(RM) $@@.o

# POSIX threads test programs.
$(TEST_T) : %_pthread : test/%_pthread.c $(WCSLIB)
	-@@ echo ''
	   $(CC) $(CPPFLAGS) $(CFLAGS) -pthread -c -o $@@.o $<
	   $(LD) -o $@@ $@@.o $(LDFLAGS) -pthread $(WCSLIB) -lpthread $(LIBS)
	-@@ $(RM) $@@.o

getwcstab.o : getwcstab.c getwcstab.h
	-@@ echo ''
	   $(CC) $(CPPFLAGS) $(CFITSIO_CFLAGS) $(CFITSIOINC) -c $<

$(PGSBOXLIB) :
	-@@ echo ''
	   $(MAKE) -C ../pgsbox $(notdir $@@)

../utils/tofits : ../utils/tofits.c
	   $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@@ $<

GNUmakefile : ../makedefs ;

../makedefs ../wcsconfig.h ../wcsconfig_tests.h : makedefs.in wcsconfig.h.in \
    wcsconfig_tests.h.in ../config.status
	-@@ $(RM) ../wcsconfig.h ../wcsconfig_tests.h
	   cd .. && ./config.status

show ::
	-@@ echo '  FLEXMODS    := $(FLEXMODS)'
	-@@ echo '  CFILES      := $(CFILES)'
	-@@ echo '  MODULES     := $(MODULES)'
	-@@ echo '  DO_CFITSIO  := $(DO_CFITSIO)'
	-@@ echo '  DO_PGPLOT   := $(DO_PGPLOT)'
	-@@ echo '  TESTS       := $(TESTS)'
	-@@ echo '  TEST_X      := $(TEST_X)'

# Dependencies (use the %.d pattern rule to list them)
#-----------------------------------------------------

$(WCSLIB)(cel.o)      : cel.h prj.h sph.h wcsconfig.h wcserr.h wcsmath.h \
                        wcsprintf.h wcstrig.h
$(WCSLIB)(dis.o)      : dis.h wcserr.h wcslimits.h wcsprintf.h wcsutil.h
$(WCSLIB)(fitshdr.o)  : fitshdr.h wcsconfig.h wcsutil.h
$(WCSLIB)(lin.o)      : dis.h lin.h wcserr.h wcslimits.h wcsprintf.h
$(WCSLIB)(log.o)      : log.h
$(WCSLIB)(prj.o)      : prj.h wcsconfig.h wcserr.h wcsmath.h wcsprintf.h \
                        wcstrig.h wcsutil.h
$(WCSLIB)(spc.o)      : spc.h spx.h wcsconfig.h wcserr.h wcsmath.h \
                        wcsprintf.h wcstrig.h wcsutil.h
$(WCSLIB)(sph.o)      : sph.h wcsconfig.h wcstrig.h
$(WCSLIB)(spx.o)      : spx.h wcserr.h wcsmath.h
$(WCSLIB)(tab.o)      : tab.h wcserr.h wcsmath.h wcsprintf.h wcsutil.h
$(WCSLIB)(wcs.o)      : cel.h dis.h lin.h log.h prj.h spc.h sph.h spx.h \
                        tab.h wcs.h wcsconfig.h wcserr.h wcslimits.h \
                        wcsmath.h wcsprintf.h wcstrig.h wcsunits.h wcsutil.h
$(WCSLIB)(wcsbth.o)   : cel.h lin.h prj.h spc.h spx.h wcs.h wcshdr.h \
                        wcsmath.h wcsprintf.h wcsutil.h
$(WCSLIB)(wcserr.o)   : wcserr.h wcsprintf.h
$(WCSLIB)(wcsfix.o)   : cel.h lin.h prj.h spc.h sph.h spx.h wcs.h wcserr.h \
                        wcsfix.h wcslimits.h wcsmath.h wcsunits.h wcsutil.h
$(WCSLIB)(wcshdr.o)   : cel.h dis.h lin.h prj.h spc.h spx.h tab.h wcs.h \
                        wcserr.h wcshdr.h wcsmath.h wcsutil.h
$(WCSLIB)(wcspih.o)   : cel.h dis.h lin.h prj.h spc.h spx.h wcs.h wcshdr.h \
                        wcsmath.h wcsprintf.h wcsutil.h
$(WCSLIB)(wcsprintf.o): wcsprintf.h
$(WCSLIB)(wcstrig.o)  : wcsconfig.h wcsmath.h wcstrig.h
$(WCSLIB)(wcsulex.o)  : wcserr.h wcsmath.h wcsunits.h wcsutil.h
$(WCSLIB)(wcsunits.o) : wcserr.h wcsunits.h
$(WCSLIB)(wcsutil.o)  : wcsmath.h wcsutil.h
$(WCSLIB)(wcsutrn.o)  : wcserr.h wcsunits.h

tbth1 tbth1_cfitsio : cel.h lin.h prj.h spc.h spx.h wcs.h wcsconfig.h \
                      wcsconfig_tests.h wcserr.h wcsfix.h wcshdr.h
tcel1   : cel.h prj.h
tcel2   : cel.h prj.h
tfitshdr tfitshdr_cfitsio : cel.h fitshdr.h lin.h prj.h spc.h spx.h wcs.h \
                            wcsconfig.h wcsconfig_tests.h wcshdr.h
tlin    : lin.h
tdis1   : cel.h dis.h lin.h prj.h spc.h spx.h wcs.h wcserr.h wcshdr.h \
          wcsprintf.h
tdis2   : cel.h lin.h prj.h spc.h spx.h wcs.h wcserr.h wcshdr.h wcsprintf.h
tdisiter: cel.h dis.h lin.h prj.h spc.h spx.h wcs.h wcserr.h wcshdr.h \
          wcsprintf.h
tlog    : log.h
tpih1 tpih1_cfitsio : cel.h lin.h prj.h spc.h spx.h wcs.h wcsconfig.h \
                      wcsconfig_tests.h wcserr.h wcsfix.h wcshdr.h wcsprintf.h
tpih2 tpih2_cfitsio : cel.h lin.h prj.h spc.h spx.h wcs.h wcsconfig.h \
                      wcsconfig_tests.h wcshdr.h
tprj1   : prj.h wcsconfig.h wcstrig.h
tprj2   : prj.h
tspc    : spc.h spx.h wcsconfig.h wcstrig.h
tspcaips: spc.h spx.h
tspctrne: spc.h spx.h wcserr.h
tsph    : sph.h wcsconfig.h wcstrig.h
tsphdpa : sph.h
tspx    : spx.h
ttab1   : tab.h
ttab2   : tab.h
ttab3   : prj.h tab.h
tunits  : wcserr.h wcsunits.h
twcs    : cel.h dis.h fitshdr.h lin.h log.h prj.h spc.h sph.h spx.h tab.h \
          wcs.h wcsconfig.h wcsconfig_tests.h wcserr.h wcsfix.h wcshdr.h \
	  wcslib.h wcsmath.h wcsprintf.h wcstrig.h wcsunits.h wcsutil.h
twcs_locale : cel.h lin.h prj.h spc.h spx.h wcs.h wcserr.h wcshdr.h \
              wcsprintf.h
twcsfix : cel.h lin.h prj.h spc.h spx.h wcs.h wcserr.h wcsfix.h \
          wcsprintf.h wcsunits.h
twcshdr : cel.h dis.h fitshdr.h getwcstab.h lin.h log.h prj.h spc.h sph.h \
          spx.h tab.h wcs.h wcsconfig.h wcserr.h wcsfix.h wcshdr.h wcslib.h \
          wcsmath.h wcsprintf.h wcstrig.h wcsunits.h wcsutil.h
twcsmix : cel.h lin.h prj.h spc.h sph.h spx.h wcs.h
twcssub : cel.h lin.h prj.h spc.h spx.h wcs.h wcserr.h
twcstab : cel.h dis.h fitshdr.h getwcstab.h lin.h log.h prj.h spc.h sph.h \
          spx.h tab.h wcs.h wcsconfig.h wcserr.h wcsfix.h wcshdr.h wcslib.h \
          wcsmath.h wcsprintf.h wcstrig.h wcsunits.h wcsutil.h

run_tdis1 : TPV3.fits TPV5.fits TPV7.fits
run_tdis2 : SIP.fits
run_tdis3 : DSS.fits SIPTPV.fits TNX.fits ZPX.fits
run_tbth1 run_tbth1_cfitsio : bth.fits
run_tfitshdr run_tfitshdr_cfitsio : fitshdr.fits
run_tpih1 run_tpih1_cfitsio : pih.fits
run_tpih2 run_tpih2_cfitsio : pih.fits
run_twcslint : wcslint.fits
run_twcs_locale : pih.fits
@


8.6
log
@WCSLIB 8.6
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 8.6 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 8.5.1.2 2026/03/29 13:39:58 mcalabre Exp mcalabre $
d41 1
d44 1
a44 1
                $(filter-out getwcstab.c,$(wildcard *.c)) $(FLEXMODS)))
d188 5
d275 2
a276 2
.PHONY : build check clean cleaner cleanest distclean install lib realclean \
         run_% test tests uninstall
d324 2
d374 1
a374 1
	- $(RM) *.o $(LIBLOCK) *.i a.out t*.out core *.dSYM
d481 1
d493 1
a493 1
$(WCSLIB)(dis.o)      : dis.h wcserr.h wcsprintf.h wcsutil.h
d495 1
a495 1
$(WCSLIB)(lin.o)      : dis.h lin.h wcserr.h wcsprintf.h
d505 2
a506 2
                        tab.h wcs.h wcsconfig.h wcserr.h wcsmath.h \
                        wcsprintf.h wcstrig.h wcsunits.h wcsutil.h
d511 1
a511 1
                        wcsfix.h wcsmath.h wcsunits.h wcsutil.h
@


8.6.1.1
log
@WCSLIB 8.6 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 8.6 2026/03/29 13:53:56 mcalabre Exp $
@


8.6.1.2
log
@Added wcslimits.h as a dependency of dis.o, lin.o, wcs.o, and wcsfix.o.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 8.6.1.1 2026/03/29 14:19:26 mcalabre Exp mcalabre $
d484 1
a484 1
$(WCSLIB)(dis.o)      : dis.h wcserr.h wcslimits.h wcsprintf.h wcsutil.h
d486 1
a486 1
$(WCSLIB)(lin.o)      : dis.h lin.h wcserr.h wcslimits.h wcsprintf.h
d496 2
a497 2
                        tab.h wcs.h wcsconfig.h wcserr.h wcslimits.h \
                        wcsmath.h wcsprintf.h wcstrig.h wcsunits.h wcsutil.h
d502 1
a502 1
                        wcsfix.h wcslimits.h wcsmath.h wcsunits.h wcsutil.h
@


8.6.1.3
log
@Added rules for static code analysis (clang-tidy).
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 8.6.1.2 2026/04/05 08:18:17 mcalabre Exp mcalabre $
a40 1
CFILES   := $(filter-out $(FLEXMODS), $(wildcard *.c))
d43 1
a43 1
                $(filter-out getwcstab.c,$(CFILES)) $(FLEXMODS)))
a186 5
# Static code analysis (clang-tidy).
%.sca : %.c ../.clang-tidy
	-@@ echo ''
	   $(ANALYSE) $< -- 2>&1 | tee $@@

d269 2
a270 2
.PHONY : analyse build check clean cleaner cleanest distclean install lib \
         realclean run_% test tests uninstall
a317 2
analyse : $(CFILES:%.c=%.sca)

d366 1
a366 1
	- $(RM) *.o $(LIBLOCK) *.i a.out t*.out core *.dSYM *.sca
a472 1
	-@@ echo '  CFILES      := $(CFILES)'
@


8.5
log
@WCSLIB 8.5
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 8.5 and its test suite.
d33 2
a34 2
# http://www.atnf.csiro.au/people/Mark.Calabretta
# $Id: GNUmakefile,v 8.4.1.1 2024/10/28 13:58:41 mcalabre Exp mcalabre $
@


8.5.1.1
log
@WCSLIB 8.5 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 8.5 2025/12/06 13:47:41 mcalabre Exp $
@


8.5.1.2
log
@Updated the URL for WCSLIB on ATNF's website.
@
text
@d33 2
a34 2
# http://www.atnf.csiro.au/computing/software/wcs
# $Id: GNUmakefile,v 8.5.1.1 2025/12/06 14:05:15 mcalabre Exp mcalabre $
@


8.4
log
@WCSLIB 8.4
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 8.4 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 8.3.1.2 2024/07/09 09:22:14 mcalabre Exp mcalabre $
@


8.4.1.1
log
@WCSLIB 8.4 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 8.4 2024/10/28 13:56:16 mcalabre Exp $
@


8.3
log
@WCSLIB 8.3
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 8.3 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 8.2.1.2 2024/05/13 14:16:34 mcalabre Exp mcalabre $
d84 2
a85 2
# Test program for POSIX threads (code development only).
TEST_T := tpthreads
d446 2
a447 2
# TEST_T programs (using POSIX threads).
tpthreads : test/tpthreads.c $(WCSLIB)
@


8.3.1.1
log
@WCSLIB 8.3 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 8.3 2024/05/13 16:33:00 mcalabre Exp $
@


8.3.1.2
log
@Renamed tpthreads to tpih_pthread and added twcs_pthread.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 8.3.1.1 2024/05/13 16:35:39 mcalabre Exp mcalabre $
d84 2
a85 2
# Test programs for POSIX threads.
TEST_T := tpih_pthread twcs_pthread
d446 2
a447 2
# POSIX threads test programs.
$(TEST_T) : %_pthread : test/%_pthread.c $(WCSLIB)
@


8.2
log
@WCSLIB 8.2
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 8.2 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 8.1.1.1 2023/07/05 17:15:00 mcalabre Exp mcalabre $
d232 2
a233 1
	         sed -e 's/$(ADDRE)/0x<address>/g' $<.out > \
@


8.2.1.1
log
@WCSLIB 8.2 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 8.2 2023/11/16 10:00:29 mcalabre Exp $
@


8.2.1.2
log
@In the run_% pattern rule, replace the wcsprm::chksum value with '<CHECKSUM>'.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 8.2.1.1 2023/11/16 10:05:57 mcalabre Exp mcalabre $
d232 1
a232 2
	         sed -e 's/$(ADDRE)/0x<address>/g' \
	             -e 's/chksum:.*/chksum: <CHECKSUM>/' $<.out > \
@


8.1
log
@WCSLIB 8.1
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 8.1 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 8.0.1.1 2023/07/01 06:22:44 mcalabre Exp mcalabre $
@


8.1.1.1
log
@WCSLIB 8.1 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 8.1 2023/07/05 17:12:07 mcalabre Exp $
@


8.0
log
@WCSLIB 8.0
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 8.0 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 7.13.1.1 2022/10/07 03:45:47 mcalabre Exp mcalabre $
@


8.0.1.1
log
@WCSLIB 8.0 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 8.0 2023/07/01 06:15:04 mcalabre Exp $
@


7.13
log
@WCSLIB 7.13
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 7.13 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 7.12.1.1 2022/09/09 05:00:36 mcalabre Exp mcalabre $
@


7.13.1.1
log
@WCSLIB 7.13 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 7.13 2022/10/07 03:43:35 mcalabre Exp $
@


7.12
log
@WCSLIB 7.12
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 7.12 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 7.11.1.1 2022/04/26 06:15:32 mcalabre Exp mcalabre $
@


7.12.1.1
log
@WCSLIB 7.12 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 7.12 2022/09/09 04:57:58 mcalabre Exp $
@


7.11
log
@WCSLIB 7.11
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 7.11 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 7.10.1.1 2022/04/23 14:26:54 mcalabre Exp mcalabre $
@


7.11.1.1
log
@WCSLIB 7.11 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 7.11 2022/04/26 06:13:52 mcalabre Exp $
@


7.10
log
@WCSLIB 7.10
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 7.10 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 7.9.1.1 2022/03/25 15:16:40 mcalabre Exp mcalabre $
@


7.10.1.1
log
@WCSLIB 7.10 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 7.10 2022/04/23 14:25:15 mcalabre Exp $
@


7.9
log
@WCSLIB 7.9
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 7.9 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 7.8.1.1 2022/03/25 06:14:14 mcalabre Exp mcalabre $
@


7.9.1.1
log
@WCSLIB 7.9 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 7.9 2022/03/25 15:14:48 mcalabre Exp $
@


7.8
log
@WCSLIB 7.8
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 7.8 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 7.7.1.1 2021/07/12 06:38:27 mcalabre Exp mcalabre $
@


7.8.1.1
log
@WCSLIB 7.8 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 7.8 2022/03/25 06:11:49 mcalabre Exp $
@


7.7
log
@WCSLIB 7.7
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 7.7 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 7.6.1.3 2021/05/13 04:16:16 mcalabre Exp mcalabre $
@


7.7.1.1
log
@WCSLIB 7.7 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 7.7 2021/07/12 06:36:49 mcalabre Exp $
@


7.6
log
@WCSLIB 7.6
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 7.6 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 7.5.1.2 2021/04/11 08:15:52 mcalabre Exp mcalabre $
d184 2
a185 2
%.fits : test/%.keyrec tofits
	   ./tofits < $< > $@@
d372 3
a374 4
	-  $(RM) tofits
	-  $(RM) bth.fits fitshdr.fits pih.fits wcslint.fits wcstab.fits
	-  $(RM) SIP.fits SIPTPV.fits TPV3.fits TPV5.fits TPV7.fits
	-  $(RM) DSS.fits TNX.fits ZPX.fits
d460 1
a460 1
tofits : test/tofits.c
@


7.6.1.1
log
@WCSLIB 7.6 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 7.6 2021/04/13 12:57:01 mcalabre Exp $
@


7.6.1.2
log
@./test/tofits.c moved to ../utils/.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 7.6.1.1 2021/04/13 13:00:35 mcalabre Exp mcalabre $
d184 2
a185 2
%.fits : test/%.keyrec ../utils/tofits
	   ../utils/tofits < $< > $@@
d372 1
d461 1
a461 1
../utils/tofits : ../utils/tofits.c
@


7.6.1.3
log
@Added wcspcx.fits to the 'cleaner' rule.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 7.6.1.2 2021/05/13 04:12:34 mcalabre Exp mcalabre $
d372 3
a374 3
	-  $(RM) bth.fits fitshdr.fits pih.fits wcslint.fits wcspcx.fits
	-  $(RM) wcstab.fits SIP.fits SIPTPV.fits TPV3.fits TPV5.fits
	-  $(RM) TPV7.fits DSS.fits TNX.fits ZPX.fits
@


7.5
log
@WCSLIB 7.5
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 7.5 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 7.4.1.3 2021/03/20 04:26:06 mcalabre Exp mcalabre $
d94 8
a101 4
ifeq "$(CFITSIOINC)$(CFITSIOLIB)" ""
  # No, amend TEST_X.
  TEST_X := $(filter-out $(TEST_C),$(TEST_X))
else
d105 3
d111 1
d113 14
a126 7
ifeq "$(PGPLOTINC)$(PGPLOTLIB)" ""
  # No, amend TEST_X.
  TEST_X := $(filter-out $(TEST_P) $(TEST_B),$(TEST_X))
else
  # Yes, add test programs that use it.
  TESTS += $(TEST_P) $(TEST_B)
endif
d474 2
@


7.5.1.1
log
@WCSLIB 7.5 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 7.5 2021/03/20 05:54:58 mcalabre Exp $
@


7.5.1.2
log
@Reworked the cfitsio and pgplot tests for compiling the test programs to
ensure that both the include files and the library are available.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 7.5.1.1 2021/03/20 05:56:42 mcalabre Exp mcalabre $
d94 4
a97 8
DO_CFITSIO := 1
ifeq "$(CFITSIOINC)" ""
  DO_CFITSIO := 0
else ifeq "$(CFITSIOLIB)" ""
  DO_CFITSIO := 0
endif

ifeq "$(DO_CFITSIO)" "1"
a100 3
else
  # No, amend TEST_X.
  TEST_X := $(filter-out $(TEST_C),$(TEST_X))
a103 1
DO_PGPLOT := 0
d105 7
a111 14
  DO_PGPLOT := 1
  ifeq "$(PGPLOTINC)" ""
    DO_PGPLOT := 0
  else ifeq "$(PGPLOTLIB)" ""
    DO_PGPLOT := 0
  endif

  ifeq "$(DO_PGPLOT)" "1"
    # Yes, add test programs that use it.
    TESTS += $(TEST_P) $(TEST_B)
  else
    # No, amend TEST_X.
    TEST_X := $(filter-out $(TEST_P) $(TEST_B),$(TEST_X))
  endif
a458 2
	-@@ echo '  DO_CFITSIO  := $(DO_CFITSIO)'
	-@@ echo '  DO_PGPLOT   := $(DO_PGPLOT)'
@


7.4
log
@WCSLIB 7.4
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 7.4 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 7.3.1.1 2020/06/03 03:38:10 mcalabre Exp $
d81 1
a81 1
# Test programs that require PGPLOT and PGSBOX.
d84 3
d254 1
a254 1
         run_% test tests
d344 5
d355 1
a355 1
	-  $(RM) $(TEST_N) $(TEST_n) $(TEST_X)
d372 1
d378 2
a379 14
$(TEST_P) : % : test/%.c $(WCSLIB)
	-@@ echo ''
	   $(CC) $(CPPFLAGS) $(PGPLOTINC) $(CFLAGS) -c -o $@@.o $<
	   $(LD) -o $@@ $@@.o $(LDFLAGS) $(PGPLOTLIB) $(WCSLIB) $(FLIBS) $(LIBS)
	-@@ $(RM) $@@.o

tpih2 : test/tpih2.c $(PGSBOXLIB) $(WCSLIB)
	-@@ echo ''
	   $(CC) $(CPPFLAGS) -I../pgsbox $(PGPLOTINC) $(CFLAGS) -c -o $@@.o $<
	   $(LD) -o $@@ $@@.o $(LDFLAGS) $(PGSBOXLIB) $(PGPLOTLIB) $(WCSLIB) \
	     $(FLIBS) $(LIBS)
	-@@ $(RM) $@@.o

tfitshdr_cfitsio tpih1_cfitsio tbth1_cfitsio : %_cfitsio : test/%.c $(WCSLIB)
d385 1
a385 8
tpih2_cfitsio : test/tpih2.c $(PGSBOXLIB) $(WCSLIB)
	-@@ echo ''
	   $(CC) -DDO_CFITSIO $(CPPFLAGS) -I../pgsbox $(PGPLOTINC) \
	     $(CFITSIOINC) $(CFITSIO_CFLAGS) -c -o $@@.o $<
	   $(LD) -o $@@ $@@.o $(LDFLAGS) $(PGSBOXLIB) $(PGPLOTLIB) \
	     $(CFITSIOLIB) $(WCSLIB) $(FLIBS) $(LIBS)
	-@@ $(RM) $@@.o

d407 30
@


7.4.1.1
log
@WCSLIB 7.4 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 7.4 2021/01/31 02:24:51 mcalabre Exp $
@


7.4.1.2
log
@Added an uninstall rule.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 7.4.1.1 2021/01/31 02:26:24 mcalabre Exp mcalabre $
d251 1
a251 1
         run_% test tests uninstall
a339 5

uninstall :
	-  cd $(LIBDIR) && $(RM) $(WCSLIB) $(SHRLN) $(SONAME) $(SHRLIB)
	-  $(RM) $(INCDIR)
	-  $(RM) $(INCLINK)
@


7.4.1.3
log
@Added rules for compiling tpthreads.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 7.4.1.2 2021/03/02 13:24:57 mcalabre Exp $
d81 1
a81 1
# Test programs that require PGSBOX (and therefore PGPLOT).
a83 3
# Test program for POSIX threads (code development only).
TEST_T := tpthreads

d352 1
a352 1
	-  $(RM) $(TEST_N) $(TEST_n) $(TEST_T) $(TEST_X)
a368 1
# TEST_N and TEST_n programs (no special libraries required).
d374 14
a387 2
# TEST_N programs (optionally using CFITSIO).
tpih1_cfitsio tbth1_cfitsio tfitshdr_cfitsio : %_cfitsio : test/%.c $(WCSLIB)
d393 8
a400 1
# TEST_C programs (using CFITSIO).
a421 30

# TEST_P programs (using PGPLOT).
$(TEST_P) : % : test/%.c $(WCSLIB)
	-@@ echo ''
	   $(CC) $(CPPFLAGS) $(PGPLOTINC) $(CFLAGS) -c -o $@@.o $<
	   $(LD) -o $@@ $@@.o $(LDFLAGS) $(PGPLOTLIB) $(WCSLIB) $(FLIBS) $(LIBS)
	-@@ $(RM) $@@.o

# TEST_B programs (PGSBOX and PGPLOT).
tpih2 : test/tpih2.c $(PGSBOXLIB) $(WCSLIB)
	-@@ echo ''
	   $(CC) $(CPPFLAGS) -I../pgsbox $(PGPLOTINC) $(CFLAGS) -c -o $@@.o $<
	   $(LD) -o $@@ $@@.o $(LDFLAGS) $(PGSBOXLIB) $(PGPLOTLIB) $(WCSLIB) \
	     $(FLIBS) $(LIBS)
	-@@ $(RM) $@@.o

tpih2_cfitsio : test/tpih2.c $(PGSBOXLIB) $(WCSLIB)
	-@@ echo ''
	   $(CC) -DDO_CFITSIO $(CPPFLAGS) -I../pgsbox $(PGPLOTINC) \
	     $(CFITSIOINC) $(CFITSIO_CFLAGS) -c -o $@@.o $<
	   $(LD) -o $@@ $@@.o $(LDFLAGS) $(PGSBOXLIB) $(PGPLOTLIB) \
	     $(CFITSIOLIB) $(WCSLIB) $(FLIBS) $(LIBS)
	-@@ $(RM) $@@.o

# TEST_T programs (using POSIX threads).
tpthreads : test/tpthreads.c $(WCSLIB)
	-@@ echo ''
	   $(CC) $(CPPFLAGS) $(CFLAGS) -pthread -c -o $@@.o $<
	   $(LD) -o $@@ $@@.o $(LDFLAGS) -pthread $(WCSLIB) -lpthread $(LIBS)
	-@@ $(RM) $@@.o
@


7.3
log
@WCSLIB 7.3
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 7.3 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 7.2.1.1 2020/03/09 07:34:50 mcalabre Exp mcalabre $
@


7.3.1.1
log
@WCSLIB 7.3 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 7.3 2020/06/03 03:37:02 mcalabre Exp $
@


7.2
log
@WCSLIB 7.2
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 7.2 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 7.1.1.2 2020/02/26 10:58:05 mcalabre Exp mcalabre $
@


7.2.1.1
log
@WCSLIB 7.2 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 7.2 2020/03/09 07:31:23 mcalabre Exp $
@


7.1
log
@WCSLIB 7.1
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 7.1 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 6.4.1.1 2019/08/15 09:31:29 mcalabre Exp mcalabre $
d271 3
a273 1
	 @@ $(MAKE) --no-print-directory $(SHRLIB)
@


7.1.1.1
log
@WCSLIB 7.1 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 7.1 2019/12/31 13:25:19 mcalabre Exp $
@


7.1.1.2
log
@In the $(WCSLIB) rule, don't recursively make $(SHRLIB) if it's not defined.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 7.1.1.1 2019/12/31 13:28:19 mcalabre Exp mcalabre $
d271 1
a271 3
	 @@ if [ "$(SHRLIB)" != "" ] ; then \
	     $(MAKE) --no-print-directory $(SHRLIB) ; \
	   fi
@


6.4
log
@WCSLIB 6.4
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 6.4 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 6.3.1.1 2019/07/12 07:34:37 mcalabre Exp mcalabre $
@


6.4.1.1
log
@WCSLIB 6.4 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 6.4 2019/08/15 09:30:18 mcalabre Exp $
@


6.3
log
@WCSLIB 6.3
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 6.3 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 6.2.1.3 2019/07/12 06:56:24 mcalabre Exp mcalabre $
@


6.3.1.1
log
@WCSLIB 6.3 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 6.3 2019/07/12 07:33:39 mcalabre Exp $
@


6.2
log
@WCSLIB 6.2
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 6.2 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 6.1.1.1 2018/10/19 08:36:15 mcalabre Exp mcalabre $
d84 1
a84 1
# Test programs that aren't automatically exercised.
d87 1
d90 6
a95 3
# Add test programs that require CFITSIO if we have it.
ifneq "$(CFITSIOINC)" ""
ifneq "$(CFITSIOLIB)" ""
a98 1
endif
d100 1
a100 1
# Add test programs that require PGPLOT if we have it.
d102 5
a106 2
ifneq "$(PGPLOTINC)" ""
ifneq "$(PGPLOTLIB)" ""
a109 1
endif
d213 1
a213 1
	         trap 'rm -f run_test.tmp' 0 1 2 3 15 ; \
d215 2
a216 2
	           run_test.tmp ; \
	         mv -f run_test.tmp $<.out ; \
d394 1
a394 1
twcstab : test/twcstab.c $(GETWCSTAB) $(WCSLIB)
d398 1
a398 1
	-@@ $(RM) $@@.o
d400 1
a400 1
twcshdr : test/twcshdr.c $(GETWCSTAB) $(WCSLIB)
d404 1
a404 1
	-@@ $(RM) $@@.o
d435 4
a438 2
	-@@ -@@ echo '  FLEXMODS    := $(FLEXMODS)'
	-@@ -@@ echo '  MODULES     := $(MODULES)'
@


6.2.1.1
log
@WCSLIB 6.2 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 6.2 2018/10/20 10:03:13 mcalabre Exp $
@


6.2.1.2
log
@In the run_% pattern rule, removed a source of contention when running the
non-graphical tests in parallel, which now seems to work reliably.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 6.2.1.1 2018/10/20 10:04:15 mcalabre Exp mcalabre $
d208 1
a208 1
	         trap 'rm -f run_$<.tmp' 0 1 2 3 15 ; \
d210 2
a211 2
	           run_$<.tmp ; \
	         mv -f run_$<.tmp $<.out ; \
@


6.2.1.3
log
@Ensure that getwcstab.o doesn't find its way into the object library.
TEST_X must be amended to reflect the availability of CFITSIO and PGPLOT as
these programs are compiled, though not executed.  The 'show' rule now
reports the values of TESTS and TEST_X.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 6.2.1.2 2019/07/11 07:56:26 mcalabre Exp mcalabre $
d84 1
a84 1
# Test programs that are compiled but not automatically exercised.
a86 1

d89 3
a91 6
# Do we have CFITSIO?
ifeq "$(CFITSIOINC)$(CFITSIOLIB)" ""
  # No, amend TEST_X.
  TEST_X := $(filter-out $(TEST_C),$(TEST_X))
else
  # Yes, add test programs that use it.
d95 1
d97 1
a97 1
# Do we have PGPLOT?
d99 2
a100 5
ifeq "$(PGPLOTINC)$(PGPLOTLIB)" ""
  # No, amend TEST_X.
  TEST_X := $(filter-out $(TEST_P) $(TEST_B),$(TEST_X))
else
  # Yes, add test programs that use it.
d104 1
d389 1
a389 1
twcstab : test/twcstab.c $(WCSLIB) $(GETWCSTAB)
d393 1
a393 1
	-@@ $(RM) $@@.o $(GETWCSTAB)
d395 1
a395 1
twcshdr : test/twcshdr.c $(WCSLIB) $(GETWCSTAB)
d399 1
a399 1
	-@@ $(RM) $@@.o $(GETWCSTAB)
d430 2
a431 4
	-@@ echo '  FLEXMODS    := $(FLEXMODS)'
	-@@ echo '  MODULES     := $(MODULES)'
	-@@ echo '  TESTS       := $(TESTS)'
	-@@ echo '  TEST_X      := $(TEST_X)'
@


6.1
log
@WCSLIB 6.1
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 6.1 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 5.20.1.3 2018/10/19 04:16:57 mcalabre Exp mcalabre $
@


6.1.1.1
log
@WCSLIB 6.1 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 6.1 2018/10/19 08:35:17 mcalabre Exp $
@


5.20
log
@WCSLIB 5.20
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 5.20 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 5.19.1.3 2018/10/05 04:33:39 mcalabre Exp mcalabre $
d37 1
d93 1
d164 2
a165 2
# Use 'make FLAVOUR=Linux run_%' to have VALGRIND defined (from flavours).
# Use 'make FLAVOUR=Linux check < /dev/null |& tee check_valgrind.log' to run
d253 1
a253 1
	 @@ $(MAKE) --no-print-directory -Otarget $(WCSLIB)
d266 1
a266 1
	 @@ $(MAKE) --no-print-directory -Otarget $(SHRLIB)
d377 1
a377 1
	   $(CC) -DDO_CFITSIO $(CPPFLAGS) $(CFITSIOINC) $(CFLAGS) \
d384 1
a384 1
	     $(CFITSIOINC) $(CFLAGS) -c -o $@@.o $<
d391 2
a392 2
	   $(CC) $(CPPFLAGS) $(CFITSIOINC) $(CFLAGS) -o $@@ $< $(GETWCSTAB) \
	     $(LDFLAGS) $(CFITSIOLIB) $(WCSLIB) $(LIBS)
d397 2
a398 2
	   $(CC) $(CPPFLAGS) $(CFITSIOINC) $(CFLAGS) -o $@@ $< $(GETWCSTAB) \
	     $(LDFLAGS) $(CFITSIOLIB) $(WCSLIB) $(LIBS)
d413 1
a413 1
	   $(CC) $(CPPFLAGS) $(CFLAGS) $(CFITSIOINC) -c $<
d452 1
a452 1
$(WCSLIB)(wcsbth.o)   : cel.h dis.h lin.h prj.h spc.h spx.h wcs.h wcshdr.h \
d455 2
a456 2
$(WCSLIB)(wcsfix.o)   : cel.h dis.h lin.h prj.h spc.h sph.h spx.h wcs.h \
                        wcserr.h wcsfix.h wcsmath.h wcsunits.h wcsutil.h
d468 1
a468 1
tbth1 tbth1_cfitsio : cel.h dis.h lin.h prj.h spc.h spx.h wcs.h wcsconfig.h \
d472 3
a474 3
tfitshdr tfitshdr_cfitsio : cel.h dis.h fitshdr.h lin.h prj.h spc.h spx.h \
                            wcs.h wcsconfig.h wcsconfig_tests.h wcshdr.h
tlin    : dis.h lin.h
d477 1
a477 2
tdis2   : cel.h dis.h lin.h prj.h spc.h spx.h wcs.h wcserr.h wcshdr.h \
          wcsprintf.h
d481 1
a481 1
tpih1 tpih1_cfitsio : cel.h dis.h lin.h prj.h spc.h spx.h wcs.h wcsconfig.h \
d483 1
a483 1
tpih2 tpih2_cfitsio : cel.h dis.h lin.h prj.h spc.h spx.h wcs.h wcsconfig.h \
d500 1
a500 1
twcs_locale : cel.h dis.h lin.h prj.h spc.h spx.h wcs.h wcserr.h wcshdr.h \
d502 1
a502 1
twcsfix : cel.h dis.h lin.h prj.h spc.h spx.h wcs.h wcserr.h wcsfix.h \
d507 2
a508 2
twcsmix : cel.h dis.h lin.h prj.h spc.h sph.h spx.h wcs.h
twcssub : cel.h dis.h lin.h prj.h spc.h spx.h wcs.h wcserr.h
@


5.20.1.1
log
@WCSLIB 5.20 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 5.20 2018/10/05 05:32:41 mcalabre Exp $
@


5.20.1.2
log
@Updated the dependency lists.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 5.20.1.1 2018/10/05 05:33:33 mcalabre Exp mcalabre $
d450 1
a450 1
$(WCSLIB)(wcsbth.o)   : cel.h lin.h prj.h spc.h spx.h wcs.h wcshdr.h \
d453 2
a454 2
$(WCSLIB)(wcsfix.o)   : cel.h lin.h prj.h spc.h sph.h spx.h wcs.h wcserr.h \
                        wcsfix.h wcsmath.h wcsunits.h wcsutil.h
d466 1
a466 1
tbth1 tbth1_cfitsio : cel.h lin.h prj.h spc.h spx.h wcs.h wcsconfig.h \
d470 3
a472 3
tfitshdr tfitshdr_cfitsio : cel.h fitshdr.h lin.h prj.h spc.h spx.h wcs.h \
                            wcsconfig.h wcsconfig_tests.h wcshdr.h
tlin    : lin.h
d475 2
a476 1
tdis2   : cel.h lin.h prj.h spc.h spx.h wcs.h wcserr.h wcshdr.h wcsprintf.h
d480 1
a480 1
tpih1 tpih1_cfitsio : cel.h .h lin.h prj.h spc.h spx.h wcs.h wcsconfig.h \
d482 1
a482 1
tpih2 tpih2_cfitsio : cel.h .h lin.h prj.h spc.h spx.h wcs.h wcsconfig.h \
d499 1
a499 1
twcs_locale : cel.h lin.h prj.h spc.h spx.h wcs.h wcserr.h wcshdr.h \
d501 1
a501 1
twcsfix : cel.h lin.h prj.h spc.h spx.h wcs.h wcserr.h wcsfix.h \
d506 2
a507 2
twcsmix : cel.h lin.h prj.h spc.h sph.h spx.h wcs.h
twcssub : cel.h lin.h prj.h spc.h spx.h wcs.h wcserr.h
@


5.20.1.3
log
@Set SUBDIR.  configure now sets '-Otarget' in MAKEFLAGS if it is a recognised
option.  Filter out -Wpadded from CFLAGS when compiling getwcstab.c and test
programs that use cfitsio.  Changed usage instructions for invoking valgrind.
Fixed typos in the dependency lists for tpih1 and tpih2.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 5.20.1.2 2018/10/07 06:30:09 mcalabre Exp mcalabre $
a36 1
SUBDIR := C
a91 1
  CFITSIO_CFLAGS := $(filter-out -Wpadded,$(CFLAGS))
d162 2
a163 2
# Use 'make VALGRIND=T run_%' to have VALGRIND defined (from flavours).
# Use 'make VALGRIND=T check < /dev/null |& tee check_valgrind.log' to run
d251 1
a251 1
	 @@ $(MAKE) --no-print-directory $(WCSLIB)
d264 1
a264 1
	 @@ $(MAKE) --no-print-directory $(SHRLIB)
d375 1
a375 1
	   $(CC) -DDO_CFITSIO $(CPPFLAGS) $(CFITSIOINC) $(CFITSIO_CFLAGS) \
d382 1
a382 1
	     $(CFITSIOINC) $(CFITSIO_CFLAGS) -c -o $@@.o $<
d389 2
a390 2
	   $(CC) $(CPPFLAGS) $(CFITSIOINC) $(CFITSIO_CFLAGS) -o $@@ $< \
	     $(GETWCSTAB) $(LDFLAGS) $(CFITSIOLIB) $(WCSLIB) $(LIBS)
d395 2
a396 2
	   $(CC) $(CPPFLAGS) $(CFITSIOINC) $(CFITSIO_CFLAGS) -o $@@ $< \
	     $(GETWCSTAB) $(LDFLAGS) $(CFITSIOLIB) $(WCSLIB) $(LIBS)
d411 1
a411 1
	   $(CC) $(CPPFLAGS) $(CFITSIO_CFLAGS) $(CFITSIOINC) -c $<
d479 1
a479 1
tpih1 tpih1_cfitsio : cel.h lin.h prj.h spc.h spx.h wcs.h wcsconfig.h \
d481 1
a481 1
tpih2 tpih2_cfitsio : cel.h lin.h prj.h spc.h spx.h wcs.h wcsconfig.h \
@


5.19
log
@WCSLIB 5.19
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 5.19 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 5.18.1.1 2018/01/10 08:33:04 mcalabre Exp mcalabre $
d53 2
d129 5
a133 2
	   $(AR) r$(ARFLAGS) $(WCSLIB) $%
	-@@ $(RM) $%
d135 1
a135 1
$(PICLIB)(%.o) : %.c
d137 6
a142 3
	   $(CC) $(CPPFLAGS) $(CFLAGS) $(SHRFLAGS) -c $<
	   $(AR) r$(ARFLAGS) $(PICLIB) $%
	-@@ $(RM) $%
d144 2
a150 3
%.fits : test/%.keyrec tofits
	   ./tofits < $< > $@@

d156 1
d159 3
d248 4
a251 1
lib : $(FLEXMODS) $(WCSLIB) $(SHRLIB)
d253 1
a253 1
$(WCSLIB) : $(MODULES:%=$(WCSLIB)(%))
d255 10
a264 1
	   $(RANLIB) $@@
d276 13
a288 1
$(PICLIB) : $(MODULES:%.o=$(PICLIB)(%.o)) ;
d294 13
a306 1
	   $(INSTALL) -m 644 $(WCSLIB) $(LIBDIR)
d311 2
a312 2
	-  $(LN_S) $(WCSLIB) $(LIBDIR)/libwcs.a
	-  if [ "$(SHRLIB)" != "" ] ; then \
d329 1
a329 1
	   $(RM) $(INCLINK)
d333 2
a334 1
	- $(RM) -r *.o *.i a.out t*.out core *.dSYM $(EXTRA_CLEAN)
a435 1
$(WCSLIB)(fitshdr.o)  : wcsconfig.h fitshdr.h wcsutil.h
d437 1
d450 1
a450 1
$(WCSLIB)(wcsbth.o)   : cel.h lin.h prj.h spc.h spx.h wcs.h wcshdr.h \
d453 5
a457 5
$(WCSLIB)(wcsfix.o)   : cel.h lin.h prj.h spc.h sph.h spx.h wcs.h wcserr.h \
                        wcsfix.h wcsmath.h wcsunits.h wcsutil.h
$(WCSLIB)(wcshdr.o)   : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h wcserr.h \
                        wcshdr.h wcsmath.h wcsutil.h
$(WCSLIB)(wcspih.o)   : cel.h lin.h prj.h spc.h spx.h wcs.h wcshdr.h \
d466 1
a466 1
tbth1 tbth1_cfitsio : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h wcsconfig.h \
d470 3
a472 2
tfitshdr tfitshdr_cfitsio : fitshdr.h wcsconfig.h wcsconfig_tests.h
tlin    : lin.h
d480 1
a480 1
tpih1 tpih1_cfitsio : cel.h lin.h prj.h spc.h spx.h wcs.h wcsconfig.h \
d482 1
a482 1
tpih2 tpih2_cfitsio : cel.h lin.h prj.h spc.h spx.h wcs.h wcsconfig.h \
d496 4
a499 4
twcs    : cel.h fitshdr.h lin.h log.h prj.h spc.h sph.h spx.h tab.h wcs.h \
          wcsconfig.h wcsconfig_tests.h wcserr.h wcsfix.h wcshdr.h wcslib.h \
          wcsmath.h wcsprintf.h wcstrig.h wcsunits.h wcsutil.h
twcs_locale : cel.h lin.h prj.h spc.h spx.h wcs.h wcserr.h wcshdr.h \
d501 4
a504 4
twcsfix : cel.h lin.h prj.h spc.h spx.h wcs.h wcserr.h wcsfix.h wcsprintf.h \
          wcsunits.h
twcshdr : cel.h fitshdr.h getwcstab.h lin.h log.h prj.h spc.h sph.h spx.h \
          tab.h wcs.h wcsconfig.h wcserr.h wcsfix.h wcshdr.h wcslib.h \
d506 4
a509 4
twcsmix : cel.h lin.h prj.h spc.h sph.h spx.h wcs.h
twcssub : cel.h lin.h prj.h spc.h spx.h wcs.h wcserr.h
twcstab : cel.h fitshdr.h getwcstab.h lin.h log.h prj.h spc.h sph.h spx.h \
          tab.h wcs.h wcsconfig.h wcserr.h wcsfix.h wcshdr.h wcslib.h \
@


5.19.1.1
log
@WCSLIB 5.19 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 5.19 2018/07/26 15:37:04 mcalabre Exp $
@


5.19.1.2
log
@In the 'install' rule, reconstruct the object library in "deterministic"
mode on installation.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 5.19.1.1 2018/07/26 15:41:40 mcalabre Exp mcalabre $
d259 1
a259 13
	   if [ "$(ARFLAGS)" = U ] ; then \
	     $(RM) -r tmp ; \
	     mkdir tmp && \
	       cd tmp && \
	       trap 'cd .. ; $(RM) -r tmp' 0 1 2 3 15 ; \
	       $(AR) x ../$(WCSLIB) && \
	       $(AR) rD $(WCSLIB) *.o && \
	       $(INSTALL) -m 644 $(WCSLIB) $(LIBDIR) ; \
	       cd .. ; \
	       $(RM) -r tmp ; \
	   else \
	     $(INSTALL) -m 644 $(WCSLIB) $(LIBDIR) ; \
	   fi
d264 2
a265 2
	   $(LN_S) $(WCSLIB) $(LIBDIR)/libwcs.a
	   if [ "$(SHRLIB)" != "" ] ; then \
d282 1
a282 1
	-  $(RM) $(INCLINK)
@


5.19.1.3
log
@Support parallel builds, mainly requiring archiving in batch.  Fixed
dependency analysis for PICLIB modules by making them depend on the
corresponding WCSLIB module.  Updated the dependency lists.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 5.19.1.2 2018/10/03 13:23:30 mcalabre Exp mcalabre $
a52 2
LIBLOCK := lib.lock

d127 2
a128 5
	 @@ if [ ! -f $(LIBLOCK) ] ; then \
	     echo $(AR) r$(ARFLAGS) $(WCSLIB) $% ; \
	     $(AR) r$(ARFLAGS) $(WCSLIB) $% ; \
	     $(RM) $% ; \
	   fi
d130 1
a130 1
$(PICLIB)(%.o) : $(WCSLIB)(%.o)
d132 3
a134 6
	   $(CC) $(CPPFLAGS) $(CFLAGS) $(SHRFLAGS) -c $(%:.o=.c)
	 @@ if [ ! -f $(LIBLOCK) ] ; then \
	     echo $(AR) r$(ARFLAGS) $(PICLIB) $% ; \
	     $(AR) r$(ARFLAGS) $(PICLIB) $% ; \
	     $(RM) $% ; \
	   fi
a135 2
# May need to create temporary symlinks to include file directories for
# CFITSIO, etc. for the following two rules.
d141 3
a148 1
	   sed -e 's|.*/||' | \
a150 3
%.fits : test/%.keyrec tofits
	   ./tofits < $< > $@@

d237 1
a237 4
lib : $(FLEXMODS)
	-@@ echo ''
	-@@ echo 'Building WCSLIB C library...'
	 @@ $(MAKE) --no-print-directory -Otarget $(WCSLIB)
d239 1
a239 1
$(WCSLIB) : $(LIBLOCK) $(MODULES:%=$(WCSLIB)(%))
d241 1
a241 10
	 @@ set *.o ; \
	     if [ "$$1" != "*.o" ] ; then \
	       echo $(AR) r$(ARFLAGS) $@@ *.o ; \
	       $(AR) r$(ARFLAGS) $@@ *.o ; \
	       echo $(RANLIB) $@@ ; \
	       $(RANLIB) $@@ ; \
	       $(RM) *.o ; \
	     fi
	-@@ $(RM) $<
	 @@ $(MAKE) --no-print-directory -Otarget $(SHRLIB)
d253 1
a253 13
$(PICLIB) : $(LIBLOCK) $(MODULES:%=$(PICLIB)(%))
	-@@ echo ''
	 @@ set *.o ; \
	     if [ "$$1" != "*.o" ] ; then \
	       echo $(AR) r$(ARFLAGS) $@@ *.o ; \
	       $(AR) r$(ARFLAGS) $@@ *.o ; \
	       $(RM) *.o ; \
	     fi
	-@@ $(RM) $<

$(LIBLOCK) : FORCE
	 @@ $(RM) *.o
	 @@ touch $@@
d298 1
a298 2
	- $(RM) *.o $(LIBLOCK) *.i a.out t*.out core *.dSYM
	- $(RM) -r $(EXTRA_CLEAN)
d400 1
a401 1
$(WCSLIB)(fitshdr.o)  : fitshdr.h wcsconfig.h wcsutil.h
d414 1
a414 1
$(WCSLIB)(wcsbth.o)   : cel.h dis.h lin.h prj.h spc.h spx.h wcs.h wcshdr.h \
d417 5
a421 5
$(WCSLIB)(wcsfix.o)   : cel.h dis.h lin.h prj.h spc.h sph.h spx.h wcs.h \
                        wcserr.h wcsfix.h wcsmath.h wcsunits.h wcsutil.h
$(WCSLIB)(wcshdr.o)   : cel.h dis.h lin.h prj.h spc.h spx.h tab.h wcs.h \
                        wcserr.h wcshdr.h wcsmath.h wcsutil.h
$(WCSLIB)(wcspih.o)   : cel.h dis.h lin.h prj.h spc.h spx.h wcs.h wcshdr.h \
d430 1
a430 1
tbth1 tbth1_cfitsio : cel.h dis.h lin.h prj.h spc.h spx.h wcs.h wcsconfig.h \
d434 2
a435 3
tfitshdr tfitshdr_cfitsio : cel.h dis.h fitshdr.h lin.h prj.h spc.h spx.h \
                            wcs.h wcsconfig.h wcsconfig_tests.h wcshdr.h
tlin    : dis.h lin.h
d443 1
a443 1
tpih1 tpih1_cfitsio : cel.h dis.h lin.h prj.h spc.h spx.h wcs.h wcsconfig.h \
d445 1
a445 1
tpih2 tpih2_cfitsio : cel.h dis.h lin.h prj.h spc.h spx.h wcs.h wcsconfig.h \
d459 4
a462 4
twcs    : cel.h dis.h fitshdr.h lin.h log.h prj.h spc.h sph.h spx.h tab.h \
          wcs.h wcsconfig.h wcsconfig_tests.h wcserr.h wcsfix.h wcshdr.h \
	  wcslib.h wcsmath.h wcsprintf.h wcstrig.h wcsunits.h wcsutil.h
twcs_locale : cel.h dis.h lin.h prj.h spc.h spx.h wcs.h wcserr.h wcshdr.h \
d464 4
a467 4
twcsfix : cel.h dis.h lin.h prj.h spc.h spx.h wcs.h wcserr.h wcsfix.h \
          wcsprintf.h wcsunits.h
twcshdr : cel.h dis.h fitshdr.h getwcstab.h lin.h log.h prj.h spc.h sph.h \
          spx.h tab.h wcs.h wcsconfig.h wcserr.h wcsfix.h wcshdr.h wcslib.h \
d469 4
a472 4
twcsmix : cel.h dis.h lin.h prj.h spc.h sph.h spx.h wcs.h
twcssub : cel.h dis.h lin.h prj.h spc.h spx.h wcs.h wcserr.h
twcstab : cel.h dis.h fitshdr.h getwcstab.h lin.h log.h prj.h spc.h sph.h \
          spx.h tab.h wcs.h wcsconfig.h wcserr.h wcsfix.h wcshdr.h wcslib.h \
@


5.18
log
@WCSLIB 5.18
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 5.18 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 5.17.1.2 2017/12/05 01:28:46 mcalabre Exp $
@


5.18.1.1
log
@WCSLIB 5.18 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 5.18 2018/01/10 08:32:14 mcalabre Exp $
@


5.17
log
@WCSLIB 5.17
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 5.17 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 5.16.1.2 2017/09/12 04:11:36 mcalabre Exp mcalabre $
d127 1
a127 1
	   $(AR) r $(WCSLIB) $%
d133 1
a133 1
	   $(AR) r $(PICLIB) $%
d152 2
@


5.17.1.1
log
@WCSLIB 5.17 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 5.17 2017/09/18 08:44:23 mcalabre Exp $
@


5.17.1.2
log
@Use ARFLAGS when inserting object modules in the static libraries.  Added a
note about how to run valgrind on all of the test programs in one go.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 5.17.1.1 2017/09/18 08:45:59 mcalabre Exp mcalabre $
d127 1
a127 1
	   $(AR) r$(ARFLAGS) $(WCSLIB) $%
d133 1
a133 1
	   $(AR) r$(ARFLAGS) $(PICLIB) $%
a151 2
# Use 'make FLAVOUR=Linux check < /dev/null |& tee check_valgrind.log' to run
# valgrind on the lot.
@


5.16
log
@WCSLIB 5.16
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 5.16 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 5.15.1.1 2016/04/05 12:58:35 mcalabre Exp mcalabre $
d255 1
a255 1
	     $(INSTALL) -d -m 2775 $(LIBDIR) ; \
d277 1
a277 1
	     $(INSTALL) -d -m 2775 $(INCDIR) ; \
@


5.16.1.1
log
@WCSLIB 5.16 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 5.16 2017/01/15 04:25:01 mcalabre Exp $
@


5.16.1.2
log
@Removed setgid permission on installation directories (Sergio Pascual
email 2017-09-11).
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 5.16.1.1 2017/01/15 04:28:59 mcalabre Exp mcalabre $
d255 1
a255 1
	     $(INSTALL) -d -m 775 $(LIBDIR) ; \
d277 1
a277 1
	     $(INSTALL) -d -m 775 $(INCDIR) ; \
@


5.15
log
@WCSLIB 5.15
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 5.15 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 5.14.1.1 2016/02/07 10:52:44 mcalabre Exp mcalabre $
@


5.15.1.1
log
@WCSLIB 5.15 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 5.15 2016/04/05 12:55:10 mcalabre Exp $
@


5.14
log
@WCSLIB 5.14
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 5.14 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 5.13.1.1 2016/01/26 08:54:32 mcalabre Exp mcalabre $
@


5.14.1.1
log
@WCSLIB 5.14 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 5.14 2016/02/07 10:49:31 mcalabre Exp $
@


5.13
log
@WCSLIB 5.13
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 5.13 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 5.12.1.1 2015/11/15 02:16:14 mcalabre Exp $
@


5.13.1.1
log
@WCSLIB 5.13 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 5.13 2016/01/26 08:51:13 mcalabre Exp $
@


5.12
log
@WCSLIB 5.12
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 5.12 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 5.11.1.1 2015/10/18 09:16:27 mcalabre Exp mcalabre $
@


5.12.1.1
log
@WCSLIB 5.12 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 5.12 2015/11/15 02:13:00 mcalabre Exp $
@


5.11
log
@WCSLIB 5.11
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 5.11 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 5.10.1.1 2015/10/09 08:22:35 mcalabre Exp mcalabre $
@


5.11.1.1
log
@WCSLIB 5.11 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 5.11 2015/10/18 09:13:05 mcalabre Exp $
@


5.10
log
@WCSLIB 5.10
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 5.10 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 5.9.1.1 2015/07/21 09:28:07 mcalabre Exp mcalabre $
@


5.10.1.1
log
@WCSLIB 5.10 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 5.10 2015/10/09 08:19:15 mcalabre Exp $
@


5.9
log
@WCSLIB 5.9
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 5.9 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 5.8.1.1 2015/07/08 11:07:18 mcalabre Exp mcalabre $
@


5.9.1.1
log
@WCSLIB 5.9 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 5.9 2015/07/21 09:20:01 mcalabre Exp $
@


5.8
log
@WCSLIB 5.8
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 5.8 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 5.7.1.3 2015/07/08 07:07:28 mcalabre Exp mcalabre $
@


5.8.1.1
log
@WCSLIB 5.8 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 5.8 2015/07/08 11:03:59 mcalabre Exp $
@


5.7
log
@WCSLIB 5.7
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 5.7 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 5.6.1.3 2015/06/28 14:46:48 mcalabre Exp mcalabre $
d73 1
a73 1
TEST_C := twcstab twcshdr twcslint
d289 1
a289 1
	-  $(RM) $(TEST_P) tpih2 twcstab twcshdr twcslint
d292 2
a293 1
	-  $(RM) TPV3.fits TPV5.fits TPV7.fits SIP.fits SIPTPV.fits
d349 5
d463 1
@


5.7.1.1
log
@WCSLIB 5.7 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 5.7 2015/06/29 02:44:16 mcalabre Exp $
@


5.7.1.2
log
@Added support for tdis3.  Added DSS.fits to cleaner.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 5.7.1.1 2015/06/29 02:47:24 mcalabre Exp mcalabre $
d73 1
a73 1
TEST_C := twcstab twcshdr tdis3 twcslint
d289 1
a289 1
	-  $(RM) $(TEST_P) tdis3 tpih2 twcshdr twcslint twcstab
d292 1
a292 1
	-  $(RM) DSS.fits TPV3.fits TPV5.fits TPV7.fits SIP.fits SIPTPV.fits
a347 5
tdis3 : test/tdis3
	-@@ echo ''
	   cp $< .
	-@@ chmod a+x $@@

a456 1
run_tdis3 : DSS.fits SIPTPV.fits
@


5.7.1.3
log
@Added TNX.fits and ZPX.fits as dependencies of tdis3, and also to 'cleaner'.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 5.7.1.2 2015/07/03 13:31:15 mcalabre Exp mcalabre $
d292 1
a292 2
	-  $(RM) SIP.fits SIPTPV.fits TPV3.fits TPV5.fits TPV7.fits
	-  $(RM) DSS.fits TNX.fits ZPX.fits
d462 1
a462 1
run_tdis3 : DSS.fits SIPTPV.fits TNX.fits ZPX.fits
@


5.6
log
@WCSLIB 5.6
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 5.6 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 5.5.1.1 2015/05/05 13:21:00 mcalabre Exp mcalabre $
d66 2
a67 2
TEST_N := tlin tdis1 tlog tprj1 tsph tsphdpa tspx ttab1 twcs twcssub tpih1 \
          tbth1 tfitshdr tunits twcsfix twcscompare
d70 1
a70 1
TEST_n := tspcaips tspcspxe tspctrne twcs_locale
d292 1
a292 1
	-  $(RM) TPV3.fits TPV5.fits TPV7.fits SIP.fits
d418 4
d456 1
@


5.6.1.1
log
@WCSLIB 5.6 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 5.6 2015/06/14 07:11:24 mcalabre Exp $
@


5.6.1.2
log
@Added support for tdis2.  Added SIPTPV.fits to cleaner.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 5.6.1.1 2015/06/14 07:14:44 mcalabre Exp mcalabre $
d66 2
a67 2
TEST_N := tlin tdis1 tdis2 tlog tprj1 tsph tsphdpa tspx ttab1 twcs twcssub \
          tpih1 tbth1 tfitshdr tunits twcsfix twcscompare
d292 1
a292 1
	-  $(RM) TPV3.fits TPV5.fits TPV7.fits SIP.fits SIPTPV.fits
a417 2
tdis2   : cel.h dis.h lin.h prj.h spc.h spx.h wcs.h wcserr.h wcshdr.h \
          wcsprintf.h
a451 1
run_tdis2 : SIP.fits
@


5.6.1.3
log
@Added support for tdisiter.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 5.6.1.2 2015/06/16 07:46:49 mcalabre Exp mcalabre $
d70 1
a70 1
TEST_n := tdisiter tspcaips tspcspxe tspctrne twcs_locale
a418 2
          wcsprintf.h
tdisiter: cel.h dis.h lin.h prj.h spc.h spx.h wcs.h wcserr.h wcshdr.h \
@


5.5
log
@WCSLIB 5.5
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 5.5 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 5.4.1.2 2015/05/05 12:59:40 mcalabre Exp mcalabre $
@


5.5.1.1
log
@WCSLIB 5.5 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 5.5 2015/05/05 13:16:31 mcalabre Exp $
@


5.4
log
@WCSLIB 5.4
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 5.4 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 5.3.1.2 2015/04/21 13:27:49 mcalabre Exp mcalabre $
d421 2
a422 2
tpih2 tpih2_cfitsio : cel.h cpgsbox.h lin.h prj.h spc.h spx.h wcs.h \
                      wcsconfig.h wcsconfig_tests.h wcshdr.h
@


5.4.1.1
log
@WCSLIB 5.4 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 5.4 2015/04/21 14:41:05 mcalabre Exp $
@


5.4.1.2
log
@Removed cpgsbox.h from the dependency list for tpih2 since this makefile
doesn't know how to make it.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 5.4.1.1 2015/04/21 14:44:28 mcalabre Exp mcalabre $
d421 2
a422 2
tpih2 tpih2_cfitsio : cel.h lin.h prj.h spc.h spx.h wcs.h wcsconfig.h \
                      wcsconfig_tests.h wcshdr.h
@


5.3
log
@WCSLIB 5.3
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 5.3 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 5.2.1.1 2015/04/15 12:39:14 mcalabre Exp mcalabre $
d292 1
a292 1
	-  $(RM) TPV3.fits TPV5.fits TPV7.fits
@


5.3.1.1
log
@WCSLIB 5.3 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 5.3 2015/04/21 02:50:51 mcalabre Exp $
@


5.3.1.2
log
@Added SIP.fits to cleaner.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 5.3.1.1 2015/04/21 02:54:02 mcalabre Exp mcalabre $
d292 1
a292 1
	-  $(RM) TPV3.fits TPV5.fits TPV7.fits SIP.fits
@


5.2
log
@WCSLIB 5.2
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 5.2 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 5.1.1.2 2015/04/15 09:20:45 mcalabre Exp mcalabre $
@


5.2.1.1
log
@WCSLIB 5.2 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 5.2 2015/04/15 12:35:07 mcalabre Exp $
@


5.1
log
@WCSLIB 5.1
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 5.1 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 5.0.1.2 2015/04/07 09:49:49 mcalabre Exp mcalabre $
d180 7
a186 1
	       if grep 'PASS:' $<.out > /dev/null ; then \
@


5.1.1.1
log
@WCSLIB 5.1 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 5.1 2015/04/07 10:56:36 mcalabre Exp $
@


5.1.1.2
log
@When processing test results, look for FAIL before PASS, as some tests have
multiple results.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 5.1.1.1 2015/04/07 11:01:10 mcalabre Exp mcalabre $
d180 1
a180 7
	       if grep 'FAIL:' $<.out > /dev/null ; then \
	         if [ '$(MODE)' != interactive ] ; then \
	           head -2 $<.out ; \
	           grep 'FAIL:' $<.out ; \
	         fi ; \
	         echo 'FAIL: C/$<' >> test_results ; \
	       elif grep 'PASS:' $<.out > /dev/null ; then \
@


5.0
log
@WCSLIB 5.0
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 5.0 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 4.25.1.7 2015/04/05 08:27:41 mcalabre Exp mcalabre $
d356 1
a356 1
	   $(CC) $(CPPFLAGS) $(CFLAGS) -o $@@ $<
@


5.0.1.1
log
@WCSLIB 5.0 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 5.0 2015/04/05 12:24:59 mcalabre Exp $
@


5.0.1.2
log
@Patch provided by Ole Streicher to propagate user-defined LDFLAGS.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 5.0.1.1 2015/04/05 12:28:00 mcalabre Exp mcalabre $
d356 1
a356 1
	   $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@@ $<
@


4.25
log
@WCSLIB 4.25
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 4.25 and its test suite.
d13 1
a13 1
#              library the C source files generated by 'flex'.
d34 1
a34 1
# $Id: GNUmakefile,v 4.24.1.1 2014/09/18 15:28:09 mcalabre Exp mcalabre $
a64 5
# Signals tfitshdr to use wcshdr().
ifneq "$(DO_WCSHDR)" ""
  CPPFLAGS += -DDO_WCSHDR
endif

d66 2
a67 2
TEST_N := tlin tlog tprj1 tsph tsphdpa tspx ttab1 twcs twcssub tpih1 tbth1 \
          tfitshdr tunits twcsfix twcscompare
d73 1
a73 1
TEST_C := twcstab twcshdr
d107 2
d141 3
d188 1
a188 1
	         sed -e 's/0x[0-9a-f][0-9a-f][0-9a-f]*/0x<address>/g' $<.out > \
d283 4
a286 2
	-  $(RM) $(TEST_P) tpih2 twcstab twcshdr
	-  $(RM) tofits bth.fits pih.fits wcstab.fits
d342 5
a357 6
pih.fits : test/pih.keyrec tofits
	   ./tofits < $< > $@@

bth.fits : test/bth.keyrec tofits
	   ./tofits < $< > $@@

d375 2
a376 1
$(WCSLIB)(lin.o)      : lin.h wcserr.h wcsprintf.h
d380 2
a381 2
$(WCSLIB)(spc.o)      : spc.h spx.h wcserr.h wcsmath.h wcsprintf.h wcstrig.h \
                        wcsutil.h
d384 6
a389 6
$(WCSLIB)(tab.o)      : tab.h wcserr.h wcsmath.h wcsprintf.h
$(WCSLIB)(wcs.o)      : cel.h lin.h log.h prj.h spc.h sph.h spx.h tab.h \
                        wcs.h wcsconfig.h wcserr.h wcsmath.h wcsprintf.h \
                        wcstrig.h wcsunits.h wcsutil.h
$(WCSLIB)(wcsbth.o)   : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h wcserr.h \
                        wcshdr.h wcsmath.h wcsutil.h
d391 2
a392 2
$(WCSLIB)(wcsfix.o)   : cel.h lin.h prj.h spc.h sph.h spx.h tab.h wcs.h \
                        wcserr.h wcsfix.h wcsmath.h wcsunits.h wcsutil.h
d395 2
a396 2
$(WCSLIB)(wcspih.o)   : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h wcserr.h \
                        wcshdr.h wcsmath.h wcsutil.h
d401 1
a401 1
$(WCSLIB)(wcsutil.o)  : wcsutil.h
d406 2
a407 2
tcel1   : cel.h prj.h wcserr.h
tcel2   : cel.h prj.h wcserr.h
d409 3
a411 1
tlin    : lin.h wcserr.h
d413 1
a413 1
tpih1 tpih1_cfitsio : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h wcsconfig.h \
d415 7
a421 7
tpih2 tpih2_cfitsio : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h wcsconfig.h \
                      wcsconfig_tests.h wcserr.h wcshdr.h
tprj1   : prj.h wcsconfig.h wcserr.h wcstrig.h
tprj2   : prj.h wcserr.h
tspc    : spc.h spx.h wcsconfig.h wcserr.h wcstrig.h
tspcaips: spc.h
tspctrne: spc.h wcserr.h
d424 4
a427 4
tspx    : spx.h wcserr.h
ttab1   : tab.h wcserr.h
ttab2   : tab.h wcserr.h
ttab3   : prj.h tab.h wcserr.h
d429 6
a434 5
twcs    : cel.h lin.h log.h prj.h spc.h sph.h spx.h tab.h wcs.h wcsconfig.h \
          wcsconfig_tests.h wcserr.h wcsfix.h wcshdr.h wcslib.h wcsmath.h \
          wcsprintf.h wcstrig.h wcsunits.h wcsutil.h
twcs_locale : wcs.h wcserr.h wcshdr.h wcsprintf.h
twcsfix : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h wcserr.h wcsfix.h \
d439 2
a440 2
twcsmix : cel.h lin.h prj.h spc.h sph.h spx.h tab.h wcs.h wcserr.h
twcssub : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h wcserr.h
d445 1
d447 1
a447 1
run_tfitshdr run_tfitshdr_cfitsio : pih.fits
d450 2
@


4.25.1.1
log
@WCSLIB 4.25 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 4.25 2014/12/14 14:29:36 mcalabre Exp $
@


4.25.1.2
log
@twcs_locale now uses pih.fits.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 4.25.1.1 2014/12/14 14:32:45 mcalabre Exp mcalabre $
a443 1
run_twcs_locale : pih.fits
@


4.25.1.3
log
@Added rules for testing wcslint.  tfitshdr now takes its input from
fitshdr.fits.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 4.25.1.2 2015/03/06 01:28:00 mcalabre Exp mcalabre $
d78 1
a78 1
TEST_C := twcstab twcshdr twcslint
a111 2
ADDRE := 0x[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]*

d188 1
a188 1
	         sed -e 's/$(ADDRE)/0x<address>/g' $<.out > \
d283 2
a284 3
	-  $(RM) $(TEST_P) tpih2 twcstab twcshdr twcslint
	-  $(RM) tofits
	-  $(RM) bth.fits fitshdr.fits pih.fits wcslint.fits wcstab.fits
a339 5
twcslint : test/twcslint
	-@@ echo ''
	   cp $< .
	-@@ chmod a+x $@@

a350 3
fitshdr.fits : test/fitshdr.keyrec tofits
	   ./tofits < $< > $@@

a356 3
wcslint.fits : test/wcslint.keyrec tofits
	   ./tofits < $< > $@@

d441 1
a441 1
run_tfitshdr run_tfitshdr_cfitsio : fitshdr.fits
@


4.25.1.4
log
@Added wcslint.fits as a dependency of run_twcslint.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 4.25.1.3 2015/03/13 22:25:49 mcalabre Exp mcalabre $
a457 1
run_twcslint : wcslint.fits
@


4.25.1.5
log
@Added support for tdis1.  Added a pattern rule for %.fits and removed the
previous static rules.  Updated the dependency lists.
@
text
@d13 1
a13 1
#              library and the C source files generated by 'flex'.
d34 1
a34 1
# $Id: GNUmakefile,v 4.25.1.4 2015/03/15 09:01:20 mcalabre Exp mcalabre $
d71 2
a72 2
TEST_N := tlin tdis1 tlog tprj1 tsph tsphdpa tspx ttab1 twcs twcssub tpih1 \
          tbth1 tfitshdr tunits twcsfix twcscompare
a145 3
%.fits : test/%.keyrec tofits
	   ./tofits < $< > $@@

a287 1
	-  $(RM) TPV3.fits TPV5.fits TPV7.fits
d359 12
d388 1
a388 2
$(WCSLIB)(dis.o)      : dis.h wcserr.h wcsprintf.h wcsutil.h
$(WCSLIB)(lin.o)      : dis.h lin.h wcserr.h wcsprintf.h
d392 2
a393 2
$(WCSLIB)(spc.o)      : spc.h spx.h wcsconfig.h wcserr.h wcsmath.h \
                        wcsprintf.h wcstrig.h wcsutil.h
d396 6
a401 6
$(WCSLIB)(tab.o)      : tab.h wcserr.h wcsmath.h wcsprintf.h wcsutil.h
$(WCSLIB)(wcs.o)      : cel.h dis.h lin.h log.h prj.h spc.h sph.h spx.h \
                        tab.h wcs.h wcsconfig.h wcserr.h wcsmath.h \
                        wcsprintf.h wcstrig.h wcsunits.h wcsutil.h
$(WCSLIB)(wcsbth.o)   : cel.h lin.h prj.h spc.h spx.h wcs.h wcshdr.h \
                        wcsmath.h wcsprintf.h wcsutil.h
d403 2
a404 2
$(WCSLIB)(wcsfix.o)   : cel.h lin.h prj.h spc.h sph.h spx.h wcs.h wcserr.h \
                        wcsfix.h wcsmath.h wcsunits.h wcsutil.h
d407 2
a408 2
$(WCSLIB)(wcspih.o)   : cel.h lin.h prj.h spc.h spx.h wcs.h wcshdr.h \
                        wcsmath.h wcsprintf.h wcsutil.h
d413 1
a413 1
$(WCSLIB)(wcsutil.o)  : wcsmath.h wcsutil.h
d418 2
a419 2
tcel1   : cel.h prj.h
tcel2   : cel.h prj.h
d421 1
a421 3
tlin    : lin.h
tdis1   : cel.h dis.h lin.h prj.h spc.h spx.h wcs.h wcserr.h wcshdr.h \
          wcsprintf.h
d423 1
a423 1
tpih1 tpih1_cfitsio : cel.h lin.h prj.h spc.h spx.h wcs.h wcsconfig.h \
d425 7
a431 7
tpih2 tpih2_cfitsio : cel.h cpgsbox.h lin.h prj.h spc.h spx.h wcs.h \
                      wcsconfig.h wcsconfig_tests.h wcshdr.h
tprj1   : prj.h wcsconfig.h wcstrig.h
tprj2   : prj.h
tspc    : spc.h spx.h wcsconfig.h wcstrig.h
tspcaips: spc.h spx.h
tspctrne: spc.h spx.h wcserr.h
d434 4
a437 4
tspx    : spx.h
ttab1   : tab.h
ttab2   : tab.h
ttab3   : prj.h tab.h
d439 5
a443 6
twcs    : cel.h fitshdr.h lin.h log.h prj.h spc.h sph.h spx.h tab.h wcs.h \
          wcsconfig.h wcsconfig_tests.h wcserr.h wcsfix.h wcshdr.h wcslib.h \
          wcsmath.h wcsprintf.h wcstrig.h wcsunits.h wcsutil.h
twcs_locale : cel.h lin.h prj.h spc.h spx.h wcs.h wcserr.h wcshdr.h \
              wcsprintf.h
twcsfix : cel.h lin.h prj.h spc.h spx.h wcs.h wcserr.h wcsfix.h wcsprintf.h \
d448 2
a449 2
twcsmix : cel.h lin.h prj.h spc.h sph.h spx.h wcs.h
twcssub : cel.h lin.h prj.h spc.h spx.h wcs.h wcserr.h
a453 1
run_tdis1 : TPV3.fits TPV5.fits TPV7.fits
@


4.25.1.6
log
@Removed DO_WCSHDR which was used to control tfitshdr.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 4.25.1.5 2015/04/03 02:25:01 mcalabre Exp mcalabre $
d65 5
@


4.25.1.7
log
@Require only six hexadecimal digits in an address (Intel Xeon CPUs).
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 4.25.1.6 2015/04/03 07:08:41 mcalabre Exp mcalabre $
d107 1
a107 1
ADDRE := 0x[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]*
@


4.24
log
@WCSLIB 4.24
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 4.24 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 4.23.1.1 2014/05/13 05:53:49 mcalabre Exp mcalabre $
@


4.24.1.1
log
@WCSLIB 4.24 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 4.24 2014/09/18 15:25:00 mcalabre Exp $
@


4.23
log
@WCSLIB 4.23
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 4.23 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 4.22.1.2 2014/05/10 14:35:31 mcalabre Exp mcalabre $
@


4.23.1.1
log
@WCSLIB 4.23 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 4.23 2014/05/13 05:50:51 mcalabre Exp $
@


4.22
log
@WCSLIB 4.22
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 4.22 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 4.21.1.1 2014/03/24 05:15:28 mcalabre Exp mcalabre $
d72 1
a72 1
          tfitshdr tunits twcsfix
d193 1
a193 1
	             head -1 $<.out ; \
a194 1
	           echo '' ; \
@


4.22.1.1
log
@WCSLIB 4.22 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 4.22 2014/04/12 15:03:52 mcalabre Exp $
@


4.22.1.2
log
@Exercise twcscompare.  Minor tidy-up for the output from some test programs.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 4.22.1.1 2014/04/12 15:06:32 mcalabre Exp mcalabre $
d72 1
a72 1
          tfitshdr tunits twcsfix twcscompare
d193 1
a193 1
	             head -2 $<.out ; \
d195 1
@


4.21
log
@WCSLIB 4.21
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 4.21 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 4.20.1.1 2013/12/18 05:46:55 mcalabre Exp $
@


4.21.1.1
log
@WCSLIB 4.21 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 4.21 2014/03/24 05:12:27 mcalabre Exp $
@


4.20
log
@WCSLIB 4.20
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 4.20 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 4.19.1.1 2013/09/29 14:20:38 mcalabre Exp mcalabre $
@


4.20.1.1
log
@WCSLIB 4.20 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 4.20 2013/12/18 05:42:49 mcalabre Exp $
@


4.19
log
@WCSLIB 4.19
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 4.19 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 4.18.1.2 2013/07/14 02:15:55 mcalabre Exp mcalabre $
@


4.19.1.1
log
@WCSLIB 4.19 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 4.19 2013/09/29 14:17:51 mcalabre Exp $
@


4.18
log
@WCSLIB 4.18
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 4.18 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 4.17.1.2 2013/07/12 03:38:16 mcalabre Exp mcalabre $
d259 1
a259 1
	     $(INSTALL) -m 644 $(SHRLIB) $(LIBDIR) ; \
@


4.18.1.1
log
@WCSLIB 4.18 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 4.18 2013/07/13 10:00:04 mcalabre Exp $
@


4.18.1.2
log
@Install the shared library with execute permission (755 instead of 644),
unnecessary but makes it easier to find in a colour-coded directory
listing.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 4.18.1.1 2013/07/13 10:02:37 mcalabre Exp mcalabre $
d259 1
a259 1
	     $(INSTALL) -m 755 $(SHRLIB) $(LIBDIR) ; \
@


4.17
log
@WCSLIB 4.17
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 4.17 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 4.16.1.1 2012/11/07 04:45:56 cal103 Exp cal103 $
d347 1
a347 1
	   $(MAKE) -C ../pgsbox lib
@


4.17.1.1
log
@WCSLIB 4.17 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 4.17 2013/01/29 05:29:20 cal103 Exp $
@


4.17.1.2
log
@In the $(PGSBOXLIB) rule, be sure only to build the static object library
as the shared library requires the WCSLIB shared library which may not have
been built yet.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 4.17.1.1 2013/01/29 05:32:32 cal103 Exp cal103 $
d347 1
a347 1
	   $(MAKE) -C ../pgsbox $(notdir $@@)
@


4.16
log
@WCSLIB 4.16
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 4.16 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 4.15.1.1 2012/09/26 14:27:51 cal103 Exp cal103 $
@


4.16.1.1
log
@WCSLIB 4.16 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 4.16 2012/11/07 04:42:44 cal103 Exp $
@


4.15
log
@WCSLIB 4.15
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 4.15 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 4.14.1.2 2012/09/26 08:18:13 cal103 Exp cal103 $
@


4.15.1.1
log
@WCSLIB 4.15 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 4.15 2012/09/26 14:26:05 cal103 Exp $
@


4.14
log
@WCSLIB 4.14
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 4.14 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 4.13.1.5 2012/07/13 03:33:19 cal103 Exp cal103 $
d75 1
a75 1
TEST_n := tspcaips tspctrne twcs_locale
@


4.14.1.1
log
@WCSLIB 4.14 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 4.14 2012/07/13 10:02:27 cal103 Exp $
@


4.14.1.2
log
@New unofficial test program, tspcspxe.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 4.14.1.1 2012/07/13 10:04:44 cal103 Exp cal103 $
d75 1
a75 1
TEST_n := tspcaips tspcspxe tspctrne twcs_locale
@


4.13
log
@WCSLIB 4.13
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 4.13 and its test suite.
d32 3
a34 3
# Author: Mark Calabretta, Australia Telescope National Facility
# http://www.atnf.csiro.au/~mcalabre/index.html
# $Id: GNUmakefile,v 4.12.1.1 2012/02/29 07:59:10 cal103 Exp cal103 $
d70 1
a70 1
# Test programs that don't require CFITSIO or PGPLOT.
d74 3
d243 1
a243 1
	     $(SHRLD) $(LDFLAGS) -o $@@ *.o && \
d283 1
a283 1
	-  $(RM) $(TEST_N) $(TEST_X)
d297 1
a297 1
$(TEST_N) : % : test/%.c $(WCSLIB)
d299 1
a299 1
	   $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@@ $< $(WCSLIB) $(LIBS)
d305 1
a305 1
	   $(LD) $(LDFLAGS) -o $@@ $@@.o $(PGPLOTLIB) $(WCSLIB) $(FLIBS) $(LIBS)
d311 1
a311 1
	   $(LD) $(LDFLAGS) -o $@@ $@@.o $(PGSBOXLIB) $(PGPLOTLIB) $(WCSLIB) \
d318 1
a318 1
	     $(LDFLAGS) -o $@@ $< $(CFITSIOLIB) $(WCSLIB) $(LIBS)
d325 1
a325 1
	   $(LD) $(LDFLAGS) -o $@@ $@@.o $(PGSBOXLIB) $(PGPLOTLIB) \
d331 2
a332 2
	   $(CC) $(CPPFLAGS) $(CFITSIOINC) $(CFLAGS) $(LDFLAGS) -o $@@ $< \
	     $(GETWCSTAB) $(CFITSIOLIB) $(WCSLIB) $(LIBS)
d337 2
a338 2
	   $(CC) $(CPPFLAGS) $(CFITSIOINC) $(CFLAGS) $(LDFLAGS) -o $@@ $< \
	     $(GETWCSTAB) $(CFITSIOLIB) $(WCSLIB) $(LIBS)
d374 1
a374 1
$(WCSLIB)(fitshdr.o)  : wcsconfig.h fitshdr.h
d388 1
a388 1
                        wcshdr.h wcsmath.h
d395 1
a395 1
                        wcshdr.h wcsmath.h
d398 1
a398 1
$(WCSLIB)(wcsulex.o)  : wcserr.h wcsmath.h wcsunits.h
d417 2
d429 1
@


4.13.1.1
log
@WCSLIB 4.13 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 4.13 2012/03/14 07:39:30 cal103 Exp $
@


4.13.1.2
log
@Added $(LIBS) to the link list for the sharable library, -lm having been
removed from SHRLD.  Reordered the compile commands so that $(LDFLAGS)
follows the list of object modules.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 4.13.1.1 2012/03/14 07:40:37 cal103 Exp cal103 $
d240 1
a240 1
	     $(SHRLD) -o $@@ *.o $(LDFLAGS) $(LIBS) && \
d296 1
a296 1
	   $(CC) $(CPPFLAGS) $(CFLAGS) -o $@@ $< $(LDFLAGS) $(WCSLIB) $(LIBS)
d302 1
a302 1
	   $(LD) -o $@@ $@@.o $(LDFLAGS) $(PGPLOTLIB) $(WCSLIB) $(FLIBS) $(LIBS)
d308 1
a308 1
	   $(LD) -o $@@ $@@.o $(LDFLAGS) $(PGSBOXLIB) $(PGPLOTLIB) $(WCSLIB) \
d315 1
a315 1
	     -o $@@ $< $(LDFLAGS) $(CFITSIOLIB) $(WCSLIB) $(LIBS)
d322 1
a322 1
	   $(LD) -o $@@ $@@.o $(LDFLAGS) $(PGSBOXLIB) $(PGPLOTLIB) \
d328 2
a329 2
	   $(CC) $(CPPFLAGS) $(CFITSIOINC) $(CFLAGS) -o $@@ $< $(GETWCSTAB) \
	     $(LDFLAGS) $(CFITSIOLIB) $(WCSLIB) $(LIBS)
d334 2
a335 2
	   $(CC) $(CPPFLAGS) $(CFITSIOINC) $(CFLAGS) -o $@@ $< $(GETWCSTAB) \
	     $(LDFLAGS) $(CFITSIOLIB) $(WCSLIB) $(LIBS)
@


4.13.1.3
log
@Added rules for compiling tspcaips, tspctrne, and twcs_locale.  Updated
the dependency lists for fitshdr.o, wcsbth.o, wcspih.o, and wcsulex.o.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 4.13.1.2 2012/03/21 02:55:04 cal103 Exp cal103 $
a337 5
tspcaips tspctrne twcs_locale : % : test/%.c $(WCSLIB)
	-@@ echo ''
	   $(CC) $(CPPFLAGS) $(CFLAGS) -o $@@ $< $(LDFLAGS) $(WCSLIB) $(LIBS)
	-@@ $(RM) $@@.o

d371 1
a371 1
$(WCSLIB)(fitshdr.o)  : wcsconfig.h fitshdr.h wcsutil.h
d385 1
a385 1
                        wcshdr.h wcsmath.h wcsutil.h
d392 1
a392 1
                        wcshdr.h wcsmath.h wcsutil.h
d395 1
a395 1
$(WCSLIB)(wcsulex.o)  : wcserr.h wcsmath.h wcsunits.h wcsutil.h
a413 2
tspcaips: spc.h
tspctrne: spc.h wcserr.h
a423 1
twcs_locale : wcs.h wcserr.h wcshdr.h wcsprintf.h
@


4.13.1.4
log
@Handle unofficial test programs a bit better.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 4.13.1.3 2012/07/12 15:36:09 cal103 Exp cal103 $
d70 1
a70 1
# Test programs that don't require CFITSIO or PGPLOT...
a73 3
# ...and unofficial test programs.
TEST_n := tspcaips tspctrne twcs_locale

d280 1
a280 1
	-  $(RM) $(TEST_N) $(TEST_n) $(TEST_X)
d294 1
a294 1
$(TEST_N) $(TEST_n) : % : test/%.c $(WCSLIB)
d338 5
@


4.13.1.5
log
@Changed contact details.
@
text
@d32 3
a34 3
# Author: Mark Calabretta, Australia Telescope National Facility, CSIRO.
# http://www.atnf.csiro.au/people/Mark.Calabretta
# $Id: GNUmakefile,v 4.13.1.4 2012/07/13 03:30:49 cal103 Exp cal103 $
@


4.12
log
@WCSLIB 4.12
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 4.12 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 4.11.1.1 2012/02/20 23:31:13 cal103 Exp cal103 $
@


4.12.1.1
log
@WCSLIB 4.12 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 4.12 2012/02/29 07:57:56 cal103 Exp $
@


4.11
log
@WCSLIB 4.11
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 4.11 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 4.10.1.1 2012/02/05 23:42:46 cal103 Exp cal103 $
@


4.11.1.1
log
@WCSLIB 4.11 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 4.11 2012/02/20 23:30:02 cal103 Exp $
@


4.10
log
@WCSLIB 4.10
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 4.10 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 4.9.1.1 2012/01/24 05:41:45 cal103 Exp cal103 $
@


4.10.1.1
log
@WCSLIB 4.10 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 4.10 2012/02/05 23:41:44 cal103 Exp $
@


4.9
log
@WCSLIB 4.9
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 4.9 and its test suite.
d34 1
a34 1
# $Id: GNUmakefile,v 4.8.1.4 2011/12/05 06:41:07 cal103 Exp cal103 $
@


4.9.1.1
log
@WCSLIB 4.9 development branch.
@
text
@d34 1
a34 1
# $Id: GNUmakefile,v 4.9 2012/01/24 05:40:29 cal103 Exp $
@


4.8
log
@WCSLIB 4.8
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 4.8 and its test suite.
d19 1
a19 1
#                gmake MODE=interactive check
d21 4
a24 1
#              to run them interactively with full diagnostic output.
d34 1
a34 1
# $Id: GNUmakefile,v 4.7.1.6 2011/08/13 06:40:18 cal103 Exp cal103 $
d70 1
a70 1
# Test programs that don't require PGPLOT.
d96 1
d102 1
d155 2
d163 1
a163 3
	     if [ '$<' = tcel2 ] ; then \
	       echo N | ./$< ; \
	     elif [ '$(filter $<, $(TEST_N) $(TEST_C))' ] ; then \
d165 5
a169 1
	         ./$< < test/units_test > $<.out 2>&1 ; \
d171 5
a175 1
	         ./$< < /dev/null > $<.out 2>&1 ; \
d178 5
a182 2
	         head -2 $<.out ; \
	         grep 'PASS:' $<.out ; \
d189 4
a192 1
	           head -2 $<.out ; \
d194 1
d196 3
a198 1
	           cat $<.out ; \
d201 1
d203 1
a203 1
	       else \
d205 1
d207 2
d210 5
a214 1
	       ./$< < /dev/null 2>&1 ; \
d257 4
d265 1
a265 1
	       $(LN_S) $(SHRLIB) $(LIBDIR)/$(SHRLN) ; \
d283 1
a283 1
	-  $(RM) t*_cfitsio
d302 1
a302 1
	   $(LD) $(LDFLAGS) -o $@@ $@@.o $(PGPLOTLIB) $(WCSLIB) $(LIBS)
@


4.8.1.1
log
@WCSLIB 4.8 development branch.
@
text
@d31 1
a31 1
# $Id: GNUmakefile,v 4.8 2011/08/15 08:05:53 cal103 Exp $
@


4.8.1.2
log
@Install the sharable library with full release number and create
$(SONAME) as a symlink pointing to it.  If defined, $(SHRLN) will
point to $(SONAME).  Change request from Ole Streicher, Debian
package maintainer.
@
text
@d31 1
a31 1
# $Id: GNUmakefile,v 4.8.1.1 2011/08/15 08:07:06 cal103 Exp cal103 $
a226 4
	     if [ -h "$(LIBDIR)/$(SONAME)" ] ; then \
	       $(RM) $(LIBDIR)/$(SONAME) ; \
	     fi ; \
	     $(LN_S) $(SHRLIB) $(LIBDIR)/$(SONAME) ; \
d231 1
a231 1
	       $(LN_S) $(SONAME) $(LIBDIR)/$(SHRLN) ; \
@


4.8.1.3
log
@Added $(FLIBS) to the link list for $(TEST_P) since gcc is driving
the linker.
@
text
@d31 1
a31 1
# $Id: GNUmakefile,v 4.8.1.2 2011/09/16 04:41:29 cal103 Exp cal103 $
d272 1
a272 1
	   $(LD) $(LDFLAGS) -o $@@ $@@.o $(PGPLOTLIB) $(WCSLIB) $(FLIBS) $(LIBS)
@


4.8.1.4
log
@Summarize the non-graphical test results.
@
text
@d19 1
a19 1
#                make MODE=interactive check
d21 1
a21 4
#              to run them interactively with full diagnostic output.  To skip
#              graphical tests even if PGPLOT is available, use
#
#                make CHECK=nopgplot check
d31 1
a31 1
# $Id: GNUmakefile,v 4.8.1.3 2011/11/23 04:48:27 cal103 Exp cal103 $
d67 1
a67 1
# Test programs that don't require CFITSIO or PGPLOT.
a92 1
ifneq "$(CHECK)" "nopgplot"
a97 1
endif
a149 2
	   fi ; \
	   if [ '$(VALGRIND)' ] ; then \
d156 3
a158 1
	     if [ '$(filter $<, $(TEST_N) $(TEST_C))' ] ; then \
d160 1
a160 5
	         if [ '$(MODE)' = interactive ] ; then \
	           ./$< < test/units_test 2>&1 | tee $<.out ; \
	         else \
	           ./$< < test/units_test > $<.out 2>&1 ; \
	         fi ; \
d162 1
a162 5
	         if [ '$(MODE)' = interactive ] ; then \
	           ./$< < /dev/null 2>&1 | tee $<.out ; \
	         else \
	           ./$< < /dev/null > $<.out 2>&1 ; \
	         fi ; \
d165 2
a166 5
	         if [ '$(MODE)' != interactive ] ; then \
	           head -2 $<.out ; \
	           grep 'PASS:' $<.out ; \
	         fi ; \
	         echo 'PASS: C/$<' >> test_results ; \
d173 1
a173 4
	           if [ '$(MODE)' != interactive ] ; then \
	             head -1 $<.out ; \
	           fi ; \
	           echo '' ; \
a174 1
	           echo 'PASS: C/$<' >> test_results ; \
d176 1
a176 3
	           if [ '$(MODE)' != interactive ] ; then \
	             cat $<.out ; \
	           fi ; \
a178 1
	           echo 'FAIL: C/$<' >> test_results ; \
d180 1
a180 1
	       elif [ '$(MODE)' != interactive ] ; then \
a181 1
	         echo 'FAIL: C/$<' >> test_results ; \
a182 2
	     elif [ '$(MODE)' = interactive ] ; then \
	       ./$< ; \
d184 1
a184 5
	       if [ '$<' = tcel2 ] ; then \
	         echo N | ./$< ; \
	       else \
	         ./$< < /dev/null 2>&1 ; \
	       fi ; \
d253 1
a253 1
	-  $(RM) t*_cfitsio test_results
@


4.7
log
@WCSLIB 4.7
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 4.7 and its test suite.
d16 2
a17 1
#              executed in batch mode; use
d21 1
a21 1
#              to run them interactively.
d31 1
a31 1
# $Id: GNUmakefile,v 4.6.1.10 2011/01/25 00:33:50 cal103 Exp cal103 $
d68 2
a69 2
TEST_N := tlin tlog tprj1 tsph tspx ttab1 twcs twcssub tpih1 tbth1 tfitshdr \
          tunits twcsfix
d71 4
a74 1
# Test programs that do require PGPLOT.
d77 3
d81 1
a81 1
TEST_X := tsphdpa
d84 9
d95 1
a95 1
  TESTS   += $(TEST_P) tpih2
d99 2
a100 6
# Test programs that require CFITSIO.
ifneq "$(CFITSIOINC)" ""
ifneq "$(CFITSIOLIB)" ""
  TESTS  += twcstab twcshdr
endif
endif
d136 1
d147 1
a147 1
	 @@ if [ '$(MODE)' = interactive ] ; then \
d152 1
a152 1
	     elif [ '$<' != twcshdr ] ; then \
d157 28
a184 5
	       echo N | $(VALGRIND) ./$< ; \
	     elif [ '$<' = tunits ] ; then \
	       $(VALGRIND) ./$< < test/units_test ; \
	     elif [ '$<' != twcshdr ] ; then \
	       $(VALGRIND) ./$< < /dev/null 2>&1 ; \
d242 1
a242 1
	- $(RM) -r *.o *.i a.out core *.dSYM $(EXTRA_CLEAN)
d245 1
d258 1
a258 1
tests : $(TESTS)
d260 1
a260 1
$(TEST_N) $(TEST_X) : % : test/%.c $(WCSLIB)
d332 2
a333 2
# Dependencies
#-------------
d335 2
a336 1
$(WCSLIB)(cel.o)      : cel.h prj.h sph.h wcsmath.h wcsprintf.h wcstrig.h
d338 1
a338 1
$(WCSLIB)(lin.o)      : lin.h wcsprintf.h
d340 7
a346 5
$(WCSLIB)(prj.o)      : prj.h wcsmath.h wcsprintf.h wcstrig.h
$(WCSLIB)(spc.o)      : spc.h spx.h wcsmath.h wcsprintf.h wcstrig.h
$(WCSLIB)(sph.o)      : sph.h wcstrig.h
$(WCSLIB)(spx.o)      : spx.h
$(WCSLIB)(tab.o)      : tab.h wcsmath.h wcsprintf.h
d348 5
a352 4
                        wcs.h wcsmath.h wcstrig.h wcsprintf.h wcsunits.h \
                        wcsutil.h
$(WCSLIB)(wcsbth.o)   : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h wcshdr.h \
                        wcsmath.h
d354 5
a358 5
                        wcsfix.h wcsmath.h wcsunits.h
$(WCSLIB)(wcshdr.o)   : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h wcshdr.h \
                        wcsutil.h
$(WCSLIB)(wcspih.o)   : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h wcshdr.h \
                        wcsmath.h
d360 3
a362 3
$(WCSLIB)(wcstrig.o)  : wcsmath.h wcstrig.h
$(WCSLIB)(wcsulex.o)  : wcsmath.h wcsunits.h
$(WCSLIB)(wcsunits.o) : wcsunits.h
d364 1
a364 1
$(WCSLIB)(wcsutrn.o)  : wcsunits.h
d366 6
a371 6
tbth1 tbth1_cfitsio : cel.h wcsconfig.h wcsconfig_tests.h lin.h prj.h spc.h \
                      spx.h tab.h wcs.h wcsfix.h wcshdr.h
tcel1   : cel.h prj.h
tcel2   : cel.h prj.h
tfitshdr tfitshdr_cfitsio : wcsconfig.h wcsconfig_tests.h fitshdr.h
tlin    : lin.h
d373 27
a399 20
tpih1 tpih1_cfitsio : cel.h wcsconfig.h wcsconfig_tests.h lin.h prj.h spc.h \
                      spx.h tab.h wcs.h wcsfix.h wcshdr.h wcsprintf.h
tpih2 tpih2_cfitsio : cel.h wcsconfig.h wcsconfig_tests.h lin.h prj.h spc.h \
                      spx.h tab.h wcs.h wcshdr.h
tprj1   : prj.h wcstrig.h
tprj2   : prj.h
tspc    : spc.h spx.h wcstrig.h
tsph    : sph.h wcstrig.h
tsphdpa : sph.h wcstrig.h
tspx    : spx.h
ttab1   : tab.h
ttab2   : tab.h
ttab3   : prj.h tab.h
tunits  : wcsunits.h
twcs    : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h
twcsfix : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h wcsfix.h wcsunits.h
twcshdr : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h wcshdr.h
twcsmix : cel.h lin.h prj.h spc.h sph.h spx.h tab.h wcs.h
twcssub : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h
twcstab : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h wcshdr.h
@


4.7.1.1
log
@WCSLIB 4.7 development branch.
@
text
@d30 1
a30 1
# $Id: GNUmakefile,v 4.7 2011/02/07 07:03:42 cal103 Exp $
@


4.7.1.2
log
@Added dependencies on wcserr.h.  Changes supplied by Michael
Droettboom (STScI) with respect to the released WCSLIB 4.7 sources.
@
text
@d298 1
a298 2
$(WCSLIB)(cel.o)      : cel.h prj.h sph.h wcserr.h wcsmath.h wcsprintf.h \
	                wcstrig.h
d300 1
a300 1
$(WCSLIB)(lin.o)      : lin.h wcserr.h wcsprintf.h
d302 2
a303 2
$(WCSLIB)(prj.o)      : prj.h wcserr.h wcsmath.h wcsprintf.h wcstrig.h
$(WCSLIB)(spc.o)      : spc.h spx.h wcserr.h wcsmath.h wcsprintf.h wcstrig.h
d305 2
a306 2
$(WCSLIB)(spx.o)      : spx.h wcserr.h
$(WCSLIB)(tab.o)      : tab.h wcserr.h wcsmath.h wcsprintf.h
d308 4
a311 4
                        wcs.h wcserr.h wcsmath.h wcstrig.h wcsprintf.h \
			wcsunits.h wcsutil.h
$(WCSLIB)(wcsbth.o)   : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h wcserr.h \
			wcshdr.h wcsmath.h
d313 5
a317 5
                        wcserr.h wcsfix.h wcsmath.h wcsunits.h
$(WCSLIB)(wcshdr.o)   : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h wcserr.h \
			wcshdr.h wcsutil.h
$(WCSLIB)(wcspih.o)   : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h wcserr.h \
			wcshdr.h wcsmath.h
d320 2
a321 2
$(WCSLIB)(wcsulex.o)  : wcserr.h wcsmath.h wcsunits.h
$(WCSLIB)(wcsunits.o) : wcserr.h wcsunits.h
d323 1
a323 1
$(WCSLIB)(wcsutrn.o)  : wcserr.h wcsunits.h
@


4.7.1.3
log
@Updated the dependency lists.
@
text
@d30 1
a30 1
# $Id: GNUmakefile,v 4.7.1.2 2011/07/21 04:33:51 cal103 Exp $
a123 1
# Print out include file dependencies.
d295 2
a296 2
# Dependencies (use the %.d pattern rule to list them)
#-----------------------------------------------------
d298 2
a299 2
$(WCSLIB)(cel.o)      : cel.h prj.h sph.h wcsconfig.h wcserr.h wcsmath.h \
                        wcsprintf.h wcstrig.h
d303 4
a306 6
$(WCSLIB)(prj.o)      : prj.h wcsconfig.h wcserr.h wcsmath.h wcsprintf.h \
                        wcstrig.h wcsutil.h
$(WCSLIB)(spc.o)      : spc.h spx.h wcserr.h wcsmath.h wcsprintf.h wcstrig.h \
                        wcsutil.h
$(WCSLIB)(sph.o)      : sph.h wcsconfig.h wcstrig.h
$(WCSLIB)(spx.o)      : spx.h wcserr.h wcsmath.h
d309 2
a310 2
                        wcs.h wcsconfig.h wcserr.h wcsmath.h wcsprintf.h \
                        wcstrig.h wcsunits.h wcsutil.h
d312 1
a312 2
                        wcshdr.h wcsmath.h
$(WCSLIB)(wcserr.o)   : wcserr.h wcsprintf.h
d314 1
a314 1
                        wcserr.h wcsfix.h wcsmath.h wcsunits.h wcsutil.h
d316 1
a316 1
                        wcshdr.h wcsmath.h wcsutil.h
d318 1
a318 1
                        wcshdr.h wcsmath.h
d320 1
a320 1
$(WCSLIB)(wcstrig.o)  : wcsconfig.h wcsmath.h wcstrig.h
d326 6
a331 6
tbth1 tbth1_cfitsio : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h wcsconfig.h \
                      wcsconfig_tests.h wcserr.h wcsfix.h wcshdr.h
tcel1   : cel.h prj.h wcserr.h
tcel2   : cel.h prj.h wcserr.h
tfitshdr tfitshdr_cfitsio : fitshdr.h wcsconfig.h wcsconfig_tests.h
tlin    : lin.h wcserr.h
d333 20
a352 27
tpih1 tpih1_cfitsio : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h wcsconfig.h \
                      wcsconfig_tests.h wcserr.h wcsfix.h wcshdr.h wcsprintf.h
tpih2 tpih2_cfitsio : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h wcsconfig.h \
                      wcsconfig_tests.h wcserr.h wcshdr.h
tprj1   : prj.h wcsconfig.h wcserr.h wcstrig.h
tprj2   : prj.h wcserr.h
tspc    : spc.h spx.h wcsconfig.h wcserr.h wcstrig.h
tsph    : sph.h wcsconfig.h wcstrig.h
tsphdpa : sph.h
tspx    : spx.h wcserr.h
ttab1   : tab.h wcserr.h
ttab2   : tab.h wcserr.h
ttab3   : prj.h tab.h wcserr.h
tunits  : wcserr.h wcsunits.h
twcs    : cel.h lin.h log.h prj.h spc.h sph.h spx.h tab.h wcs.h wcsconfig.h \
          wcsconfig_tests.h wcserr.h wcsfix.h wcshdr.h wcslib.h wcsmath.h \
          wcsprintf.h wcstrig.h wcsunits.h wcsutil.h
twcsfix : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h wcserr.h wcsfix.h \
          wcsunits.h
twcshdr : cel.h fitshdr.h getwcstab.h lin.h log.h prj.h spc.h sph.h spx.h \
          tab.h wcs.h wcsconfig.h wcserr.h wcsfix.h wcshdr.h wcslib.h \
          wcsmath.h wcsprintf.h wcstrig.h wcsunits.h wcsutil.h
twcsmix : cel.h lin.h prj.h spc.h sph.h spx.h tab.h wcs.h wcserr.h
twcssub : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h wcserr.h
twcstab : cel.h fitshdr.h getwcstab.h lin.h log.h prj.h spc.h sph.h spx.h \
          tab.h wcs.h wcsconfig.h wcserr.h wcsfix.h wcshdr.h wcslib.h \
          wcsmath.h wcsprintf.h wcstrig.h wcsunits.h wcsutil.h
@


4.7.1.4
log
@cleaner removes .gdb_history.
@
text
@d30 1
a30 1
# $Id: GNUmakefile,v 4.7.1.3 2011/08/09 08:21:05 cal103 Exp cal103 $
a209 1
	-  $(RM) .gdb_history
@


4.7.1.5
log
@Modified the run_% pattern rule so that non-graphics test simply report
"PASS" if they succeed when run in non-interactive mode.
@
text
@d16 1
a16 2
#              executed in batch mode, and non-graphical tests only report
#              "PASS" on success.  Use
d20 1
a20 1
#              to run them interactively with full diagnostic output.
d30 1
a30 1
# $Id: GNUmakefile,v 4.7.1.4 2011/08/11 04:25:28 cal103 Exp cal103 $
d67 2
a68 2
TEST_N := tlin tlog tprj1 tsph tsphdpa tspx ttab1 twcs twcssub tpih1 tbth1 \
          tfitshdr tunits twcsfix
d70 1
a70 4
# Test programs that require CFITSIO (they don't need PGPLOT).
TEST_C := twcstab twcshdr

# Test programs that require PGPLOT but not PGSBOX.
a72 3
# Test programs that require PGPLOT and PGSBOX.
TEST_B := tpih2

d74 1
a74 1
TEST_X := tsphdpa twcshdr
d77 5
d83 1
a83 1
# Add test programs that require CFITSIO if we have it.
d86 1
a86 1
  TESTS += $(TEST_C)
a89 10
# Add test programs that require PGPLOT if we have it.
ifneq "$(PGPLOTINC)" ""
ifneq "$(PGPLOTLIB)" ""
  TESTS += $(TEST_P) $(TEST_B)
endif
endif

# Remove tests that aren't automatically exercised.
TESTS := $(filter-out $(TEST_X), $(TESTS))

d135 1
a135 1
	 @@ if [ '$(MODE)' = interactive -o '$(VALGRIND)' ] ; then \
d140 1
a140 1
	     else \
d145 5
a149 28
	       echo N | ./$< ; \
	     elif [ '$(filter $<, $(TEST_N) $(TEST_C))' ] ; then \
	       if [ '$<' = tunits ] ; then \
	         ./$< < test/units_test > $<.out 2>&1 ; \
	       else \
	         ./$< < /dev/null > $<.out 2>&1 ; \
	       fi ; \
	       if grep 'PASS:' $<.out > /dev/null ; then \
	         head -2 $<.out ; \
	         grep 'PASS:' $<.out ; \
	       elif [ -f 'test/$<.out' ] ; then \
	         trap 'rm -f run_test.tmp' 0 1 2 3 15 ; \
	         sed -e 's/0x[0-9a-f][0-9a-f][0-9a-f]*/0x<address>/g' $<.out > \
	           run_test.tmp ; \
	         mv -f run_test.tmp $<.out ; \
	         if cmp -s $<.out test/$<.out ; then \
	           head -2 $<.out ; \
	           echo 'PASS: Output agrees with ./test/$<.out' ; \
	         else \
	           cat $<.out ; \
	           echo '' ; \
	           echo 'FAIL: Output disagrees with ./test/$<.out' ; \
	         fi ; \
	       else \
	         cat $<.out ; \
	       fi ; \
	     else \
	       ./$< < /dev/null 2>&1 ; \
d207 1
a207 1
	- $(RM) -r *.o *.i a.out t*.out core *.dSYM $(EXTRA_CLEAN)
d223 1
a223 1
tests : $(TESTS) $(TEST_X)
d225 1
a225 1
$(TEST_N) : % : test/%.c $(WCSLIB)
@


4.7.1.6
log
@Make it clearer what the particular file is that the test output is
compared with.
@
text
@d31 1
a31 1
# $Id: GNUmakefile,v 4.7.1.5 2011/08/12 08:50:56 cal103 Exp cal103 $
d174 1
a174 1
	           echo 'PASS: Output agrees with C/test/$<.out' ; \
d178 1
a178 1
	           echo 'FAIL: Output disagrees with C/test/$<.out' ; \
@


4.6
log
@WCSLIB 4.6
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 4.6 and its test suite.
d30 1
a30 1
# $Id: GNUmakefile,v 4.5.1.8 2010/11/16 04:28:41 cal103 Exp cal103 $
d90 1
a90 1
LIBPGSBOX := ../pgsbox/libpgsbox-$V.a
d107 1
a107 1
$(LIBWCS)(%.o) : %.c
d110 1
a110 1
	   $(AR) r $(LIBWCS) $%
d130 1
d138 1
a138 1
	       ./$< < test/units_test ; \
d140 1
a140 1
	       ./$< ; \
d144 1
a144 1
	       echo N | ./$< ; \
d146 1
a146 1
	       ./$< < test/units_test ; \
d148 1
a148 1
	       ./$< < /dev/null 2>&1 ; \
d161 1
a161 1
lib : $(FLEXMODS) $(LIBWCS) $(SHRLIB)
d163 1
a163 1
$(LIBWCS) : $(MODULES:%=$(LIBWCS)(%))
d174 1
a174 1
	     $(SHRLD) -o $@@ *.o && \
d183 3
a185 3
	   $(INSTALL) -m 644 $(LIBWCS) $(LIBDIR)
	   $(RANLIB) $(LIBDIR)/$(LIBWCS)
	-  if [ -L "$(LIBDIR)/libwcs.a" ] ; then \
d188 1
a188 1
	   $(LN_S) $(LIBWCS) $(LIBDIR)/libwcs.a
d192 1
a192 1
	       if [ -L "$(LIBDIR)/$(SHRLN)" ] ; then \
d203 1
a203 1
	   $(LN_S) $(WCSLIBV) $(INCLINK)
d223 1
a223 1
$(TEST_N) $(TEST_X) : % : test/%.c $(LIBWCS)
d225 1
a225 1
	   $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@@ $< $(LIBWCS) $(LIBS)
d228 1
a228 1
$(TEST_P) : % : test/%.c $(LIBWCS)
d231 1
a231 1
	   $(LD) $(LDFLAGS) -o $@@ $@@.o $(PGPLOTLIB) $(LIBWCS) $(LIBS)
d234 1
a234 1
tpih2 : test/tpih2.c $(LIBPGSBOX) $(LIBWCS)
d237 1
a237 1
	   $(LD) $(LDFLAGS) -o $@@ $@@.o $(LIBPGSBOX) $(PGPLOTLIB) $(LIBWCS) \
d241 1
a241 1
tfitshdr_cfitsio tpih1_cfitsio tbth1_cfitsio : %_cfitsio : test/%.c $(LIBWCS)
d244 1
a244 1
	     $(LDFLAGS) -o $@@ $< $(CFITSIOLIB) $(LIBWCS) $(LIBS)
d247 1
a247 1
tpih2_cfitsio : test/tpih2.c $(LIBPGSBOX) $(LIBWCS)
d251 2
a252 2
	   $(LD) $(LDFLAGS) -o $@@ $@@.o $(LIBPGSBOX) $(PGPLOTLIB) \
	     $(CFITSIOLIB) $(LIBWCS) $(FLIBS) $(LIBS)
d255 1
a255 1
twcstab : test/twcstab.c $(GETWCSTAB) $(LIBWCS)
d258 1
a258 1
	     $(GETWCSTAB) $(CFITSIOLIB) $(LIBWCS) $(LIBS)
d261 1
a261 1
twcshdr : test/twcshdr.c $(GETWCSTAB) $(LIBWCS)
d264 1
a264 1
	     $(GETWCSTAB) $(CFITSIOLIB) $(LIBWCS) $(LIBS)
d271 1
a271 1
$(LIBPGSBOX) :
d298 13
a310 12
$(LIBWCS)(cel.o)      : cel.h prj.h sph.h wcsmath.h wcstrig.h
$(LIBWCS)(fitshdr.o)  : wcsconfig.h fitshdr.h
$(LIBWCS)(lin.o)      : lin.h
$(LIBWCS)(log.o)      : log.h
$(LIBWCS)(prj.o)      : prj.h wcsmath.h wcstrig.h
$(LIBWCS)(spc.o)      : spc.h spx.h wcsmath.h wcstrig.h
$(LIBWCS)(sph.o)      : sph.h wcstrig.h
$(LIBWCS)(spx.o)      : spx.h
$(LIBWCS)(tab.o)      : tab.h wcsmath.h
$(LIBWCS)(wcs.o)      : cel.h lin.h log.h prj.h spc.h sph.h spx.h tab.h \
                        wcs.h wcsmath.h wcstrig.h wcsunits.h wcsutil.h
$(LIBWCS)(wcsbth.o)   : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h wcshdr.h \
d312 1
a312 1
$(LIBWCS)(wcsfix.o)   : cel.h lin.h prj.h spc.h sph.h spx.h tab.h wcs.h \
d314 1
a314 1
$(LIBWCS)(wcshdr.o)   : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h wcshdr.h \
d316 1
a316 1
$(LIBWCS)(wcspih.o)   : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h wcshdr.h \
d318 6
a323 5
$(LIBWCS)(wcstrig.o)  : wcsmath.h wcstrig.h
$(LIBWCS)(wcsulex.o)  : wcsmath.h wcsunits.h
$(LIBWCS)(wcsunits.o) : wcsunits.h
$(LIBWCS)(wcsutil.o)  : wcsutil.h
$(LIBWCS)(wcsutrn.o)  : wcsunits.h
d333 1
a333 1
                      spx.h tab.h wcs.h wcsfix.h wcshdr.h
@


4.6.1.1
log
@WCSLIB 4.6 development branch.
@
text
@d30 1
a30 1
# $Id: GNUmakefile,v 4.6 2010/11/16 06:15:31 cal103 Exp $
@


4.6.1.2
log
@Bourne shell's built-in test in Solaris doesn't recognize '-L' so use
'-h' to test for the existence of a symlink.
@
text
@d30 1
a30 1
# $Id: GNUmakefile,v 4.6.1.1 2010/11/16 06:16:19 cal103 Exp cal103 $
d184 1
a184 1
	-  if [ -h "$(LIBDIR)/libwcs.a" ] ; then \
d187 1
a187 1
	-  $(LN_S) $(LIBWCS) $(LIBDIR)/libwcs.a
d191 1
a191 1
	       if [ -h "$(LIBDIR)/$(SHRLN)" ] ; then \
@


4.6.1.3
log
@Added a hook to run the test programs with valgrind.
@
text
@d30 1
a30 1
# $Id: GNUmakefile,v 4.6.1.2 2010/11/18 00:46:11 cal103 Exp cal103 $
a129 1
# Use 'make FLAVOUR=Linux run_%' to have VALGRIND defined (from flavours).
d137 1
a137 1
	       $(VALGRIND) ./$< < test/units_test ; \
d139 1
a139 1
	       $(VALGRIND) ./$< ; \
d143 1
a143 1
	       echo N | $(VALGRIND) ./$< ; \
d145 1
a145 1
	       $(VALGRIND) ./$< < test/units_test ; \
d147 1
a147 1
	       $(VALGRIND) ./$< < /dev/null 2>&1 ; \
@


4.6.1.4
log
@Respect LDFLAGS when building the shared library (patch supplied by
Sébastien Fabbro for Gentoo Linux).
@
text
@d30 1
a30 1
# $Id: GNUmakefile,v 4.6.1.3 2010/11/24 01:26:44 cal103 Exp cal103 $
d174 1
a174 1
	     $(SHRLD) $(LDFLAGS) -o $@@ *.o && \
@


4.6.1.5
log
@Updated date in copyright notice.
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 4.6
d6 17
a22 20
#   all:       Do 'make all' in each subdirectory (excluding ./doxygen).
#   check:     Do 'make check' in each subdirectory (compile and run tests).
#   tests:     Do 'make tests' in each subdirectory (compile test programs but
#              don't run them).
#   install:   Do 'make install' in each subdirectory.
#   clean:     Recursively delete intermediate files produced as part of the
#              build, e.g. object modules, core dumps, etc.
#   cleaner:   Recursively clean, and also delete test executables, test
#              input and output, and intermediates produced in compiling the
#              programmers' manual.
#   distclean (or realclean): Recursively delete all platform-dependent files
#              generated during the build, preserving only the programmers'
#              manual (which is normally provided pre-built).  It is the one
#              to use between builds for multiple platforms.
#   cleanest:  Like distclean, but deletes everything that can be regenerated
#              from the source files, including the programmers' manual, but
#              excluding 'configure'.
#   show:      Print the values of important variables used in this and the
#              other makefiles.
#   writable:  Run chmod recursively to make all sources writable.
d25 2
a26 4
#   1) If you need to make changes then preferably modify makedefs.in instead.
#
#   2) Refer also to the makefiles in subdirectories, particularly
#      C/GNUmakefile.
d30 1
a30 1
# $Id: GNUmakefile,v 4.6.1.3 2010/12/14 04:37:07 cal103 Exp cal103 $
d33 79
a111 1
include makedefs
d113 5
a117 2
.PHONY : build check chmod clean cleaner cleanest distclean install \
         realclean show tests writable
d119 10
a128 6
build :
	-@@ for DIR in $(SUBDIRS) ; do \
	     echo '' ; \
	     $(TIMER) ; \
	     $(MAKE) -k -C $$DIR build ; \
	   done
d130 2
a131 1
check tests : show
d134 16
a149 18
	 @@ for DIR in $(SUBDIRS) ; do \
	     echo '' ; \
	     $(MAKE) -i -C $$DIR cleaner ; \
	   done
	-@@ echo ''
	 @@ for DIR in $(TSTDIRS) ; do \
	     echo '' ; \
	     $(TIMER) ; \
	     $(MAKE) -k -C $$DIR $@@ ; \
	   done

install :
	 @@ for DIR in $(INSTDIR) ; do \
	     $(MAKE) -k -C $$DIR $@@ ; \
	   done
	   $(INSTALL) -m 444 wcsconfig.h wcsconfig_f77.h $(INCDIR)
	-  if [ ! -d "$(DOCDIR)" ] ; then \
	     $(INSTALL) -d -m 2775 $(DOCDIR) ; \
d151 36
a186 3
	   $(INSTALL) -m 444 -t $(DOCDIR) CHANGES COPYING* README
	-  if [ ! -d "$(PDFDIR)" ] ; then \
	     $(INSTALL) -d -m 2775 $(PDFDIR) ; \
d188 9
a196 3
	   $(INSTALL) -m 444 -t $(PDFDIR) wcslib.pdf
	-  if [ ! -d "$(HTMLDIR)/html" ] ; then \
	     $(INSTALL) -d -m 2775 $(HTMLDIR)/html ; \
d198 2
a199 3
	   $(INSTALL) -m 444 -t $(HTMLDIR)/html html/*
	   if [ ! -d "$(LIBDIR)/pkgconfig" ] ; then \
	     $(INSTALL) -d -m 2775 $(LIBDIR)/pkgconfig ; \
d201 17
a217 1
	   $(INSTALL) -m 444 wcslib.pc $(LIBDIR)/pkgconfig/wcslib.pc
d219 1
a219 16
clean cleaner :
	   for DIR in $(SUBDIRS) doxygen ; do \
	     $(MAKE) -C $$DIR $@@ ; \
	   done

cleanest distclean realclean :
	   for DIR in $(SUBDIRS) doxygen ; do \
	     $(MAKE) -C $$DIR $@@ ; \
	   done
	-  $(RM) *.log
	-  $(RM) -r autom4te.cache autoscan.log
	-  $(RM) confdefs.h conftest.*
	-  $(RM) config.log config.status configure.lineno
	-  $(RM) makedefs wcslib.pc
	-  $(RM) wcsconfig.h wcsconfig_*.h
	-  $(RM) wcslib-*.tar.gz
d221 8
a228 4
show ::
	-@@ echo 'Subdirectories to be built...'
	-@@ echo '  SUBDIRS     := $(SUBDIRS)'
	-@@ echo '  TSTDIRS     := $(TSTDIRS)'
d230 3
d234 6
a239 2
writable :
	  chmod -R u+w .
d241 5
a245 1
GNUmakefile : makedefs ;
d247 1
a247 1
makedefs : makedefs.in config.status
d249 11
a259 2
	-@@ $(TIMER)
	   ./config.status
d261 1
a261 1
config.status : configure
d263 5
a267 1
	-@@ $(TIMER)
d269 3
a271 8
	-@@ echo "Environment variables that affect 'configure':"
	-@@ echo "  CC       = $${CC-(undefined)}"
	-@@ echo "  CFLAGS   = $${CFLAGS-(undefined)}"
	-@@ echo "  CPP      = $${CPP-(undefined)}"
	-@@ echo "  CPPFLAGS = $${CPPFLAGS-(undefined)}"
	-@@ echo "  F77      = $${F77-(undefined)}"
	-@@ echo "  FFLAGS   = $${FFLAGS-(undefined)}"
	-@@ echo "  LDFLAGS  = $${LDFLAGS-(undefined)}"
d273 1
a273 1
	   ./configure --no-create
d275 2
d278 7
a284 2
#-----------------------------------------------------------------------------
# These are for code management.
d286 4
a289 1
.PHONY : dist
d291 3
a293 36
dist :
	   $(MAKE) -C doxygen cleanest build
	   $(MAKE) distclean
	-@@ echo $(WCSLIBV)/C/RCS        >  wcslib.X
	-@@ echo $(WCSLIBV)/C/flexed/RCS >> wcslib.X
	-@@ echo $(WCSLIBV)/C/test/RCS   >> wcslib.X
	-@@ echo $(WCSLIBV)/doxygen/RCS  >> wcslib.X
	-@@ echo $(WCSLIBV)/Fortran/RCS  >> wcslib.X
	-@@ echo $(WCSLIBV)/Fortran/test/RCS >> wcslib.X
	-@@ echo $(WCSLIBV)/makedefs     >> wcslib.X
	-@@ echo $(WCSLIBV)/other        >> wcslib.X
	-@@ echo $(WCSLIBV)/pgsbox/RCS   >> wcslib.X
	-@@ echo $(WCSLIBV)/RCS          >> wcslib.X
	-@@ echo $(WCSLIBV)/TODO         >> wcslib.X
	-@@ echo $(WCSLIBV)/utils/RCS    >> wcslib.X
	-@@ echo $(WCSLIBV)/wcslib.T     >> wcslib.X
	-@@ echo $(WCSLIBV)/wcslib.X     >> wcslib.X
	   rm -f $(WCSLIBV).tar.bz2
	   tar cf - -C .. -X wcslib.X $(WCSLIBV) | \
	     tar t | \
	     grep -v '/$$' | \
	     sort > wcslib.T
	   rm -f wcslib.X
	   tar cvf $(WCSLIBV).tar -C .. -T wcslib.T
	   rm -f wcslib.T
	   bzip2 $(WCSLIBV).tar
	   chmod 444 $(WCSLIBV).tar.bz2

install_dist :
	   cp -fp $(WCSLIBV).tar.bz2 /nfs/ftp/software/wcslib/
	   mv -f  $(WCSLIBV).tar.bz2 ../wcslib-releases/
	   (cd /nfs/ftp/software/wcslib/ && \
	     rm -f wcslib.tar.bz2 && \
	     ln -s $(WCSLIBV).tar.bz2 wcslib.tar.bz2)
	   cp -fp CHANGES wcslib.pdf ~/public_html/WCS/
	   rsync --archive --delete html/ ~/public_html/WCS/wcslib/
d295 2
a296 4
configure : configure.ac
	-@@ echo ''
	-@@ $(TIMER)
	   autoconf
d298 57
a354 3
# Code development overrides must be included specifically before 'configure'
# generates makedefs.
-include flavours
@


4.6.1.6
log
@Updated date in copyright notice.
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 4.6 and its test suite.
d6 20
a25 1
#   build:     Build the library.
d27 2
a28 9
#   clean:     Delete intermediate object files.
#
#   cleaner:   clean, and also delete the test executables.
#
#   cleanest (distclean or realclean): cleaner, and also delete the object
#              library the C source files generated by 'flex'.
#
#   check (or test): Compile and run the test programs.  By default they are
#              executed in batch mode; use
d30 2
a31 9
#                gmake MODE=interactive check
#
#              to run them interactively.
#
#   tests:     Compile the test programs (but don't run them).
#
# Notes:
#   1) If you need to make changes then preferably modify ../makedefs.in
#      instead and re-run configure.
d35 1
a35 1
# $Id: GNUmakefile,v 4.6.1.4 2010/12/13 06:00:40 cal103 Exp cal103 $
d38 1
a38 79
include ../makedefs

FLEXMODS := $(patsubst %.l,%.c,$(wildcard *.l))
MODULES  := $(sort \
              $(patsubst %.c,%.o, \
                $(filter-out getwcstab.c,$(wildcard *.c)) $(FLEXMODS)))

ifeq "$(WCSTRIG)" "MACRO"
  CPPFLAGS += -DWCSTRIG_MACRO
  MODULES  := $(filter-out wcstrig.o, $(MODULES))
else
  ifeq "$(WCSTRIG)" "NATIVE"
    MODULES := $(filter-out wcstrig.o, $(MODULES))
  endif
endif

# For building the sharable library.
PICLIB := libwcs-PIC.a

CPPFLAGS += -I. -I..

vpath %.c  test
vpath %.h  ..
vpath %.in ..


# For building and exercising the test suite
# ------------------------------------------
# Signals tfitshdr to use wcshdr().
ifneq "$(DO_WCSHDR)" ""
  CPPFLAGS += -DDO_WCSHDR
endif

# Test programs that don't require PGPLOT.
TEST_N := tlin tlog tprj1 tsph tspx ttab1 twcs twcssub tpih1 tbth1 tfitshdr \
          tunits twcsfix

# Test programs that do require PGPLOT.
TEST_P := tspc tprj2 tcel1 tcel2 ttab2 ttab3 twcsmix

# Test programs that aren't automatically exercised.
TEST_X := tsphdpa

TESTS  := $(TEST_N)
ifneq "$(PGPLOTINC)" ""
ifneq "$(PGPLOTLIB)" ""
  TESTS   += $(TEST_P) tpih2
endif
endif

# Test programs that require CFITSIO.
ifneq "$(CFITSIOINC)" ""
ifneq "$(CFITSIOLIB)" ""
  TESTS  += twcstab twcshdr
endif
endif

LIBPGSBOX := ../pgsbox/libpgsbox-$V.a

# Pattern rules
#--------------

ifeq "$(FLEX)" "flex"
  %.c : %.l
	-@@ echo ''
	-@@ $(RM) $@@
	   $(FLEX) $(FLFLAGS) -t $< | sed -e 's/^[	 ]*#/#/' > $@@
else
  %.c : %.l
	-@@ echo ''
	-@@ $(RM) $@@
	   cp flexed/$@@ .
endif

$(LIBWCS)(%.o) : %.c
	-@@ echo ''
	   $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
	   $(AR) r $(LIBWCS) $%
	-@@ $(RM) $%
d40 2
a41 5
$(PICLIB)(%.o) : %.c
	-@@ echo ''
	   $(CC) $(CPPFLAGS) $(CFLAGS) $(SHRFLAGS) -c $<
	   $(AR) r $(PICLIB) $%
	-@@ $(RM) $%
d43 6
a48 10
%.i : %.c
	-@@ echo ''
	-@@ $(RM) $@@
	   $(CPP) $(CPPFLAGS) $(CFLAGS) $< > $@@

%.d : %.c
	-@@ echo ''
	-@@ $(CPP) $(CPPFLAGS) $(CFLAGS) $< | \
	   sed -n -e 's|^# 1 "\([^/].*\.h\)".*|\1|p' | \
	   sort -u
d50 1
a50 2
# Use 'make FLAVOUR=Linux run_%' to have VALGRIND defined (from flavours).
run_% : %
d53 18
a70 16
	 @@ if [ '$(MODE)' = interactive ] ; then \
	     printf 'Press <CR> to run $<: ' ; \
	     read DUMMY ; \
	     if [ '$<' = tunits ] ; then \
	       $(VALGRIND) ./$< < test/units_test ; \
	     elif [ '$<' != twcshdr ] ; then \
	       $(VALGRIND) ./$< ; \
	     fi ; \
	   else \
	     if [ '$<' = tcel2 ] ; then \
	       echo N | $(VALGRIND) ./$< ; \
	     elif [ '$<' = tunits ] ; then \
	       $(VALGRIND) ./$< < test/units_test ; \
	     elif [ '$<' != twcshdr ] ; then \
	       $(VALGRIND) ./$< < /dev/null 2>&1 ; \
	     fi ; \
d72 3
a74 36
	-@@ echo ''

# Static and static pattern rules
#--------------------------------

.PHONY : build check clean cleaner cleanest distclean install lib realclean \
         run_% test tests

build : lib

lib : $(FLEXMODS) $(LIBWCS) $(SHRLIB)

$(LIBWCS) : $(MODULES:%=$(LIBWCS)(%))
	-@@ echo ''
	   $(RANLIB) $@@

$(SHRLIB) : $(PICLIB)
	-@@ echo ''
	-@@ $(RM) -r tmp
	   mkdir tmp && \
	     cd tmp && \
	     trap 'cd .. ; $(RM) -r tmp' 0 1 2 3 15 ; \
	     $(AR) x ../$(PICLIB) && \
	     $(SHRLD) $(LDFLAGS) -o $@@ *.o && \
	     mv $@@ ..

$(PICLIB) : $(MODULES:%.o=$(PICLIB)(%.o)) ;

install : build
	-  if [ ! -d "$(LIBDIR)" ] ; then \
	     $(INSTALL) -d -m 2775 $(LIBDIR) ; \
	   fi
	   $(INSTALL) -m 644 $(LIBWCS) $(LIBDIR)
	   $(RANLIB) $(LIBDIR)/$(LIBWCS)
	-  if [ -h "$(LIBDIR)/libwcs.a" ] ; then \
	     $(RM) $(LIBDIR)/libwcs.a ; \
d76 3
a78 9
	-  $(LN_S) $(LIBWCS) $(LIBDIR)/libwcs.a
	-  if [ "$(SHRLIB)" != "" ] ; then \
	     $(INSTALL) -m 644 $(SHRLIB) $(LIBDIR) ; \
	     if [ "$(SHRLN)" != "" ] ; then \
	       if [ -h "$(LIBDIR)/$(SHRLN)" ] ; then \
	         $(RM) $(LIBDIR)/$(SHRLN) ; \
	       fi ; \
	       $(LN_S) $(SHRLIB) $(LIBDIR)/$(SHRLN) ; \
	     fi ; \
d80 3
a82 2
	-  if [ ! -d "$(INCDIR)" ] ; then \
	     $(INSTALL) -d -m 2775 $(INCDIR) ; \
d84 1
a84 3
	   $(INSTALL) -m 444 *.h $(INCDIR)
	   $(RM) $(INCLINK)
	   $(LN_S) $(WCSLIBV) $(INCLINK)
d86 16
a101 2
clean :
	- $(RM) -r *.o *.i a.out core *.dSYM $(EXTRA_CLEAN)
d103 5
a107 10
cleaner : clean
	-  $(RM) $(TEST_N) $(TEST_X)
	-  $(RM) $(TEST_P) tpih2 twcstab twcshdr
	-  $(RM) tofits bth.fits pih.fits wcstab.fits
	-  $(RM) t*_cfitsio

cleanest distclean realclean : cleaner
	-  $(RM) ../wcsconfig.h ../wcsconfig_tests.h
	-  $(RM) fitshdr.c wcsbth.c wcspih.c wcsulex.c wcsutrn.c
	-  $(RM) $(PICLIB) libwcs-*.a libwcs.so.* libwcs.*.dylib
d109 2
a110 1
check test : tests $(TESTS:%=run_%)
d112 1
a112 1
tests : $(TESTS)
d114 1
a114 1
$(TEST_N) $(TEST_X) : % : test/%.c $(LIBWCS)
d116 2
a117 2
	   $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@@ $< $(LIBWCS) $(LIBS)
	-@@ $(RM) $@@.o
d119 1
a119 1
$(TEST_P) : % : test/%.c $(LIBWCS)
d121 1
a121 5
	   $(CC) $(CPPFLAGS) $(PGPLOTINC) $(CFLAGS) -c -o $@@.o $<
	   $(LD) $(LDFLAGS) -o $@@ $@@.o $(PGPLOTLIB) $(LIBWCS) $(LIBS)
	-@@ $(RM) $@@.o

tpih2 : test/tpih2.c $(LIBPGSBOX) $(LIBWCS)
d123 8
a130 6
	   $(CC) $(CPPFLAGS) -I../pgsbox $(PGPLOTINC) $(CFLAGS) -c -o $@@.o $<
	   $(LD) $(LDFLAGS) -o $@@ $@@.o $(LIBPGSBOX) $(PGPLOTLIB) $(LIBWCS) \
	     $(FLIBS) $(LIBS)
	-@@ $(RM) $@@.o

tfitshdr_cfitsio tpih1_cfitsio tbth1_cfitsio : %_cfitsio : test/%.c $(LIBWCS)
d132 1
a132 3
	   $(CC) -DDO_CFITSIO $(CPPFLAGS) $(CFITSIOINC) $(CFLAGS) \
	     $(LDFLAGS) -o $@@ $< $(CFITSIOLIB) $(LIBWCS) $(LIBS)
	-@@ $(RM) $@@.o
a133 7
tpih2_cfitsio : test/tpih2.c $(LIBPGSBOX) $(LIBWCS)
	-@@ echo ''
	   $(CC) -DDO_CFITSIO $(CPPFLAGS) -I../pgsbox $(PGPLOTINC) \
	     $(CFITSIOINC) $(CFLAGS) -c -o $@@.o $<
	   $(LD) $(LDFLAGS) -o $@@ $@@.o $(LIBPGSBOX) $(PGPLOTLIB) \
	     $(CFITSIOLIB) $(LIBWCS) $(FLIBS) $(LIBS)
	-@@ $(RM) $@@.o
d135 2
a136 5
twcstab : test/twcstab.c $(GETWCSTAB) $(LIBWCS)
	-@@ echo ''
	   $(CC) $(CPPFLAGS) $(CFITSIOINC) $(CFLAGS) $(LDFLAGS) -o $@@ $< \
	     $(GETWCSTAB) $(CFITSIOLIB) $(LIBWCS) $(LIBS)
	-@@ $(RM) $@@.o
d138 1
a138 5
twcshdr : test/twcshdr.c $(GETWCSTAB) $(LIBWCS)
	-@@ echo ''
	   $(CC) $(CPPFLAGS) $(CFITSIOINC) $(CFLAGS) $(LDFLAGS) -o $@@ $< \
	     $(GETWCSTAB) $(CFITSIOLIB) $(LIBWCS) $(LIBS)
	-@@ $(RM) $@@.o
d140 36
a175 3
getwcstab.o : getwcstab.c getwcstab.h
	-@@ echo ''
	   $(CC) $(CPPFLAGS) $(CFLAGS) $(CFITSIOINC) -c $<
d177 1
a177 1
$(LIBPGSBOX) :
d179 2
a180 24
	   $(MAKE) -C ../pgsbox lib

tofits : test/tofits.c
	   $(CC) $(CPPFLAGS) $(CFLAGS) -o $@@ $<

pih.fits : test/pih.keyrec tofits
	   ./tofits < $< > $@@

bth.fits : test/bth.keyrec tofits
	   ./tofits < $< > $@@

GNUmakefile : ../makedefs ;

../makedefs ../wcsconfig.h ../wcsconfig_tests.h : makedefs.in wcsconfig.h.in \
    wcsconfig_tests.h.in ../config.status
	-@@ $(RM) ../wcsconfig.h ../wcsconfig_tests.h
	   cd .. && ./config.status

show ::
	-@@ -@@ echo '  FLEXMODS    := $(FLEXMODS)'
	-@@ -@@ echo '  MODULES     := $(MODULES)'

# Dependencies
#-------------
d182 3
a184 57
$(LIBWCS)(cel.o)      : cel.h prj.h sph.h wcsmath.h wcstrig.h
$(LIBWCS)(fitshdr.o)  : wcsconfig.h fitshdr.h
$(LIBWCS)(lin.o)      : lin.h
$(LIBWCS)(log.o)      : log.h
$(LIBWCS)(prj.o)      : prj.h wcsmath.h wcstrig.h
$(LIBWCS)(spc.o)      : spc.h spx.h wcsmath.h wcstrig.h
$(LIBWCS)(sph.o)      : sph.h wcstrig.h
$(LIBWCS)(spx.o)      : spx.h
$(LIBWCS)(tab.o)      : tab.h wcsmath.h
$(LIBWCS)(wcs.o)      : cel.h lin.h log.h prj.h spc.h sph.h spx.h tab.h \
                        wcs.h wcsmath.h wcstrig.h wcsunits.h wcsutil.h
$(LIBWCS)(wcsbth.o)   : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h wcshdr.h \
                        wcsmath.h
$(LIBWCS)(wcsfix.o)   : cel.h lin.h prj.h spc.h sph.h spx.h tab.h wcs.h \
                        wcsfix.h wcsmath.h wcsunits.h
$(LIBWCS)(wcshdr.o)   : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h wcshdr.h \
                        wcsutil.h
$(LIBWCS)(wcspih.o)   : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h wcshdr.h \
                        wcsmath.h
$(LIBWCS)(wcstrig.o)  : wcsmath.h wcstrig.h
$(LIBWCS)(wcsulex.o)  : wcsmath.h wcsunits.h
$(LIBWCS)(wcsunits.o) : wcsunits.h
$(LIBWCS)(wcsutil.o)  : wcsutil.h
$(LIBWCS)(wcsutrn.o)  : wcsunits.h

tbth1 tbth1_cfitsio : cel.h wcsconfig.h wcsconfig_tests.h lin.h prj.h spc.h \
                      spx.h tab.h wcs.h wcsfix.h wcshdr.h
tcel1   : cel.h prj.h
tcel2   : cel.h prj.h
tfitshdr tfitshdr_cfitsio : wcsconfig.h wcsconfig_tests.h fitshdr.h
tlin    : lin.h
tlog    : log.h
tpih1 tpih1_cfitsio : cel.h wcsconfig.h wcsconfig_tests.h lin.h prj.h spc.h \
                      spx.h tab.h wcs.h wcsfix.h wcshdr.h
tpih2 tpih2_cfitsio : cel.h wcsconfig.h wcsconfig_tests.h lin.h prj.h spc.h \
                      spx.h tab.h wcs.h wcshdr.h
tprj1   : prj.h wcstrig.h
tprj2   : prj.h
tspc    : spc.h spx.h wcstrig.h
tsph    : sph.h wcstrig.h
tsphdpa : sph.h wcstrig.h
tspx    : spx.h
ttab1   : tab.h
ttab2   : tab.h
ttab3   : prj.h tab.h
tunits  : wcsunits.h
twcs    : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h
twcsfix : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h wcsfix.h wcsunits.h
twcshdr : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h wcshdr.h
twcsmix : cel.h lin.h prj.h spc.h sph.h spx.h tab.h wcs.h
twcssub : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h
twcstab : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h wcshdr.h

run_tbth1 run_tbth1_cfitsio : bth.fits
run_tfitshdr run_tfitshdr_cfitsio : pih.fits
run_tpih1 run_tpih1_cfitsio : pih.fits
run_tpih2 run_tpih2_cfitsio : pih.fits
@


4.6.1.7
log
@LIBPGSBOX -> PGSBOXLIB.
@
text
@d30 1
a30 1
# $Id: GNUmakefile,v 4.6.1.6 2011/01/14 06:33:16 cal103 Exp cal103 $
d90 1
a90 1
PGSBOXLIB := ../pgsbox/libpgsbox-$V.a
d234 1
a234 1
tpih2 : test/tpih2.c $(PGSBOXLIB) $(LIBWCS)
d237 1
a237 1
	   $(LD) $(LDFLAGS) -o $@@ $@@.o $(PGSBOXLIB) $(PGPLOTLIB) $(LIBWCS) \
d247 1
a247 1
tpih2_cfitsio : test/tpih2.c $(PGSBOXLIB) $(LIBWCS)
d251 1
a251 1
	   $(LD) $(LDFLAGS) -o $@@ $@@.o $(PGSBOXLIB) $(PGPLOTLIB) \
d271 1
a271 1
$(PGSBOXLIB) :
@


4.6.1.8
log
@LIBWCS -> WCSLIB.
@
text
@d30 1
a30 1
# $Id: GNUmakefile,v 4.6.1.7 2011/01/18 03:12:19 cal103 Exp cal103 $
d107 1
a107 1
$(WCSLIB)(%.o) : %.c
d110 1
a110 1
	   $(AR) r $(WCSLIB) $%
d161 1
a161 1
lib : $(FLEXMODS) $(WCSLIB) $(SHRLIB)
d163 1
a163 1
$(WCSLIB) : $(MODULES:%=$(WCSLIB)(%))
d183 2
a184 2
	   $(INSTALL) -m 644 $(WCSLIB) $(LIBDIR)
	   $(RANLIB) $(LIBDIR)/$(WCSLIB)
d188 1
a188 1
	-  $(LN_S) $(WCSLIB) $(LIBDIR)/libwcs.a
d223 1
a223 1
$(TEST_N) $(TEST_X) : % : test/%.c $(WCSLIB)
d225 1
a225 1
	   $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@@ $< $(WCSLIB) $(LIBS)
d228 1
a228 1
$(TEST_P) : % : test/%.c $(WCSLIB)
d231 1
a231 1
	   $(LD) $(LDFLAGS) -o $@@ $@@.o $(PGPLOTLIB) $(WCSLIB) $(LIBS)
d234 1
a234 1
tpih2 : test/tpih2.c $(PGSBOXLIB) $(WCSLIB)
d237 1
a237 1
	   $(LD) $(LDFLAGS) -o $@@ $@@.o $(PGSBOXLIB) $(PGPLOTLIB) $(WCSLIB) \
d241 1
a241 1
tfitshdr_cfitsio tpih1_cfitsio tbth1_cfitsio : %_cfitsio : test/%.c $(WCSLIB)
d244 1
a244 1
	     $(LDFLAGS) -o $@@ $< $(CFITSIOLIB) $(WCSLIB) $(LIBS)
d247 1
a247 1
tpih2_cfitsio : test/tpih2.c $(PGSBOXLIB) $(WCSLIB)
d252 1
a252 1
	     $(CFITSIOLIB) $(WCSLIB) $(FLIBS) $(LIBS)
d255 1
a255 1
twcstab : test/twcstab.c $(GETWCSTAB) $(WCSLIB)
d258 1
a258 1
	     $(GETWCSTAB) $(CFITSIOLIB) $(WCSLIB) $(LIBS)
d261 1
a261 1
twcshdr : test/twcshdr.c $(GETWCSTAB) $(WCSLIB)
d264 1
a264 1
	     $(GETWCSTAB) $(CFITSIOLIB) $(WCSLIB) $(LIBS)
d298 10
a307 10
$(WCSLIB)(cel.o)      : cel.h prj.h sph.h wcsmath.h wcstrig.h
$(WCSLIB)(fitshdr.o)  : wcsconfig.h fitshdr.h
$(WCSLIB)(lin.o)      : lin.h
$(WCSLIB)(log.o)      : log.h
$(WCSLIB)(prj.o)      : prj.h wcsmath.h wcstrig.h
$(WCSLIB)(spc.o)      : spc.h spx.h wcsmath.h wcstrig.h
$(WCSLIB)(sph.o)      : sph.h wcstrig.h
$(WCSLIB)(spx.o)      : spx.h
$(WCSLIB)(tab.o)      : tab.h wcsmath.h
$(WCSLIB)(wcs.o)      : cel.h lin.h log.h prj.h spc.h sph.h spx.h tab.h \
d309 1
a309 1
$(WCSLIB)(wcsbth.o)   : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h wcshdr.h \
d311 1
a311 1
$(WCSLIB)(wcsfix.o)   : cel.h lin.h prj.h spc.h sph.h spx.h tab.h wcs.h \
d313 1
a313 1
$(WCSLIB)(wcshdr.o)   : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h wcshdr.h \
d315 1
a315 1
$(WCSLIB)(wcspih.o)   : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h wcshdr.h \
d317 5
a321 5
$(WCSLIB)(wcstrig.o)  : wcsmath.h wcstrig.h
$(WCSLIB)(wcsulex.o)  : wcsmath.h wcsunits.h
$(WCSLIB)(wcsunits.o) : wcsunits.h
$(WCSLIB)(wcsutil.o)  : wcsutil.h
$(WCSLIB)(wcsutrn.o)  : wcsunits.h
@


4.6.1.9
log
@Abbreviated version number used for installed library and headers.
@
text
@d30 1
a30 1
# $Id: GNUmakefile,v 4.6.1.8 2011/01/18 03:22:04 cal103 Exp cal103 $
d90 1
a90 1
PGSBOXLIB := ../pgsbox/libpgsbox-$(LIBVER).a
d203 1
a203 1
	   $(LN_S) $(notdir $(INCDIR)) $(INCLINK)
@


4.6.1.10
log
@Added dependencies on wcsprintf.h.
@
text
@d30 1
a30 1
# $Id: GNUmakefile,v 4.6.1.9 2011/01/18 03:55:45 cal103 Exp cal103 $
d298 1
a298 1
$(WCSLIB)(cel.o)      : cel.h prj.h sph.h wcsmath.h wcsprintf.h wcstrig.h
d300 1
a300 1
$(WCSLIB)(lin.o)      : lin.h wcsprintf.h
d302 2
a303 2
$(WCSLIB)(prj.o)      : prj.h wcsmath.h wcsprintf.h wcstrig.h
$(WCSLIB)(spc.o)      : spc.h spx.h wcsmath.h wcsprintf.h wcstrig.h
d306 1
a306 1
$(WCSLIB)(tab.o)      : tab.h wcsmath.h wcsprintf.h
d308 1
a308 2
                        wcs.h wcsmath.h wcstrig.h wcsprintf.h wcsunits.h \
                        wcsutil.h
a316 1
$(WCSLIB)(wcsprintf.o): wcsprintf.h
d331 1
a331 1
                      spx.h tab.h wcs.h wcsfix.h wcshdr.h wcsprintf.h
@


4.5
log
@WCSLIB 4.5
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 4.5 and its test suite.
d30 1
a30 1
# $Id: GNUmakefile,v 4.4.1.7 2010/07/15 04:37:52 cal103 Exp cal103 $
d35 4
a38 18
MODULES := cel.o \
           fitshdr.o \
           lin.o \
           log.o \
           prj.o \
           spc.o \
           sph.o \
           spx.o \
           tab.o \
           wcs.o \
           wcsbth.o \
           wcsfix.o \
           wcshdr.o \
           wcspih.o \
           wcsulex.o  \
           wcsunits.o \
           wcsutil.o \
           wcsutrn.o
d42 1
d44 2
a45 2
  ifneq "$(WCSTRIG)" "NATIVE"
    MODULES += wcstrig.o
d49 2
a50 4
# Build the sharable library?
ifneq "$(SHRLIB)" ""
  PICLIB := libwcs-PIC.a
endif
d73 3
d90 1
a90 1
PGSBOXLIB := ../pgsbox/libpgsbox-$V.a
d115 1
a115 1
	   $(CC) $(CPPFLAGS) $(SHRFLAGS) -c $<
d160 1
a160 1
lib : fitshdr.c wcsbth.c wcspih.c wcsulex.c wcsutrn.c $(LIBWCS) $(SHRLIB)
d169 6
a174 3
	   mkdir tmp
	   cd tmp && $(AR) x ../$(PICLIB) && $(SHRLD) -o $@@ *.o && mv $@@ ..
	-  $(RM) -r tmp
d208 1
a208 1
	-  $(RM) $(TEST_N)
d216 1
a216 1
	-  $(RM) $(LIBWCS) $(PICLIB) $(SHRLIB)
d222 1
a222 1
$(TEST_N) : % : test/%.c $(LIBWCS)
d233 1
a233 1
tpih2 : test/tpih2.c $(PGSBOXLIB) $(LIBWCS)
d236 1
a236 1
	   $(LD) $(LDFLAGS) -o $@@ $@@.o $(PGSBOXLIB) $(PGPLOTLIB) $(LIBWCS) \
d246 1
a246 1
tpih2_cfitsio : test/tpih2.c $(PGSBOXLIB) $(LIBWCS)
d250 1
a250 1
	   $(LD) $(LDFLAGS) -o $@@ $@@.o $(PGSBOXLIB) $(PGPLOTLIB) \
d270 1
a270 1
$(PGSBOXLIB) :
d290 4
d337 1
@


4.5.1.1
log
@WCSLIB 4.5 development branch.
@
text
@d30 1
a30 1
# $Id: GNUmakefile,v 4.5 2010/07/16 07:01:25 cal103 Exp $
@


4.5.1.2
log
@Created a new class of test programs that are not automatically exercised
and added tsphdpa as its first member.
@
text
@d30 1
a30 1
# $Id: GNUmakefile,v 4.5.1.1 2010/07/16 07:05:31 cal103 Exp cal103 $
a87 3
# Test programs that aren't automatically exercised.
TEST_X := tsphdpa

d217 1
a217 1
	-  $(RM) $(TEST_N) $(TEST_X)
d231 1
a231 1
$(TEST_N) $(TEST_X) : % : test/%.c $(LIBWCS)
a341 1
tsphdpa : sph.h wcstrig.h
@


4.5.1.3
log
@Ensure that distclean deletes older object libraries.
@
text
@d30 1
a30 1
# $Id: GNUmakefile,v 4.5.1.2 2010/08/12 07:37:51 cal103 Exp cal103 $
d228 1
a228 1
	-  $(RM) $(PICLIB) libwcs-*.a libwcs.so.* libwcs.*.dylib
@


4.5.1.4
log
@Always define PICLIB; renamed PGSBOXLIB -> LIBPGSBOX for consistency.
@
text
@d30 1
a30 1
# $Id: GNUmakefile,v 4.5.1.3 2010/08/12 08:12:48 cal103 Exp cal103 $
d62 4
a65 2
# For building the sharable library.
PICLIB := libwcs-PIC.a
d105 1
a105 1
LIBPGSBOX := ../pgsbox/libpgsbox-$V.a
d245 1
a245 1
tpih2 : test/tpih2.c $(LIBPGSBOX) $(LIBWCS)
d248 1
a248 1
	   $(LD) $(LDFLAGS) -o $@@ $@@.o $(LIBPGSBOX) $(PGPLOTLIB) $(LIBWCS) \
d258 1
a258 1
tpih2_cfitsio : test/tpih2.c $(LIBPGSBOX) $(LIBWCS)
d262 1
a262 1
	   $(LD) $(LDFLAGS) -o $@@ $@@.o $(LIBPGSBOX) $(PGPLOTLIB) \
d282 1
a282 1
$(LIBPGSBOX) :
@


4.5.1.5
log
@SHRFLAGS now additional to CFLAGS.
@
text
@d30 1
a30 1
# $Id: GNUmakefile,v 4.5.1.4 2010/10/13 23:57:13 cal103 Exp cal103 $
d128 1
a128 1
	   $(CC) $(CPPFLAGS) $(CFLAGS) $(SHRFLAGS) -c $<
@


4.5.1.6
log
@Use $(wildcard ...) to construct MODULES; use 'trap' to handle deletion
of the tmp directory used in creating the sharable library; print the
value of MODULES in 'show'.
@
text
@d30 1
a30 1
# $Id: GNUmakefile,v 4.5.1.5 2010/10/15 05:30:13 cal103 Exp cal103 $
d35 18
a52 1
MODULES := $(patsubst %.c,%.o,$(filter-out getwcstab.c,$(wildcard *.c)))
a55 1
  MODULES  := $(filter-out wcstrig.o, $(MODULES))
d57 2
a58 2
  ifeq "$(WCSTRIG)" "NATIVE"
    MODULES := $(filter-out wcstrig.o, $(MODULES))
d182 3
a184 6
	   mkdir tmp && \
	     cd tmp && \
	     trap 'cd .. ; $(RM) -r tmp' 0 1 2 3 15 ; \
	     $(AR) x ../$(PICLIB) && \
	     $(SHRLD) -o $@@ *.o && \
	     mv $@@ ..
a299 3
show ::
	-@@ -@@ echo '  MODULES     := $(MODULES)'

@


4.5.1.7
log
@Add Flex sources to MODULES.
@
text
@d30 1
a30 1
# $Id: GNUmakefile,v 4.5.1.6 2010/11/15 06:53:31 cal103 Exp cal103 $
d35 1
a35 2
MODULES := $(patsubst %.c,%.o,$(filter-out getwcstab.c,$(wildcard *.c))) \
           $(patsubst %.l,%.o,$(wildcard *.l))
@


4.5.1.8
log
@Define and use FLEXMODS.
@
text
@d30 1
a30 1
# $Id: GNUmakefile,v 4.5.1.7 2010/11/16 04:18:48 cal103 Exp cal103 $
d35 2
a36 4
FLEXMODS := $(patsubst %.l,%.c,$(wildcard *.l))
MODULES  := $(sort \
              $(patsubst %.c,%.o, \
                $(filter-out getwcstab.c,$(wildcard *.c)) $(FLEXMODS)))
d158 1
a158 1
lib : $(FLEXMODS) $(LIBWCS) $(SHRLIB)
a288 1
	-@@ -@@ echo '  FLEXMODS    := $(FLEXMODS)'
@


4.4
log
@WCSLIB 4.4
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 4.4 and its test suite.
d12 2
a13 3
#   realclean (or cleanest): cleaner, and also delete the object library
#              the C source files generated by 'flex', and wcsconfig.h and
#              wcsconfig_test.h which are generated by 'configure'.
d30 1
a30 1
# $Id: GNUmakefile,v 4.3.1.7 2009/08/05 02:01:23 cal103 Exp cal103 $
d69 2
a70 2
vpath %.c  .:./test
vpath %.h  ..:.
d167 1
a167 1
.PHONY : build check clean cleaner cleanest install lib realclean \
d193 4
a196 2
	   $(RM) $(LIBDIR)/libwcs.a
	   $(LN_S) $(LIBDIR)/$(LIBWCS) $(LIBDIR)/libwcs.a
d200 4
a203 1
	       $(LN_S) $(LIBDIR)/$(SHRLIB) $(LIBDIR)/$(SHRLN) ; \
d211 1
a211 1
	   $(LN_S) $(INCDIR) $(INCLINK)
d214 1
a214 1
	- $(RM) *.o *.i a.out core $(EXTRA_CLEAN)
d222 1
a222 1
cleanest realclean : cleaner
@


4.4.1.1
log
@WCSLIB 4.4 development branch.
@
text
@d31 1
a31 1
# $Id: GNUmakefile,v 4.4 2009/08/06 07:41:33 cal103 Exp $
@


4.4.1.2
log
@When installing, check that $(LIBDIR)/libwcs.a and $(LIBDIR)/$(SHRLN)
are actually symbolic links before deleting and recreating them.
@
text
@d31 1
a31 1
# $Id: GNUmakefile,v 4.4.1.1 2009/08/10 08:52:49 cal103 Exp cal103 $
d194 1
a194 1
	   [ -L "$(LIBDIR)/libwcs.a" ] && $(RM) $(LIBDIR)/libwcs.a
a198 1
	       [ -L "$(LIBDIR)/$(SHRLN)" ] && $(RM) $(LIBDIR)/$(SHRLN) ; \
@


4.4.1.3
log
@Create relative symbolic links when installing libraries and include
files.
@
text
@d31 1
a31 1
# $Id: GNUmakefile,v 4.4.1.2 2009/08/11 00:17:00 cal103 Exp cal103 $
d195 1
a195 1
	   $(LN_S) $(LIBWCS) $(LIBDIR)/libwcs.a
d200 1
a200 1
	       $(LN_S) $(SHRLIB) $(LIBDIR)/$(SHRLN) ; \
d208 1
a208 1
	   $(LN_S) $(WCSLIBV) $(INCLINK)
@


4.4.1.4
log
@Recast the changes of v4.4.1.2 to use a full 'if-then-fi' construct to
avoid make treating it as an error if the symlink doesn't exist.
@
text
@d31 1
a31 1
# $Id: GNUmakefile,v 4.4.1.3 2009/08/11 00:35:47 cal103 Exp cal103 $
d194 1
a194 3
	-  if [ -L "$(LIBDIR)/libwcs.a" ] ; then \
	     $(RM) $(LIBDIR)/libwcs.a ; \
	   fi
d199 1
a199 3
	       if [ -L "$(LIBDIR)/$(SHRLN)" ] ; then \
	         $(RM) $(LIBDIR)/$(SHRLN) ; \
	       fi ; \
@


4.4.1.5
log
@Added 'distclean' (GNU standard target name) as a synonym for 'cleanest'
or 'realclean'.  'clean' recursively deletes *.dSYM (MacOSX 10.6).
@
text
@d12 3
a14 3
#   distclean (realclean or cleanest): cleaner, and also delete the object
#              library the C source files generated by 'flex', and wcsconfig.h
#              and wcsconfig_test.h which are generated by 'configure'.
d31 1
a31 1
# $Id: GNUmakefile,v 4.4.1.4 2009/08/12 23:54:01 cal103 Exp cal103 $
d168 1
a168 1
.PHONY : build check clean cleaner cleanest distclean install lib realclean \
d215 1
a215 1
	- $(RM) -r *.o *.i a.out core *.dSYM $(EXTRA_CLEAN)
d223 1
a223 1
distclean realclean cleanest : cleaner
@


4.4.1.6
log
@It is not necessary to have '.' in vpath.
@
text
@d31 1
a31 1
# $Id: GNUmakefile,v 4.4.1.5 2010/07/09 01:46:15 cal103 Exp cal103 $
d70 2
a71 2
vpath %.c  test
vpath %.h  ..
@


4.4.1.7
log
@Reworked the various clean targets.
@
text
@d12 3
a14 2
#   cleanest (distclean or realclean): cleaner, and also delete the object
#              library the C source files generated by 'flex'.
d31 1
a31 1
# $Id: GNUmakefile,v 4.4.1.6 2010/07/15 02:05:05 cal103 Exp cal103 $
d223 1
a223 1
cleanest distclean realclean : cleaner
@


4.3
log
@WCSLIB 4.3
@
text
@d2 1
a2 1
#   GNU makefile for building WCSLIB 4.3 and its test suite.
d4 3
a6 12
#   Summary of the main targets
#   ---------------------------
#      build:     Build the library.
#      clean:     Delete intermediate object files.
#      cleaner:   clean, and also delete the test executables.
#      realclean (or cleanest): cleaner, and also delete the object library
#                 the C source files generated by 'flex', and wcsconfig.h and
#                 wcsconfig_test.h which are generated by 'configure'.
#      check (or test): Compile and run the test programs.
#      tests:     Compile the test programs (but don't run them).
#      check_s:   Compile and run the scalar test programs.
#      tests_s:   Compile the scalar test programs (but don't run them).
d8 1
a8 3
#   Notes:
#      1) If you need to make changes then preferably modify ../makedefs.in
#         instead and re-run configure.
d10 22
a31 3
#   Author: Mark Calabretta, Australia Telescope National Facility
#   http://www.atnf.csiro.au/~mcalabre/index.html
#   $Id: GNUmakefile,v 4.2.1.20 2007/12/27 05:02:13 cal103 Exp cal103 $
a92 1
  TPRJ2_S := tprj2_s
d146 16
a161 6
	 @@ if [ '$<' = tcel2 ] ; then \
	     echo N | $< ; \
	   elif [ '$<' = tunits ] ; then \
	     ./$< < test/units_test ; \
	   elif [ '$<' != twcshdr ] ; then \
	     ./$< < /dev/null 2>&1 ; \
d168 2
a169 2
.PHONY : build check check_s clean cleaner cleanest install lib realclean \
         run_% test test_s tests tests_s
a204 1
	   $(INSTALL) -m 444 CHANGES $(INCDIR)/CHANGES_C
a216 1
	-  $(RM) tlin_s tprj1_s tprj2_s tsph_s
d223 1
a223 1
check : tests $(TESTS:%=run_%)
d259 1
a259 1
twcstab : test/twcstab.c test/wcstab.keyrec $(LIBWCS) $(GETWCSTAB)
d265 1
a265 1
twcshdr : test/twcshdr.c $(LIBWCS) $(GETWCSTAB)
d283 1
a283 1
	   sed '/^\*/q' $< | ./tofits > $@@
d286 1
a286 16
	   sed '/^\*/q' $< | ./tofits > $@@

check_s test_s : tests_s run_tlin_s run_tprj1_s $(TPRJ2_S:%=run_%) run_tsph_s ;

tests_s : tlin_s tprj1_s $(TPRJ2_S) tsph_s ;

tlin_s tprj1_s tsph_s : % : test_s/%.c $(LIBWCS)
	-@@ echo ''
	   $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@@ $< $(LIBWCS) $(LIBS)
	-@@ $(RM) $@@.o

tprj2_s : % : test_s/%.c $(LIBWCS)
	-@@ echo ''
	   $(CC) $(CPPFLAGS) $(PGPLOTINC) $(CFLAGS) -c -o $@@.o $<
	   $(LD) $(LDFLAGS) -o $@@ $@@.o $(PGPLOTLIB) $(LIBWCS) $(LIBS)
	-@@ $(RM) $@@.o
d293 1
a293 1
	   cd .. && config.status
d324 1
a324 1
                      spx.h tab.h wcs.h wcsfix.h wcshdr.h bth.fits
d327 1
a327 1
tfitshdr tfitshdr_cfitsio : wcsconfig.h wcsconfig_tests.h fitshdr.h pih.fits
a328 1
tlin_s  : lin.h
d331 1
a331 1
                      spx.h tab.h wcs.h wcsfix.h wcshdr.h pih.fits
d333 1
a333 1
                      spx.h tab.h wcs.h wcshdr.h pih.fits
a334 1
tprj1_s : prj.h wcstrig.h
a335 1
tprj2_s : prj.h
a337 1
tsph_s  : sph.h wcstrig.h
d349 5
@


4.3.1.1
log
@WCSLIB 4.3 development branch.
@
text
@d2 1
a2 1
#   GNU makefile for building WCSLIB 4.4 and its test suite.
d23 1
a23 1
#   $Id: GNUmakefile,v 4.3 2007/12/27 05:41:36 cal103 Exp cal103 $
@


4.3.1.2
log
@Removed rules for the scalar test programs (removed in v4.3).
@
text
@d14 2
d23 1
a23 1
#   $Id: GNUmakefile,v 4.3.1.1 2007/12/27 13:23:47 cal103 Exp cal103 $
d85 1
d151 2
a152 2
.PHONY : build check clean cleaner cleanest install lib realclean \
         run_% test tests
d201 1
d273 15
d329 1
d336 1
d338 1
d341 1
@


4.3.1.3
log
@Reworked the rules for generating the various FITS test files.
@
text
@d21 1
a21 1
#   $Id: GNUmakefile,v 4.3.1.2 2008/02/11 06:00:38 cal103 Exp cal103 $
d240 1
a240 1
twcstab : test/twcstab.c $(GETWCSTAB) $(LIBWCS)
d246 1
a246 1
twcshdr : test/twcshdr.c $(GETWCSTAB) $(LIBWCS)
d264 1
a264 1
	   tofits < $< > $@@
d267 1
a267 1
	   tofits < $< > $@@
d305 1
a305 1
                      spx.h tab.h wcs.h wcsfix.h wcshdr.h
d308 1
a308 1
tfitshdr tfitshdr_cfitsio : wcsconfig.h wcsconfig_tests.h fitshdr.h
d312 1
a312 1
                      spx.h tab.h wcs.h wcsfix.h wcshdr.h
d314 1
a314 1
                      spx.h tab.h wcs.h wcshdr.h
a329 5

run_tbth1 run_tbth1_cfitsio : bth.fits
run_tfitshdr run_tfitshdr_cfitsio : pih.fits
run_tpih1 run_tpih1_cfitsio : pih.fits
run_tpih2 run_tpih2_cfitsio : pih.fits
@


4.3.1.4
log
@Whitespace changes.
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 4.4 and its test suite.
d4 10
a13 10
# Summary of the main targets
# ---------------------------
#   build:     Build the library.
#   clean:     Delete intermediate object files.
#   cleaner:   clean, and also delete the test executables.
#   realclean (or cleanest): cleaner, and also delete the object library
#              the C source files generated by 'flex', and wcsconfig.h and
#              wcsconfig_test.h which are generated by 'configure'.
#   check (or test): Compile and run the test programs.
#   tests:     Compile the test programs (but don't run them).
d15 3
a17 3
# Notes:
#   1) If you need to make changes then preferably modify ../makedefs.in
#      instead and re-run configure.
d19 3
a21 3
# Author: Mark Calabretta, Australia Telescope National Facility
# http://www.atnf.csiro.au/~mcalabre/index.html
# $Id: GNUmakefile,v 4.3.1.3 2009/07/13 06:28:18 cal103 Exp cal103 $
@


4.3.1.5
log
@Don't rely on "." being in the PATH when running config.status or tofits.
@
text
@d21 1
a21 1
# $Id: GNUmakefile,v 4.3.1.4 2009/07/21 07:29:23 cal103 Exp cal103 $
d264 1
a264 1
	   ./tofits < $< > $@@
d267 1
a267 1
	   ./tofits < $< > $@@
d274 1
a274 1
	   cd .. && ./config.status
@


4.3.1.6
log
@CHANGES file moved to top-level directory.
@
text
@d21 1
a21 1
# $Id: GNUmakefile,v 4.3.1.5 2009/07/22 05:30:09 cal103 Exp cal103 $
d185 1
@


4.3.1.7
log
@Added 'gmake MODE=interactive check'.
@
text
@a6 1
#
a7 1
#
a8 1
#
d12 1
a12 8
#
#   check (or test): Compile and run the test programs.  By default they are
#              executed in batch mode; use
#
#                gmake MODE=interactive check
#
#              to run them interactively.
#
d21 1
a21 1
# $Id: GNUmakefile,v 4.3.1.6 2009/07/30 05:05:59 cal103 Exp cal103 $
d136 6
a141 16
	 @@ if [ '$(MODE)' = interactive ] ; then \
	     printf 'Press <CR> to run $<: ' ; \
	     read DUMMY ; \
	     if [ '$<' = tunits ] ; then \
	       ./$< < test/units_test ; \
	     elif [ '$<' != twcshdr ] ; then \
	       ./$< ; \
	     fi ; \
	   else \
	     if [ '$<' = tcel2 ] ; then \
	       echo N | ./$< ; \
	     elif [ '$<' = tunits ] ; then \
	       ./$< < test/units_test ; \
	     elif [ '$<' != twcshdr ] ; then \
	       ./$< < /dev/null 2>&1 ; \
	     fi ; \
d203 1
a203 1
check test : tests $(TESTS:%=run_%)
@


4.2
log
@WCSLIB 4.2: extensive modifications for GNU autoconf; name changed from
Makefile to GNUmakefile.
@
text
@d2 1
a2 1
#   GNU makefile for building WCSLIB 4.2.
d6 1
a6 1
#      all:       Build the library.
d10 2
a11 1
#                 and configure-generated files, config.h and GNUmakefile.
d23 1
a23 1
#   $Id: GNUmakefile,v 4.1 2005/08/30 08:23:54 cal103 Exp cal103 $
a27 2
VPATH := .:./test

d38 1
d55 14
d75 2
a76 2
TEST_N := tlin tlog tprj1 tsph tspx ttab1 twcs twcssub tpih1 tfitshdr tunits \
          twcsfix
a95 1

d101 7
a107 1
%.c : %.l
d109 3
a111 3
	   $(FLEX) $(FLFLAGS) -P$* $<
	   $(RM) $@@
	   mv -f lex.$*.c $@@
d113 1
a113 1
%.o : %.c
d116 8
d127 2
a128 1
	   $(CC) $(CPPFLAGS) $(CFLAGS) -E -o $@@ $<
d132 1
a132 1
	-@@ $(CC) $(CPPFLAGS) $(CFLAGS) -E $< | \
d142 1
a142 1
	     $< < test/units_test ; \
d144 1
a144 1
	     $< < /dev/null 2>&1 ; \
d151 1
a151 1
.PHONY : all check check_s clean cleaner cleanest install lib realclean \
d154 1
a154 1
all : show_all lib
d156 1
a156 1
lib : fitshdr.c wcspih.c wcsulex.c wcsutrn.c $(LIBWCS)
d162 1
a162 1
getwcstab.o : getwcstab.c getwcstab.h
d164 6
a169 1
	   $(CC) $(CPPFLAGS) $(CFLAGS) $(CFITSIOINC) -c $<
d171 2
a172 2
install : lib
	- if [ ! -d "$(LIBDIR)" ] ; then \
d174 12
a185 5
	  fi
	  $(INSTALL) -m 644 $(LIBWCS) $(LIBDIR)
	  $(RM) $(LIBDIR)/libwcs.a
	  $(LN_S) $(LIBDIR)/$(LIBWCS) $(LIBDIR)/libwcs.a
	- if [ ! -d "$(INCDIR)" ] ; then \
d187 5
a191 5
	  fi
	  $(INSTALL) -m 444 CHANGES $(INCDIR)/CHANGES_C
	  $(INSTALL) -m 444 *.h $(INCDIR)
	  $(RM) $(INCLINK)
	  $(LN_S) $(INCDIR) $(INCLINK)
d197 5
a201 5
	- $(RM) $(TEST_N)
	- $(RM) $(TEST_P) tpih2 twcstab twcshdr
	- $(RM) tofits test.fits wcstab.fits
	- $(RM) t*_cfitsio
	- $(RM) tlin_s tprj1_s tprj2_s tsph_s
d204 3
a206 1
	- $(RM) $(LIBWCS) config.h
d214 2
a215 2
	   $(CC) $(CPPFLAGS) -I. $(CFLAGS) $(LDFLAGS) -o $@@ $< $(LIBWCS) $(LIBS)
	   $(RM) $@@.o
d219 1
a219 1
	   $(CC) $(CPPFLAGS) -I. $(PGPLOTINC) $(CFLAGS) -c -o $@@.o $<
d221 1
a221 1
	   $(RM) $@@.o
d225 10
a234 10
	   $(CC) $(CPPFLAGS) -I. -I../pgsbox $(PGPLOTINC) $(CFLAGS) -c \
	      -o $@@.o $<
	   $(LD) $(LDFLAGS) -o $@@ $@@.o $(PGSBOXLIB) $(LIBWCS) $(PGPLOTLIB) $(LIBS)
	   $(RM) $@@.o

tfitshdr_cfitsio tpih1_cfitsio : %_cfitsio : test/%.c $(LIBWCS)
	-@@ echo ''
	   $(CC) -DDO_CFITSIO $(CPPFLAGS) -I. $(CFITSIOINC) $(CFLAGS) \
	      $(LDFLAGS) -o $@@ $< $(CFITSIOLIB) $(LIBWCS) $(LIBS)
	   $(RM) $@@.o
d238 21
a258 17
	   $(CC) -DDO_CFITSIO $(CPPFLAGS) -I. $(CFITSIOINC) $(PGPLOTINC) \
	      $(CFLAGS) -I../pgsbox -c -o $@@.o $<
	   $(LD) $(LDFLAGS) -o $@@ $@@.o $(PGSBOXLIB) $(LIBWCS) $(PGPLOTLIB) \
	      $(CFITSIOLIB) $(LIBS)
	   $(RM) $@@.o

twcstab : test/twcstab.c test/wcstab.cards getwcstab.o $(LIBWCS)
	-@@ echo ''
	   $(CC) $(CPPFLAGS) -I. $(CFITSIOINC) $(CFLAGS) \
	      $(LDFLAGS) -o $@@ $< getwcstab.o $(LIBWCS) $(CFITSIOLIB) $(LIBS)
	   $(RM) $@@.o

twcshdr : test/twcshdr.c getwcstab.o $(LIBWCS)
	-@@ echo ''
	   $(CC) $(CPPFLAGS) -I. $(CFITSIOINC) $(CFLAGS) \
	      $(LDFLAGS) -o $@@ $< getwcstab.o $(LIBWCS) $(CFITSIOLIB) $(LIBS)
	   $(RM) $@@.o
d265 4
a268 1
	$(CC) $(CPPFLAGS) -I. $(CFLAGS) -o $@@ $<
d270 2
a271 2
test.fits : test/wcs.cards tofits
	sed '/^BADCARD/q' $< | tofits > $@@
d279 2
a280 2
	   $(CC) $(CPPFLAGS) -I. $(CFLAGS) $(LDFLAGS) -o $@@ $< $(LIBWCS) $(LIBS)
	   $(RM) $@@.o
d284 1
a284 1
	   $(CC) $(CPPFLAGS) -I. $(PGPLOTINC) $(CFLAGS) -c -o $@@.o $<
d286 1
a286 1
	   $(RM) $@@.o
d290 4
a293 2
../makedefs config.h : config.h.in ../makedefs.in ../config.status
	cd .. && config.status
d299 1
a299 1
$(LIBWCS)(fitshdr.o)  : config.h fitshdr.h
d309 2
d323 2
d327 1
a327 1
tfitshdr tfitshdr_cfitsio : fitshdr.h test.fits
d331 4
a334 4
tpih1 tpih1_cfitsio : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h wcsfix.h \
                      wcshdr.h test.fits
tpih2 tpih2_cfitsio : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h wcshdr.h \
                      test.fits
@


4.2.1.1
log
@WCSLIB 4.2 development branch.
@
text
@d2 1
a2 1
#   GNU makefile for building WCSLIB 4.3.
d22 1
a22 1
#   $Id: GNUmakefile,v 4.2 2005/09/23 05:23:40 cal103 Exp cal103 $
@


4.2.1.2
log
@Don't rely on "." being in the PATH when running tests.
@
text
@d22 1
a22 1
#   $Id: GNUmakefile,v 4.2.1.1 2005/12/05 02:39:43 cal103 Exp cal103 $
d114 1
a114 1
	     ./$< < test/units_test ; \
d116 1
a116 1
	     ./$< < /dev/null 2>&1 ; \
d222 1
a222 1
	sed '/^BADCARD/q' $< | ./tofits > $@@
@


4.2.1.3
log
@Modified the flex pattern rule (a) adding "-o $@@" to set the file name
properly in the #line directives in the output file, and (b) piping the
output to a sed filter that strips off leading whitespace from preprocessor
directives (such whitespace is allowed by the ANSI standard but the OSF C
compiler for one complains about it).
@
text
@d22 1
a22 1
#   $Id: GNUmakefile,v 4.2.1.2 2005/12/05 02:42:12 cal103 Exp cal103 $
d90 3
a92 1
	   $(FLEX) $(FLFLAGS) -P$* -o $@@ -t $< | sed -e 's/^[	 ]*#/#/' > $@@
@


4.2.1.4
log
@Added wcsbth and tbth1.
@
text
@d22 1
a22 1
#   $Id: GNUmakefile,v 4.2.1.3 2005/12/15 04:59:35 cal103 Exp cal103 $
a38 1
           wcsbth.o \
d61 2
a62 2
TEST_N := tlin tlog tprj1 tsph tspx ttab1 twcs twcssub tpih1 tbth1 tfitshdr \
          tunits twcsfix
d126 1
a126 1
lib : fitshdr.c wcsbth.c wcspih.c wcsulex.c wcsutrn.c $(LIBWCS)
d157 1
a157 1
	- $(RM) tofits bth.fits pih.fits wcstab.fits
d186 1
a186 1
tfitshdr_cfitsio tpih1_cfitsio tbth1_cfitsio : %_cfitsio : test/%.c $(LIBWCS)
d219 1
a219 4
pih.fits : test/pih.cards tofits
	sed '/^BADCARD/q' $< | ./tofits > $@@

bth.fits : test/bth.cards tofits
a255 2
$(LIBWCS)(wcsbth.o)   : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h wcshdr.h \
                        wcsmath.h
a267 2
tbth1 tbth1_cfitsio : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h wcsfix.h \
                      wcshdr.h bth.fits
d270 1
a270 1
tfitshdr tfitshdr_cfitsio : fitshdr.h pih.fits
d275 1
a275 1
                      wcshdr.h pih.fits
d277 1
a277 1
                      pih.fits
@


4.2.1.5
log
@cleanest now also deletes the flex-generated C source files.
@
text
@d10 1
a10 2
#                 the C source files generated by 'flex', and config.h which
#                 is generated by 'configure'.
d22 1
a22 1
#   $Id: GNUmakefile,v 4.2.1.4 2007/06/29 01:19:09 cal103 Exp cal103 $
d163 1
a163 3
	- $(RM) config.h
	- $(RM) fitshdr.c wcsbth.c wcspih.c wcsulex.c wcsutrn.c
	- $(RM) $(LIBWCS)
@


4.2.1.6
log
@flex appears not to like a space between the -o option and its argument;
introduced GETWCSTAB to control use of getwcstab.o by twcstab and twcshdr;
the object modules associated with test programs are now deleted silently.
@
text
@d23 1
a23 1
#   $Id: GNUmakefile,v 4.2.1.5 2007/06/29 01:25:41 cal103 Exp cal103 $
d92 1
a92 2
	-@@ $(RM) $@@
	   $(FLEX) $(FLFLAGS) -t -o$@@ -P$* $< | sed -e 's/^[	 ]*#/#/' > $@@
d175 1
a175 1
	-@@ $(RM) $@@.o
d181 1
a181 1
	-@@ $(RM) $@@.o
d188 1
a188 1
	-@@ $(RM) $@@.o
d194 1
a194 1
	-@@ $(RM) $@@.o
d202 1
a202 1
	-@@ $(RM) $@@.o
d204 1
a204 1
twcstab : test/twcstab.c test/wcstab.cards $(LIBWCS) $(GETWCSTAB)
d207 2
a208 2
	      $(LDFLAGS) -o $@@ $< $(LIBWCS) $(GETWCSTAB) $(CFITSIOLIB) $(LIBS)
	-@@ $(RM) $@@.o
d210 1
a210 1
twcshdr : test/twcshdr.c $(LIBWCS) $(GETWCSTAB)
d213 2
a214 2
	      $(LDFLAGS) -o $@@ $< $(LIBWCS) $(GETWCSTAB) $(CFITSIOLIB) $(LIBS)
	-@@ $(RM) $@@.o
d236 1
a236 1
	-@@ $(RM) $@@.o
d242 1
a242 1
	-@@ $(RM) $@@.o
@


4.2.1.7
log
@Tidied up the rule for tpih2.
@
text
@d23 1
a23 1
#   $Id: GNUmakefile,v 4.2.1.6 2007/06/29 07:57:12 cal103 Exp cal103 $
d186 1
a186 1
	   $(CC) $(CPPFLAGS) -I../pgsbox -I. $(PGPLOTINC) $(CFLAGS) -c \
d199 4
a202 4
	   $(CC) -DDO_CFITSIO $(CPPFLAGS) -I../pgsbox -I. \
	      $(PGPLOTINC) $(CFITSIOINC) $(CFLAGS) -c -o $@@.o $<
	   $(LD) $(LDFLAGS) -o $@@ $@@.o $(PGSBOXLIB) $(LIBWCS) \
	      $(PGPLOTLIB) $(CFITSIOLIB) $(LIBS)
@


4.2.1.8
log
@Renamed the 'all' target to 'build' and removed 'show_all' from it, 'all'
is now defined in makedefs with 'show_all' and 'build' as its dependencies.
@
text
@d6 1
a6 1
#      build:     Build the library.
d23 1
a23 1
#   $Id: GNUmakefile,v 4.2.1.7 2007/07/03 04:34:37 cal103 Exp cal103 $
d124 1
a124 1
.PHONY : build check check_s clean cleaner cleanest install lib realclean \
d127 1
a127 1
build : lib
d139 1
a139 1
install : build
@


4.2.1.9
log
@ranlib the library after installation - important for Macs.
@
text
@d23 1
a23 1
#   $Id: GNUmakefile,v 4.2.1.8 2007/07/03 08:36:23 cal103 Exp cal103 $
d140 1
a140 1
	-  if [ ! -d "$(LIBDIR)" ] ; then \
d142 5
a146 6
	   fi
	   $(INSTALL) -m 644 $(LIBWCS) $(LIBDIR)
	   $(RANLIB) $(LIBDIR)/$(LIBWCS)
	   $(RM) $(LIBDIR)/libwcs.a
	   $(LN_S) $(LIBDIR)/$(LIBWCS) $(LIBDIR)/libwcs.a
	-  if [ ! -d "$(INCDIR)" ] ; then \
d148 5
a152 5
	   fi
	   $(INSTALL) -m 444 CHANGES $(INCDIR)/CHANGES_C
	   $(INSTALL) -m 444 *.h $(INCDIR)
	   $(RM) $(INCLINK)
	   $(LN_S) $(INCDIR) $(INCLINK)
d158 5
a162 5
	-  $(RM) $(TEST_N)
	-  $(RM) $(TEST_P) tpih2 twcstab twcshdr
	-  $(RM) tofits bth.fits pih.fits wcstab.fits
	-  $(RM) t*_cfitsio
	-  $(RM) tlin_s tprj1_s tprj2_s tsph_s
d165 3
a167 3
	-  $(RM) config.h
	-  $(RM) fitshdr.c wcsbth.c wcspih.c wcsulex.c wcsutrn.c
	-  $(RM) $(LIBWCS)
d222 1
a222 1
	   $(CC) $(CPPFLAGS) -I. $(CFLAGS) -o $@@ $<
d225 1
a225 1
	   sed '/^BADCARD/q' $< | ./tofits > $@@
d228 1
a228 1
	   sed '/^BADCARD/q' $< | ./tofits > $@@
d248 1
a248 1
	   cd .. && config.status
@


4.2.1.10
log
@Added rules for building the shared library.
@
text
@d23 1
a23 1
#   $Id: GNUmakefile,v 4.2.1.9 2007/07/04 07:15:37 cal103 Exp cal103 $
a56 8
# Build the sharable library?
ifneq "$(SHRLIB)" ""
  PICLIB := libwcs-PIC.a
endif


# For building and exercising the test suite
# ------------------------------------------
d84 1
a86 1

a98 6
$(PICLIB)(%.o) : %.c
	-@@ echo ''
	   $(CC) $(CPPFLAGS) $(SHRFLAGS) -c $<
	   $(AR) r $(PICLIB) $%
	-@@ $(RM) $%

d129 1
a129 1
lib : fitshdr.c wcsbth.c wcspih.c wcsulex.c wcsutrn.c $(LIBWCS) $(SHRLIB)
a134 9
$(SHRLIB) : $(PICLIB)
	-@@ echo ''
	-@@ $(RM) -r tmp
	   mkdir tmp
	   cd tmp && $(AR) x ../$(PICLIB) && $(SHRLD) -o $@@ *.o && mv $@@ ..
	-  $(RM) -r tmp

$(PICLIB) : $(MODULES:%.o=$(PICLIB)(%.o)) ;

a146 6
	-  if [ "$(SHRLIB)" != "" ] ; then \
	     $(INSTALL) -m 644 $(SHRLIB) $(LIBDIR) ; \
	     if [ "$(SHRLN)" != "" ] ; then \
	       $(LN_S) $(LIBDIR)/$(SHRLIB) $(LIBDIR)/$(SHRLN) ; \
	     fi ; \
	   fi
d168 1
a168 1
	-  $(RM) $(LIBWCS) $(PICLIB) $(SHRLIB)
@


4.2.1.11
log
@Ensure that the timestamp on config.h is updated when config.status is run
otherwise it always appears to be stale and makedefs is repeatedly remade.
@
text
@d23 1
a23 1
#   $Id: GNUmakefile,v 4.2.1.10 2007/07/05 04:41:58 cal103 Exp $
a277 1
	-@@ $(RM) config.h
@


4.2.1.12
log
@Added FLIBS to the link list for tpih2 (for PGSBOXLIB).
@
text
@d23 1
a23 1
#   $Id: GNUmakefile,v 4.2.1.11 2007/07/05 05:01:15 cal103 Exp cal103 $
d217 2
a218 3
	     -o $@@.o $<
	   $(LD) $(LDFLAGS) -o $@@ $@@.o $(PGSBOXLIB) $(LIBWCS) $(PGPLOTLIB) \
	     $(FLIBS) $(LIBS)
d224 1
a224 1
	     $(LDFLAGS) -o $@@ $< $(CFITSIOLIB) $(LIBWCS) $(LIBS)
d230 1
a230 1
	     $(PGPLOTINC) $(CFITSIOINC) $(CFLAGS) -c -o $@@.o $<
d232 1
a232 1
	     $(PGPLOTLIB) $(CFITSIOLIB) $(FLIBS) $(LIBS)
@


4.2.1.13
log
@Reorganized the link lists putting WCSLIB after PGPLOT and CFITSIO to
confirm that it has no dependence on them.  Moved the rule for getwcstab.o
nearer to where it's used.
@
text
@d23 1
a23 1
#   $Id: GNUmakefile,v 4.2.1.12 2007/07/05 07:11:57 cal103 Exp cal103 $
d158 4
d218 1
a218 1
	   $(LD) $(LDFLAGS) -o $@@ $@@.o $(PGSBOXLIB) $(PGPLOTLIB) $(LIBWCS) \
d232 2
a233 2
	   $(LD) $(LDFLAGS) -o $@@ $@@.o $(PGSBOXLIB) $(PGPLOTLIB) \
	     $(CFITSIOLIB) $(LIBWCS) $(FLIBS) $(LIBS)
d239 1
a239 1
	      $(LDFLAGS) -o $@@ $< $(GETWCSTAB) $(CFITSIOLIB) $(LIBWCS) $(LIBS)
d245 1
a245 1
	      $(LDFLAGS) -o $@@ $< $(GETWCSTAB) $(CFITSIOLIB) $(LIBWCS) $(LIBS)
a247 4
getwcstab.o : getwcstab.c getwcstab.h
	-@@ echo ''
	   $(CC) $(CPPFLAGS) $(CFLAGS) $(CFITSIOINC) -c $<

@


4.2.1.14
log
@If FLEX is undefined then copy the pre-generated C sources from ./flexed.
@
text
@d23 1
a23 1
#   $Id: GNUmakefile,v 4.2.1.13 2007/07/06 07:04:02 cal103 Exp cal103 $
d98 1
a98 2
ifeq "$(FLEX)" "flex"
  %.c : %.l
a101 6
else
  %.c : %.l
	-@@ echo ''
	-@@ $(RM) $@@
	   cp flexed/$@@ .
endif
@


4.2.1.15
log
@Trivial tweak.
@
text
@d23 1
a23 1
#   $Id: GNUmakefile,v 4.2.1.14 2007/07/09 06:52:40 cal103 Exp cal103 $
d28 2
a61 2
VPATH := .:./test

d285 1
a285 1
../makedefs config.h : ../makedefs.in config.h.in ../config.status
@


4.2.1.16
log
@Replaced instances of $(CC) -E with $(CPP) and incorporated -I flags into
CPPFLAGS.  For some obscure reason, gmake in SunOS couldn't insert object
modules into LIBWCS and required a pattern rule.  Split VPATH into separate
vpaths for each file type.  config.h has now been split into config.h and
config_tests.h (and others), updated rules and dependency lists.
@
text
@d2 1
a2 1
#   GNU makefile for building WCSLIB 4.3 and its test suite.
d10 2
a11 2
#                 the C source files generated by 'flex', and config.h and
#                 config_test.h which are generated by 'configure'.
d23 1
a23 1
#   $Id: GNUmakefile,v 4.2.1.15 2007/07/11 01:53:19 cal103 Exp cal103 $
d60 1
a60 5
CPPFLAGS += -I.. -I.

vpath %.c  .:./test
vpath %.h  ..:.
vpath %.in ..
d94 1
d110 1
a110 1
$(LIBWCS)(%.o) : %.c
a112 2
	   $(AR) r $(LIBWCS) $%
	-@@ $(RM) $%
d122 1
a122 2
	-@@ $(RM) $@@
	   $(CPP) $(CPPFLAGS) $(CFLAGS) $< > $@@
d126 1
a126 1
	-@@ $(CPP) $(CPPFLAGS) $(CFLAGS) $< | \
d198 1
a198 1
	-  $(RM) ../config.h ../config_tests.h
d208 1
a208 1
	   $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@@ $< $(LIBWCS) $(LIBS)
d213 1
a213 1
	   $(CC) $(CPPFLAGS) $(PGPLOTINC) $(CFLAGS) -c -o $@@.o $<
d219 2
a220 1
	   $(CC) $(CPPFLAGS) -I../pgsbox $(PGPLOTINC) $(CFLAGS) -c -o $@@.o $<
d227 1
a227 1
	   $(CC) -DDO_CFITSIO $(CPPFLAGS) $(CFITSIOINC) $(CFLAGS) \
d233 2
a234 2
	   $(CC) -DDO_CFITSIO $(CPPFLAGS) -I../pgsbox $(PGPLOTINC) \
	     $(CFITSIOINC) $(CFLAGS) -c -o $@@.o $<
d241 2
a242 2
	   $(CC) $(CPPFLAGS) $(CFITSIOINC) $(CFLAGS) $(LDFLAGS) -o $@@ $< \
	     $(GETWCSTAB) $(CFITSIOLIB) $(LIBWCS) $(LIBS)
d247 2
a248 2
	   $(CC) $(CPPFLAGS) $(CFITSIOINC) $(CFLAGS) $(LDFLAGS) -o $@@ $< \
	     $(GETWCSTAB) $(CFITSIOLIB) $(LIBWCS) $(LIBS)
d260 1
a260 1
	   $(CC) $(CPPFLAGS) $(CFLAGS) -o $@@ $<
d274 1
a274 1
	   $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@@ $< $(LIBWCS) $(LIBS)
d279 1
a279 1
	   $(CC) $(CPPFLAGS) $(PGPLOTINC) $(CFLAGS) -c -o $@@.o $<
d285 2
a286 3
../makedefs ../config.h ../config_tests.h : makedefs.in config.h.in \
    config_tests.h.in ../config.status
	-@@ $(RM) ../config.h ../config_tests.h
d317 2
a318 2
tbth1 tbth1_cfitsio : cel.h config.h config_tests.h lin.h prj.h spc.h spx.h \
                      tab.h wcs.h wcsfix.h wcshdr.h bth.fits
d321 1
a321 1
tfitshdr tfitshdr_cfitsio : config.h config_tests.h fitshdr.h pih.fits
d325 4
a328 4
tpih1 tpih1_cfitsio : cel.h config.h config_tests.h lin.h prj.h spc.h spx.h \
                      tab.h wcs.h wcsfix.h wcshdr.h pih.fits
tpih2 tpih2_cfitsio : cel.h config.h config_tests.h lin.h prj.h spc.h spx.h \
                      tab.h wcs.h wcshdr.h pih.fits
@


4.2.1.17
log
@Replaced use of the obsolete term "card".
@
text
@d23 1
a23 1
#   $Id: GNUmakefile,v 4.2.1.16 2007/07/11 08:36:54 cal103 Exp cal103 $
d244 1
a244 1
twcstab : test/twcstab.c test/wcstab.keyrec $(LIBWCS) $(GETWCSTAB)
d267 2
a268 2
pih.fits : test/pih.keyrec tofits
	   sed '/^BADKEYREC/q' $< | ./tofits > $@@
d270 2
a271 2
bth.fits : test/bth.keyrec tofits
	   sed '/^BADKEYREC/q' $< | ./tofits > $@@
@


4.2.1.18
log
@Renamed config{,_tests}.h -> wcsconfig{,_tests}.h.
@
text
@d10 2
a11 2
#                 the C source files generated by 'flex', and wcsconfig.h and
#                 wcsconfig_test.h which are generated by 'configure'.
d23 1
a23 1
#   $Id: GNUmakefile,v 4.2.1.17 2007/08/02 06:52:09 cal103 Exp cal103 $
d204 1
a204 1
	-  $(RM) ../wcsconfig.h ../wcsconfig_tests.h
d290 3
a292 3
../makedefs ../wcsconfig.h ../wcsconfig_tests.h : makedefs.in wcsconfig.h.in \
    wcsconfig_tests.h.in ../config.status
	-@@ $(RM) ../wcsconfig.h ../wcsconfig_tests.h
d299 1
a299 1
$(LIBWCS)(fitshdr.o)  : wcsconfig.h fitshdr.h
d323 2
a324 2
tbth1 tbth1_cfitsio : cel.h wcsconfig.h wcsconfig_tests.h lin.h prj.h spc.h \
                      spx.h tab.h wcs.h wcsfix.h wcshdr.h bth.fits
d327 1
a327 1
tfitshdr tfitshdr_cfitsio : wcsconfig.h wcsconfig_tests.h fitshdr.h pih.fits
d331 4
a334 4
tpih1 tpih1_cfitsio : cel.h wcsconfig.h wcsconfig_tests.h lin.h prj.h spc.h \
                      spx.h tab.h wcs.h wcsfix.h wcshdr.h pih.fits
tpih2 tpih2_cfitsio : cel.h wcsconfig.h wcsconfig_tests.h lin.h prj.h spc.h \
                      spx.h tab.h wcs.h wcshdr.h pih.fits
@


4.2.1.19
log
@As a matter of principle, '-I.' should precede '-I..' in CPPFLAGS.
@
text
@d23 1
a23 1
#   $Id: GNUmakefile,v 4.2.1.18 2007/08/08 04:31:52 cal103 Exp cal103 $
d60 1
a60 1
CPPFLAGS += -I. -I..
@


4.2.1.20
log
@Replaced flex command line options with %option declarations in the flex
source files.  Stop at the copyright notice when generating pih.fits and
bth.fits.
@
text
@d23 1
a23 1
#   $Id: GNUmakefile,v 4.2.1.19 2007/12/24 04:16:27 cal103 Exp cal103 $
d105 1
a105 1
	   $(FLEX) $(FLFLAGS) -t $< | sed -e 's/^[	 ]*#/#/' > $@@
d268 1
a268 1
	   sed '/^\*/q' $< | ./tofits > $@@
d271 1
a271 1
	   sed '/^\*/q' $< | ./tofits > $@@
@


4.1
log
@WCSLIB 4.1: extensive changes.
@
text
@d2 1
a2 1
#   GNU makefile for building WCSLIB 4.1.
d6 1
a6 1
#      all:       Build the library
d9 6
a14 4
#      cleanest:  cleaner, and also delete the object library.
#      test:      Compile and run the test programs.
#      test_s:    Compile and run the scalar test programs.
#      show_all:  Print the values of all variables used.
d17 2
a18 22
#      1) The makefile sets certain variables to default values and may then
#         change some of them depending on the value of the FLAVOUR variable.
#         The following FLAVOURs are available:
#
#            SUN/GNU    GNU C compiler running under some version of SunOS.
#            SUN/GNUp   As above with profiling options.
#            SUN/ANSI   ANSI C compiler running under some version of SunOS.
#            SUN/Pure   SUN/GNU with "Purify" and "PureCoverage".
#            SUN/Quant  SUN/GNU with "Quantify".
#            Linux      Some version of Linux.
#            Linuxp     Some version of Linux, with profiling options.
#
#         Note that K&R C is no longer supported.
#
#         The FLAVOUR may conveniently be set as an environment variable or on
#         the GNU make command line, e.g.
#
#            gmake FLAVOUR=SUN/GNU
#
#         If your requirements don't match any predefined FLAVOUR then you
#         might be able to modify an existing one, add a new one, or simply
#         modify the defaults.
d22 1
a22 145
#   $Id: Makefile,v 4.0 2005/02/04 06:21:34 cal103 Exp cal103 $
#-----------------------------------------------------------------------------
  CPPFLAGS := -I.

# C compiler and options.
  CC := gcc -ansi
  CFLAGS := -O

# Flex; add -d to FLFLAGS for debugging.
  FLEX := flex
  FLFLAGS :=

# Reset this to ":" if ranlib is not needed.
  RANLIB := ranlib

# Use the C compiler to link executables.
  LD  = $(CC)
  LDFLAGS := -s

# Define the native 64-bit integer data type if your compiler supports it.
# WCS_INT64 := long long int

# There are three choices for trigd functions - cosd(), sind(), tand(),
# acosd(), asind(), atand(), and atan2d().  Uncomment one of the following
# choices (see also wcstrig.h).
#
#    1: Use the wrapper functions supplied with WCSLIB:
     WCSTRIG := WRAPPER
#
#    2: Use native trigd functions supplied in a mathematics library such as
#    libsunmath (also add the library to the LIBS variable):
   # WCSTRIG := NATIVE
#
#    3: Use C preprocessor macro implementations of the trigd functions (this
#    method is typically 20% faster but may lead to rounding errors near the
#    poles):
   # WCSTRIG := MACRO

# PGPLOT is only required for the test programs that plot test grids (tprj2,
# tprj2_s, tcel1, tcel2, tspc, ttab2 ttab3, twcsmix, and tpih2).  You can
# circumvent this by setting DO_PLOTS to blank.  PGPLOT is Tim Pearson's
# FORTRAN plotting library with separate C interface available from
# astro.caltech.edu.
  DO_PLOTS  := 1
  PGPLOTLIB := -L/usr/local/lib -lcpgplot -lpgplot -lX11

# CFITSIO definitions are optionally required for test programs tfitshdr,
# tpih1, tpih2, and non-optionally for getwcstab and twcstab.
  CFITSIOINC := /usr/local/include/cfitsio
  CFITSIOLIB := -L/usr/local/lib -lcfitsio

# Extra required libraries.
  LIBS := -lm

# Installation utilities.
  LN := ln
  INSTALL := install

# Extra files to clean up.
  override EXTRA_CLEAN :=

# Overrides for various combinations of
# architecture, operating system and compiler.
#---------------------------------------------

ifeq "$(FLAVOUR)" "SUN/GNU"
  CFLAGS  += -Wall -Wno-parentheses
  PGPLOTLIB := -lcpgplot -lpgplot -lpng -lz -lg2c -lX11 \
               -L/opt/SUNWspro/lib -lF77 -lM77
  CFITSIOLIB += -lsocket
  LIBS    := -lsunmath -lm
endif

ifeq "$(FLAVOUR)" "SUN/GNU3"
  CC      := gcc-3.1.1 -ansi
  CFLAGS  += -Wall -Wno-parentheses
  LD      := gcc-3.1.1
  PGPLOTLIB := -lcpgplot -lpgplot -lpng -lz -lg2c -lX11 \
               -L/opt/SUNWspro/lib -lF77 -lM77
  CFITSIOLIB += -lsocket
  LIBS    := -lsunmath -lm
endif

ifeq "$(FLAVOUR)" "SUN/GNUp"
  CFLAGS  := -pg -a -g -O -Wall -Wno-parentheses
  LDFLAGS := -pg -a -g
  PGPLOTLIB := -lcpgplot -lpgplot -lpng -lz -lg2c -lX11 \
               -L/opt/SUNWspro/lib -lF77 -lM77
  CFITSIOLIB += -lsocket
  LIBS    := -lsunmath -lm
  override EXTRA_CLEAN := gmon.out bb.out
endif

ifeq "$(FLAVOUR)" "SUN/ANSI"
  CC      := cc
  CFLAGS  += -I/usr/local/include
  WCSTRIG := NATIVE
  LD      := f77
  PGPLOTLIB := -lcpgplot -lpgplot -lpng -lz -lg2c -lX11
  CFITSIOLIB += -lsocket
  LIBS    := -lsunmath -lm
endif

ifeq "$(FLAVOUR)" "SUN/Pure"
  CC      := purify gcc
  CFLAGS  := -g
  FC      := purify gcc
  FFLAGS  := -g -Wimplicit -Wno-globals -I.
  WCSTRIG := NATIVE
  LDFLAGS :=
  PGPLOTLIB := -lcpgplot -lpgplot -lpng -lz -lg2c -lX11 \
               -L/opt/SUNWspro/lib -lF77 -lM77
  CFITSIOLIB += -lsocket
  LIBS    := -lsunmath -lm -lg2c
  override EXTRA_CLEAN := *_pure_p*.[ao] *.pcv .pure
endif

ifeq "$(FLAVOUR)" "SUN/Quant"
  CC      := quantify gcc
  CFLAGS  := -g
  FC      := quantify gcc
  FFLAGS  := -g -Wimplicit -Wno-globals -I.
  WCSTRIG := NATIVE
  LDFLAGS :=
  PGPLOTLIB := -lcpgplot -lpgplot -lpng -lz -lg2c -lX11 \
               -L/opt/SUNWspro/lib -lF77 -lM77
  CFITSIOLIB += -lsocket
  LIBS    := -lsunmath -lm -lg2c
  override EXTRA_CLEAN := *_pure_q*.[ao] .pure
endif

ifeq "$(FLAVOUR)" "Linux"
  CFLAGS  += -Wall -Wno-parentheses
  PGPLOTLIB := -lcpgplot -lpgplot -lpng -L/usr/X11R6/lib -lX11
  LIBS    := -lg2c -lm
endif

ifeq "$(FLAVOUR)" "Linuxp"
  CFLAGS  := -pg -a -g -O -Wall -Wno-parentheses
  LDFLAGS := -pg -a -g
  PGPLOTLIB := -lcpgplot -lpgplot -lpng -L/usr/X11R6/lib -lX11
  LIBS    := -lg2c -lm
  override EXTRA_CLEAN := gmon.out bb.out
endif

d24 2
a25 4
# You shouldn't need to change anything below here.

# Version.
V := 4.1
a28 1
WCSLIB  := libwcs-$V.a
a30 1
           getwcstab.o \
a46 8
ifneq "$(WCS_INT64)" ""
  CFLAGS += -DWCS_INT64='$(WCS_INT64)'
endif

ifneq "$(DO_WCSHDR)" ""
  CFLAGS += -DDO_WCSHDR
endif

d48 1
a48 1
  CFLAGS += -DWCSTRIG_MACRO
d55 5
d68 2
a69 1
ifneq "$(DO_PLOTS)" ""
d71 2
a72 1
  TPRJ2_S := run_tprj2_s
d75 6
a80 1
TESTS  += twcstab
d83 1
a83 1
PGSBOX := $(addprefix ../pgsbox/, cpgsbox.o pgsbox.o)
d89 1
a89 1
	-@@ echo ""
d95 1
a95 1
	-@@ echo ""
d99 1
a99 1
	-@@ echo ""
d103 1
a103 1
	-@@ echo ""
d109 3
a111 2
	-@@ echo ""
	 @@ if [ "$<" = tcel2 ] ; then \
d113 1
a113 1
	   elif [ "$<" = tunits ] ; then \
d115 2
a116 2
	   else \
	     $< < /dev/null ; \
d118 1
a118 1
	-@@ echo ""
d123 2
a124 1
.PHONY : all clean cleaner cleanest install lib realclean test test_s
d126 1
a126 1
all : show_all fitshdr.c wcspih.c wcsulex.c wcsutrn.c lib
d128 1
a128 1
lib : $(WCSLIB)
d130 3
a132 2
$(WCSLIB) : $(MODULES:%=$(WCSLIB)(%))
	   $(RANLIB) $(WCSLIB)
d134 3
a136 5
$(WCSLIB)(getwcstab.o) : getwcstab.c
	-@@ echo ""
	   $(CC) $(CPPFLAGS) $(CFLAGS) -I$(CFITSIOINC) -c $<
	   $(AR) r $(WCSLIB) getwcstab.o
	-@@ $(RM) getwcstab.o
d139 13
a151 10
	$(INSTALL) -m 644 $(WCSLIB) /usr/local/lib
	$(RM) /usr/local/lib/libwcs.a
	$(LN) -s /usr/local/lib/$(WCSLIB) /usr/local/lib/libwcs.a
	$(INSTALL) -d -m 2755 /usr/local/include/wcslib-$V
	$(INSTALL) -m 444 ../COPYING /usr/local/include/wcslib-$V/COPYING
	$(INSTALL) -m 444 CHANGES /usr/local/include/wcslib-$V/CHANGES_C
	$(INSTALL) -m 444 README  /usr/local/include/wcslib-$V/README_C
	$(INSTALL) -m 444 *.h /usr/local/include/wcslib-$V
	$(RM) /usr/local/include/wcslib
	$(LN) -s /usr/local/include/wcslib-$V /usr/local/include/wcslib
d158 1
a158 1
	- $(RM) $(TEST_P) tpih2 twcstab
d164 5
a168 1
	- $(RM) $(WCSLIB)
d170 4
a173 1
test : show_all $(TESTS) $(TESTS:%=run_%)
d175 4
a178 3
$(TEST_N) : % : test/%.c $(WCSLIB)
	-@@ echo ""
	   $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@@ $< $(WCSLIB) $(LIBS)
d181 5
a185 4
$(TEST_P) : % : test/%.c $(WCSLIB)
	-@@ echo ""
	   $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@@.o $<
	   $(LD) $(LDFLAGS) -o $@@ $@@.o $(WCSLIB) $(PGPLOTLIB) $(LIBS)
d188 4
a191 4
tpih2 : test/tpih2.c $(WCSLIB) $(PGSBOX) $(WCSLIB)(pgwcsl.o)
	-@@ echo ""
	   $(CC) $(CPPFLAGS) $(CFLAGS) -I../pgsbox -c -o $@@.o $<
	   $(LD) $(LDFLAGS) -o $@@ $@@.o $(WCSLIB) $(PGSBOX) $(PGPLOTLIB) $(LIBS)
d194 6
a199 4
tfitshdr_cfitsio tpih1_cfitsio : %_cfitsio : test/%.c $(WCSLIB)
	-@@ echo ""
	   $(CC) -DDO_CFITSIO $(CPPFLAGS) $(CFLAGS) -I$(CFITSIOINC) \
	      $(LDFLAGS) -o $@@ $< $(WCSLIB) $(CFITSIOLIB) $(LIBS)
d202 4
a205 6
tpih2_cfitsio : test/tpih2.c $(WCSLIB) $(PGSBOX) $(WCSLIB)(pgwcsl.o)
	-@@ echo ""
	   $(CC) -DDO_CFITSIO $(CPPFLAGS) $(CFLAGS) -I$(CFITSIOINC) \
	      -I../pgsbox -c -o $@@.o $<
	   $(LD) $(LDFLAGS) -o $@@ $@@.o $(WCSLIB) $(PGSBOX) $(CFITSIOLIB) \
	      $(PGPLOTLIB) $(LIBS)
d208 4
a211 4
twcstab : test/twcstab.c test/wcstab.cards $(WCSLIB)
	-@@ echo ""
	   $(CC) -DDO_CFITSIO $(CPPFLAGS) $(CFLAGS) -I$(CFITSIOINC) \
	      $(LDFLAGS) -o $@@ $< $(WCSLIB) $(CFITSIOLIB) $(LIBS)
d214 3
a216 3
$(PGSBOX) $(WCSLIB)(pgwcsl.o) :
	-@@ echo ""
	   $(MAKE) -C ../pgsbox all wcslib
d219 1
a219 1
	$(CC) $(CPPFLAGS) $(CFLAGS) -o $@@ $<
d224 3
a226 1
test_s : show_all run_tlin_s run_tprj1_s $(TPRJ2_S) run_tsph_s ;
d228 3
a230 3
tlin_s tprj1_s tsph_s : % : test_s/%.c $(WCSLIB)
	-@@ echo ""
	   $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@@ $< $(WCSLIB) $(LIBS)
d233 4
a236 4
tprj2_s : % : test_s/%.c $(WCSLIB)
	-@@ echo ""
	   $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@@.o $<
	   $(LD) $(LDFLAGS) -o $@@ $@@.o $(WCSLIB) $(PGPLOTLIB) $(LIBS)
d239 4
a242 20
show_all :
	-@@ echo ""
	-@@ echo "FLAVOUR     := $(FLAVOUR)"
	-@@ echo "CC          := $(CC)"
	-@@ echo "CPPFLAGS    := $(CPPFLAGS)"
	-@@ echo "CFLAGS      := $(CFLAGS)"
	-@@ echo "FLEX        := $(FLEX)"
	-@@ echo "FLFLAGS     := $(FLFLAGS)"
	-@@ echo "RANLIB      := $(RANLIB)"
	-@@ echo "LDFLAGS     := $(LDFLAGS)"
	-@@ echo "WCSTRIG     := $(WCSTRIG)"
	-@@ echo "DO_PLOTS    := $(DO_PLOTS)"
	-@@ echo "PGPLOTLIB   := $(PGPLOTLIB)"
	-@@ echo "CFITSIOINC  := $(CFITSIOINC)"
	-@@ echo "CFITSIOLIB  := $(CFITSIOLIB)"
	-@@ echo "LIBS        := $(LIBS)"
	-@@ echo "LN          := $(LN)"
	-@@ echo "INSTALL     := $(INSTALL)"
	-@@ echo "EXTRA_CLEAN := $(EXTRA_CLEAN)"
	-@@ echo ""
d247 10
a256 11
$(WCSLIB)(cel.o)      : cel.h prj.h sph.h wcsmath.h wcstrig.h
$(WCSLIB)(fitshdr.o)  : fitshdr.h
$(WCSLIB)(getwcstab.o): getwcstab.h
$(WCSLIB)(lin.o)      : lin.h
$(WCSLIB)(log.o)      : log.h
$(WCSLIB)(prj.o)      : prj.h wcsmath.h wcstrig.h
$(WCSLIB)(spc.o)      : spc.h spx.h wcsmath.h wcstrig.h
$(WCSLIB)(sph.o)      : sph.h wcstrig.h
$(WCSLIB)(spx.o)      : spx.h
$(WCSLIB)(tab.o)      : tab.h wcsmath.h
$(WCSLIB)(wcs.o)      : cel.h lin.h log.h prj.h spc.h sph.h spx.h tab.h \
d258 1
a258 1
$(WCSLIB)(wcsfix.o)   : cel.h lin.h prj.h spc.h sph.h spx.h tab.h wcs.h \
d260 1
a260 1
$(WCSLIB)(wcshdr.o)   : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h wcshdr.h \
d262 1
a262 1
$(WCSLIB)(wcspih.o)   : cel.h lin.h prj.h spc.h spx.h tab.h wcs.h wcshdr.h \
d264 5
a268 5
$(WCSLIB)(wcstrig.o)  : wcsmath.h wcstrig.h
$(WCSLIB)(wcsulex.o)  : wcsmath.h wcsunits.h
$(WCSLIB)(wcsunits.o) : wcsunits.h
$(WCSLIB)(wcsutil.o)  : wcsutil.h
$(WCSLIB)(wcsutrn.o)  : wcsunits.h
d294 1
d297 1
a297 1
twcstab : cel.h getwcstab.h lin.h prj.h spc.h spx.h tab.h wcs.h wcshdr.h
@


4.0
log
@WCSLIB 4.0: added variable DO_PLOTS to control plotting separately from
PGPLOTLIB; added a version number to the library; added an install target;
added rules for ttab[123].
@
text
@d2 1
a2 1
#   GNU makefile for building WCSLIB 4.0.
d40 1
a40 1
#   $Id: Makefile,v 3.6 2004/08/25 05:26:20 cal103 Exp cal103 $
d42 2
d56 1
a56 1
  LD := gcc
d59 3
d86 2
a87 1
# CFITSIO definitions are only required for test program tpih2.
d107 4
a110 2
  PGPLOTLIB := -lcpgplot -lpgplot -lpng -lz -lX11
  LIBS    := -lg2c -L/opt/SUNWspro/lib -lF77 -lM77 -lsunmath -lm
d117 4
a120 2
  PGPLOTLIB := -lcpgplot -lpgplot -lpng -lz -lX11
  LIBS    := -lg2c -L/opt/SUNWspro/lib -lF77 -lM77 -lsunmath -lm
d126 4
a129 2
  PGPLOTLIB := -lcpgplot -lpgplot -lpng -lz -lX11
  LIBS    := -lg2c -L/opt/SUNWspro/lib -lF77 -lM77 -lsunmath -lm
d138 2
a139 1
  PGPLOTLIB := -lcpgplot -lpgplot -lpng -lz -L/usr/local/X11/lib -lX11
d144 1
a144 1
  CC      := purify purecov gcc
d146 2
d150 4
a153 2
  PGPLOTLIB := -lcpgplot -lpgplot -lpng -lz -L/usr/local/X11/lib -lX11
  LIBS    := -lg2c -L/opt/SUNWspro/lib -lF77 -lM77 -lsunmath -lm
d160 2
d164 4
a167 2
  PGPLOTLIB := -lcpgplot -lpgplot -lpng -lz -L/usr/local/X11/lib -lX11
  LIBS    := -lg2c -L/opt/SUNWspro/lib -lF77 -lM77 -lsunmath -lm
d189 3
a191 1
V := 4.0
d194 6
a199 4
MODULES := cylfix.o \
           wcspih.o \
           wcshdr.o \
           wcs.o \
d201 1
a202 3
           cel.o \
           sph.o \
           prj.o \
d204 16
a219 1
           lin.o
d229 8
d238 2
a239 7
  TPRJ2   := tprj2
  TPRJ2_S := tprj2_s
  TCEL    := tcel1 tcel2
  TSPC    := tspc
  TTAB    := ttab2 ttab3
  TWCSMIX := twcsmix
  TPIH2   := tpih2
d242 3
d258 1
a258 1
	   $(CC) $(CFLAGS) -c $<
d262 1
a262 1
	   $(CC) $(CFLAGS) -E -o $@@ $<
d266 1
a266 1
	-@@ $(CC) $(CFLAGS) -E -I. $< | \
d270 11
d286 1
a286 1
all : show_all wcspih.c lib
d291 7
a297 1
	$(RANLIB) $(WCSLIB)
d315 4
a318 3
	- $(RM) tlin tprj1 tprj2 tsph tcel1 tcel2 tspx tspc ttab1 ttab2 ttab3
	- $(RM) twcs twcssub twcsmix
	- $(RM) tofits wcs.fits tpih1 tpih2
d324 3
a326 2
test : show_all tlin tprj1 $(TPRJ2) tsph $(TCEL) tspx $(TSPC) ttab1 $(TTAB) \
       twcs twcssub $(TWCSMIX) wcs.fits tpih1 $(TPIH2)
d328 4
a331 1
	-@@ echo "Running WCSLIB test programs:"
d333 3
a335 58
	-@@ tlin
	-@@ echo ""
	-@@ tprj1
        ifdef TPRJ2
	   -@@ echo ""
	   -@@ tprj2 < /dev/null
        endif
	-@@ echo ""
	-@@ tsph
        ifdef TCEL
	   -@@ echo ""
	   -@@ tcel1 < /dev/null
	   -@@ echo ""
	   -@@ echo N | tcel2
        endif
	-@@ echo ""
	-@@ tspx
        ifdef TSPC
	   -@@ echo ""
	   -@@ tspc < /dev/null
        endif
	-@@ echo ""
	-@@ ttab1
        ifdef TTAB
	   -@@ echo ""
	   -@@ ttab2 < /dev/null
	   -@@ echo ""
	   -@@ ttab3 < /dev/null
        endif
	-@@ echo ""
	-@@ twcs
	-@@ echo ""
	-@@ twcssub
        ifdef TWCSMIX
	   -@@ echo ""
	   -@@ twcsmix < /dev/null
        endif
	-@@ echo ""
	-@@ tpih1
        ifdef TPIH2
	   -@@ echo ""
	   -@@ tpih2 < /dev/null
	   -@@ echo ""
        endif

test_s : show_all tlin_s tprj1_s $(TPRJ2_S) tsph_s
	-@@ echo ""
	-@@ echo "Running WCSLIB scalar test programs:"
	-@@ echo ""
	-@@ tlin_s
	-@@ echo ""
	-@@ tprj1_s
        ifdef TPRJ2_S
	   -@@ echo ""
	   -@@ tprj2_s < /dev/null
        endif
	-@@ echo ""
	-@@ tsph_s
d337 1
a337 1
tlin tprj1 tsph tspx ttab1 twcs twcssub tpih1 : % : test/%.c $(WCSLIB)
d339 2
a340 1
	   $(CC) $(CFLAGS) -I. $(LDFLAGS) -o $@@ $< $(WCSLIB) $(LIBS)
d343 1
a343 1
tprj2 tcel1 tcel2 tspc ttab2 ttab3 twcsmix : % : test/%.c $(WCSLIB)
d345 2
a346 2
	   $(CC) $(CFLAGS) -I. -c -o $@@.o $<
	   $(LD) $(LDFLAGS) -o $@@ $@@.o $(WCSLIB) $(PGPLOTLIB) $(LIBS)
d349 1
a349 1
tpih2 : test/tpih2.c $(WCSLIB) $(PGSBOX) $(WCSLIB)(pgwcsl.o)
d351 2
a352 1
	   $(CC) $(CFLAGS) -I. -I../pgsbox -I$(CFITSIOINC) -c -o $@@.o $<
d357 6
d368 4
a371 1
	$(CC) $(CFLAGS) -o $@@ $<
d373 1
a373 2
wcs.fits : test/wcs.cards tofits
	tofits < $< > $@@
d377 1
a377 1
	   $(CC) $(CFLAGS) -I. $(LDFLAGS) -o $@@ $< $(WCSLIB) $(LIBS)
d382 1
a382 1
	   $(CC) $(CFLAGS) -I. -c -o $@@.o $<
d390 1
d410 23
a432 13
$(WCSLIB)(cel.o)     : cel.h prj.h sph.h wcstrig.h
$(WCSLIB)(cylfix.o)  : cel.h lin.h prj.h spc.h sph.h spx.h wcs.h
$(WCSLIB)(lin.o)     : lin.h
$(WCSLIB)(prj.o)     : prj.h wcsmath.h wcstrig.h
$(WCSLIB)(spc.o)     : spc.h spx.h wcstrig.h
$(WCSLIB)(sph.o)     : sph.h wcstrig.h
$(WCSLIB)(spx.o)     : spx.h
$(WCSLIB)(tab.o)     : tab.h
$(WCSLIB)(wcs.o)     : cel.h lin.h prj.h spc.h sph.h spx.h wcs.h wcsmath.h \
                       wcstrig.h
$(WCSLIB)(wcshdr.o)  : cel.h lin.h prj.h spc.h sph.h spx.h wcs.h wcshdr.h
$(WCSLIB)(wcspih.o)  : cel.h lin.h prj.h spc.h sph.h spx.h wcs.h wcshdr.h
$(WCSLIB)(wcstrig.o) : wcsmath.h wcstrig.h
d436 1
d439 5
a443 2
tpih1   : cel.h lin.h prj.h spc.h sph.h spx.h wcs.h wcshdr.h
tpih2   : cel.h lin.h prj.h spc.h sph.h spx.h wcs.h wcshdr.h
d455 6
a460 3
twcs    : cel.h lin.h prj.h spc.h spx.h wcs.h
twcssub : cel.h lin.h prj.h spc.h spx.h wcs.h
twcsmix : cel.h lin.h prj.h spc.h sph.h spx.h wcs.h
@


3.6
log
@WCSLIB 3.6: removed DEC/Alpha FLAVOUR; twcs1 renamed to twcs, twcs2 renamed
to twcsmix, twcssub (new); revised the options for many of the FLAVOURs.
@
text
@d2 1
a2 1
#   GNU makefile for building WCSLIB 3.6.
d8 2
a9 1
#      realclean: clean, and also delete executables and the object library.
d19 1
a19 1
#            SUN/GNU    GNU  C compiler running under some version of SunOS.
d40 1
a40 1
#   $Id: Makefile,v 3.5 2004/06/28 04:41:01 mcalabre Exp mcalabre $
d73 6
a78 7
# The PGPLOTLIB option is only required for compiling test programs (tprj2,
# tprj2_s tcel1, tcel2, tspc, and twcsmix) that use PGPLOT to plot test grids.
# You can circumvent this by setting PGPLOTLIB to blank.  PGPLOT is a FORTRAN
# plotting library with separate C interface available from astro.caltech.edu.

# PGPLOT link list; unset this to defeat compilation of test programs that
# plot test grids.
d88 4
d167 4
a170 1
WCSLIB  := libwcs.a
d180 1
d191 1
a191 1
ifneq "$(PGPLOTLIB)" ""
d196 1
d229 1
a229 1
.PHONY : all clean cleaner cleanest lib realclean test test_s
d238 12
d254 1
a254 1
	- $(RM) tlin tprj1 tprj2 tsph tcel1 tcel2 tspx tspc
d262 1
a262 1
test : show_all tlin tprj1 $(TPRJ2) tsph $(TCEL) tspx $(TSPC) \
d289 8
d326 1
a326 1
tlin tprj1 tsph tspx twcs twcssub tpih1 : % : test/%.c $(WCSLIB)
d331 1
a331 1
tprj2 tcel1 tcel2 tspc twcsmix : % : test/%.c $(WCSLIB)
d375 2
a378 1
	-@@ echo "PGPLOTLIB   := $(PGPLOTLIB)"
d380 2
d395 1
d416 3
@


3.5
log
@WCSLIB 3.5: updated to support the WCS header parser and its test programs;
twcsprt has been withdrawn.
@
text
@d2 1
a2 1
#   GNU makefile for building WCSLIB 3.5.
a24 1
#            DEC/Alpha  DEC/Alpha running Digital Unix (OSF/1).
d39 1
a39 1
#   $Id: Makefile,v 3.4 2004/02/11 00:11:52 mcalabre Exp mcalabre $
d42 1
a42 1
  CC := gcc
d52 2
a53 1
# Linker options.
a55 3
# Extra required libraries.
  LIBS := -lm

d73 1
a73 1
# tprj2_s tcel1, tcel2, tspc, and twcs2) that use PGPLOT to plot test grids.
d85 2
a86 2
# Use the FORTRAN compiler to link to PGPLOT.
  LD := f77
a95 1
  CC      := gcc -ansi
d97 2
a98 3
  LD      := g77
  LIBS    := -L/opt/SUNWspro/lib -lm
  PGPLOTLIB := -lcpgplot -lpgplot_g77 -lpng -lz -L/usr/local/X11/lib -lX11
d104 3
a106 2
  LD      := g77-3.1.1
  PGPLOTLIB := -lcpgplot -lpgplot_g77 -lpng -lz -L/usr/local/X11/lib -lX11
a109 1
  CC      := gcc -ansi
a110 1
  LD      := g77
d112 2
a113 2
  LIBS    := -L/opt/SUNWspro/SC5.0/lib/libp -lm
  PGPLOTLIB := -lcpgplot -lpgplot_g77 -lpng -lz -L/usr/local/X11/lib -lX11
d121 2
d131 2
a132 1
  LIBS    := -L/opt/SUNWspro/lib -lsunmath -lm
d141 2
a142 1
  LIBS    := -L/opt/SUNWspro/lib -lsunmath -lm
a146 1
  CC      := gcc -ansi
a147 1
  LD      := g77
d149 1
d153 2
a154 4
  CC      := gcc -ansi
  CFLAGS  := -pg -g -O -Wall -Wno-parentheses
  LD      := g77
  LDFLAGS := -pg -g
d156 2
a157 8
endif

ifeq "$(FLAVOUR)" "DEC/Alpha"
  CC      := cc
  CFLAGS  += -D"atan2d=atand2" -I/usr/local/include
  LD      := cc
  WCSTRIG := NATIVE
  PGPLOTLIB := -L/usr/local/lib -lcpgplot -lpgplot -lfor -lUfor -lX11
d188 1
a188 1
  TWCS2   := twcs2
d199 3
a201 3
	$(FLEX) $(FLFLAGS) -P$* $<
	$(RM) $@@
	mv -f lex.$*.c $@@
d205 1
a205 1
	$(CC) $(CFLAGS) -c $<
d209 1
a209 1
	$(CC) $(CFLAGS) -E -o $@@ $<
d212 2
a213 1
	-@@ $(CC) $(CFLAGS) -I. -E $< | \
d234 1
a234 1
	- $(RM) twcs1 twcs2
d242 1
a242 1
       twcs1 $(TWCS2) wcs.fits tpih1 $(TPIH2)
d268 4
a271 2
	-@@ twcs1
        ifdef TWCS2
d273 1
a273 1
	   -@@ twcs2 < /dev/null
d297 1
a297 1
tlin tprj1 tsph tspx twcs1 tpih1 : % : test/%.c $(WCSLIB)
d302 1
a302 1
tprj2 tcel1 tcel2 tspc twcs2 : % : test/%.c $(WCSLIB)
d316 2
a317 1
	$(MAKE) -C ../pgsbox all wcslib
a344 1
	-@@ echo "LIBS        := $(LIBS)"
d349 1
d383 3
a385 2
twcs1   : cel.h lin.h prj.h spc.h spx.h wcs.h
twcs2   : cel.h lin.h prj.h spc.h sph.h spx.h wcs.h
@


3.4
log
@WCSLIB 3.4: renamed tcel to tcel1 and added tcel2.
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 3.4.
d4 37
a40 35
# Summary of the main targets
# ---------------------------
#    all:       Build the library
#    clean:     Delete intermediate object files.
#    realclean: clean, and also delete executables and the object library.
#    test:      Compile and run the test programs.
#    test_s:    Compile and run the scalar test programs.
#    show_all:  Print the values of all variables used.
#
# Notes:
#    1) The makefile sets certain variables to default values and may then
#       change some of them depending on the value of the FLAVOUR variable.
#       The following FLAVOURs are available:
#
#          SUN/GNU    GNU  C compiler running under some version of SunOS.
#          SUN/GNUp   As above with profiling options.
#          SUN/ANSI   ANSI C compiler running under some version of SunOS.
#          SUN/Pure   SUN/GNU with "Purify" and "PureCoverage".
#          SUN/Quant  SUN/GNU with "Quantify".
#          Linux      Some version of Linux.
#          Linuxp     Some version of Linux, with profiling options.
#          DEC/Alpha  DEC/Alpha running Digital Unix (OSF/1).
#
#       Note that K&R C is no longer supported.
#
#       The FLAVOUR may conveniently be set as an environment variable or on
#       the GNU make command line, e.g.
#
#          gmake FLAVOUR=SUN/GNU
#
#       If your requirements don't match any predefined FLAVOUR then you might
#       be able to modify an existing one, add a new one, or simply modify the
#       defaults.
#
# $Id: Makefile,v 3.3 2003/10/22 07:28:12 mcalabre Exp mcalabre $
d46 4
d76 1
a76 1
# tprj2_s tcel1, tcel2, tspc, and twcs2) which use PGPLOT to plot test grids.
d80 1
a80 1
# PGPLOT link list; unset this to defeat compilation of test programs which
d84 4
d175 8
a182 1
MODULES := lin.o \
d184 1
a184 6
           sph.o \
           cel.o \
           spx.o \
           spc.o \
           wcs.o \
           cylfix.o
d198 1
d200 1
d203 11
d227 3
d232 1
a232 1
all : show_all lib
d242 8
a249 3
realclean cleaner cleanest : clean
	- $(RM) tlin tlin_s tprj1 tprj1_s tprj2 tprj2_s tsph tsph_s tcel1 \
                tcel2 tspx tspc twcsprt twcs1 twcs2 $(WCSLIB)
d251 2
a252 2
test : show_all tlin tprj1 $(TPRJ2) tsph $(TCEL) tspx twcsprt tspc twcs1 \
       $(TWCS2)
d261 1
a261 1
	   -@@ tprj2   < /dev/null
d273 4
a276 3
	-@@ tspc < /dev/null
	-@@ echo ""
	-@@ twcsprt
d283 7
d305 1
a305 1
tlin tprj1 tsph tspx twcsprt twcs1 : % : test/%.c $(WCSLIB)
d316 16
d345 12
a356 8
	-@@ echo "FLAVOUR   := $(FLAVOUR)"
	-@@ echo "CC        := $(CC)"
	-@@ echo "CFLAGS    := $(CFLAGS)"
	-@@ echo "RANLIB    := $(RANLIB)"
	-@@ echo "LDFLAGS   := $(LDFLAGS)"
	-@@ echo "LIBS      := $(LIBS)"
	-@@ echo "WCSTRIG   := $(WCSTRIG)"
	-@@ echo "PGPLOTLIB := $(PGPLOTLIB)"
d358 4
d363 11
a373 9
$(WCSLIB)(cel.o) : cel.h prj.h sph.h wcstrig.h
$(WCSLIB)(cylfix.o) : cel.h lin.h prj.h spc.h sph.h spx.h wcs.h
$(WCSLIB)(lin.o) : lin.h
$(WCSLIB)(prj.o) : prj.h wcsmath.h wcstrig.h
$(WCSLIB)(spc.o) : spc.h spx.h wcstrig.h
$(WCSLIB)(sph.o) : sph.h wcstrig.h
$(WCSLIB)(spx.o) : spx.h
$(WCSLIB)(wcs.o) : cel.h lin.h prj.h spc.h sph.h spx.h wcs.h wcsmath.h \
                   wcstrig.h
d376 2
d380 2
a381 2
tcel1   : cel.h prj.h
tcel2   : cel.h prj.h
a389 1
twcsprt : cel.h lin.h prj.h spc.h spx.h wcs.h
@


3.3
log
@WCSLIB 3.3: added the -ansi option to gcc to force it to behave like a strict
ANSI C compiler, specifically in setting the __STDC__ preprocessor macro;
changed PGPLOTLIB for Linux.
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 3.3.
d38 1
a38 1
# $Id: Makefile,v 3.2 2003/09/09 04:04:04 mcalabre Exp mcalabre $
d70 3
a72 3
# tprj2_s tcel, tspc, and twcs2) which use PGPLOT to plot test grids.  You can
# circumvent this by setting PGPLOTLIB to blank.  PGPLOT is a FORTRAN plotting
# library with separate C interface available from astro.caltech.edu.
d185 1
a185 1
  TCEL    := tcel
d215 2
a216 2
	- $(RM) tlin tlin_s tprj1 tprj1_s tprj2 tprj2_s tsph tsph_s tcel \
                tspx tspc twcsprt twcs1 twcs2 $(WCSLIB)
d234 3
a236 1
	   -@@ tcel
d269 1
a269 1
tprj2 tcel tspc twcs2 : % : test/%.c $(WCSLIB)
d311 2
a312 1
tcel    : cel.h prj.h
@


3.2
log
@WCSLIB 3.2: added %.i and %.d pattern rules; added -lz to PGPLOTLIB; changed
the order of twcsprt in the test suite; amended the dependency lists.
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB 3.2.
d38 1
a38 1
# $Id: Makefile,v 3.1 2003/04/28 08:25:21 mcalabre Exp mcalabre $
d76 1
a76 1
  PGPLOTLIB = -L/usr/local/lib -lcpgplot -lpgplot -lX11
d89 1
a89 1
  CC      := gcc
d93 1
a93 1
  PGPLOTLIB = -lcpgplot -lpgplot_g77 -lpng -lz -L/usr/local/X11/lib -lX11
d97 1
a97 1
  CC      := gcc-3.1.1
d100 1
a100 1
  PGPLOTLIB = -lcpgplot -lpgplot_g77 -lpng -lz -L/usr/local/X11/lib -lX11
d104 1
a104 1
  CC      := gcc
d109 1
a109 1
  PGPLOTLIB = -lcpgplot -lpgplot_g77 -lpng -lz -L/usr/local/X11/lib -lX11
d139 1
a139 1
  CC      := gcc
d142 1
a142 1
  PGPLOTLIB := -lcpgplot -lpgplot -L/usr/local/X11/lib -lX11
d146 1
a146 1
  CC      := gcc
d150 1
a150 1
  PGPLOTLIB := -lcpgplot -lpgplot -L/usr/local/X11/lib -lX11
@


3.1
log
@WCSLIB 3.1
@
text
@d2 1
a2 1
# GNU makefile for building WCSLIB.
d38 1
a38 1
# $Id: Makefile,v 3.1 2003/04/28 06:55:27 mcalabre Exp $
d93 1
a93 1
  PGPLOTLIB = -lcpgplot -lpgplot_g77 -lpng -L/usr/local/X11/lib -lX11
d100 1
a100 1
  PGPLOTLIB = -lcpgplot -lpgplot_g77 -lpng -L/usr/local/X11/lib -lX11
d109 1
a109 1
  PGPLOTLIB = -lcpgplot -lpgplot_g77 -lpng -L/usr/local/X11/lib -lX11
d193 9
d216 1
a216 1
                tspx tspc twcs1 twcs2 twcsprt $(WCSLIB)
d218 2
a219 2
test : show_all tlin tprj1 $(TPRJ2) tsph $(TCEL) tspx tspc twcs1 $(TWCS2) \
       twcsprt
d240 2
a246 2
	-@@ echo ""
	-@@ twcsprt
d262 1
a262 1
tlin tprj1 tsph tspx twcs1 twcsprt : % : test/%.c $(WCSLIB)
d296 2
a297 1
$(WCSLIB)(wcstrig.o) : wcsmath.h wcstrig.h
d300 1
a301 1
$(WCSLIB)(cel.o) : cel.h prj.h wcstrig.h
d303 3
a305 4
$(WCSLIB)(spc.o) : spc.h spx.h wcstrig.h
$(WCSLIB)(wcs.o) : wcs.h lin.h cel.h prj.h spc.h spx.h wcsmath.h wcstrig.h
$(WCSLIB)(cylfix.o) : cylfix.h wcs.h lin.h cel.h prj.h sph.h spc.h spx.h \
                      wcsmath.h wcstrig.h
d309 1
d314 1
a316 1
tcel    : cel.h prj.h
d318 3
a320 4
tspc    : spc.h spx.h wcstrig.h
twcs1   : wcs.h lin.h cel.h prj.h sph.h spx.h spc.h
twcs2   : wcs.h lin.h cel.h prj.h spc.h spx.h
twcsprt : wcs.h lin.h cel.h prj.h spc.h spx.h
@


3.0
log
@WCSLIB 3.0
@
text
@d24 1
d38 1
a38 1
# $Id: Makefile,v 2.12 2001/11/15 03:10:17 mcalabre Exp $
d41 1
a41 1
  CC := cc
d53 15
a67 4
# If you have a mathematics library with cosd(), sind(), tand(), acosd(),
# asind(), atand(), and atan2d() and you want to use it then add it to LIBS
# and clear the following variable.
  WCSTRIG := wcstrig.o
d70 1
a70 1
# tprj2_s tcel, and twcs2) which use PGPLOT to plot test grids.  You can
d76 4
a79 1
  PGPLOTLIB = -L/usr/local/lib -lcpgplot -lpgplot -lF77 -lM77 -lX11
d91 3
a93 2
  WCSTRIG :=
  LIBS    := -L/opt/SUNWspro/lib -lsunmath -lm
d99 2
a100 2
  WCSTRIG :=
  LIBS    := -L/opt/SUNWspro/lib -lsunmath -lm
d105 6
a110 5
  CFLAGS  := -pg -O -Wall -Wno-parentheses
  WCSTRIG :=
  LDFLAGS := -pg
  LIBS    := -L/opt/SUNWspro/lib -lsunmath -lm
  override EXTRA_CLEAN := gmon.out
d116 1
a116 1
  WCSTRIG :=
d123 1
a123 1
  WCSTRIG :=
d132 1
a132 1
  WCSTRIG :=
d141 2
a142 1
  PGPLOTLIB := -lcpgplot -lpgplot -lg2c -L/usr/local/X11/lib -lX11
d145 8
d154 1
d156 2
a157 1
  WCSTRIG :=
d165 1
a165 2
MODULES := $(WCSTRIG) \
           lin.o \
d171 10
a180 1
           wcs.o
d260 2
a261 1
	   $(CC) $(CFLAGS) -I. $(LDFLAGS) -o $@@ $< $(WCSLIB) $(PGPLOTLIB) $(LIBS)
d271 2
a272 1
	   $(CC) $(CFLAGS) -I. $(LDFLAGS) -o $@@ $< $(WCSLIB) $(PGPLOTLIB) $(LIBS)
d295 2
@


2.13
log
@Added SUN/GNUp; changed the dependency of tproj2, tcel and twcs2 to %.c
rather than %.o.
@
text
@d10 1
d21 2
a22 3
#          SUN/Pure   SUN/ANSI with "Purify" and "PureCoverage".
#          SUN/Quant  SUN/ANSI with "Quantify".
#          SUN/K&R    K&R  C compiler running under some version of SunOS.
d26 2
d31 1
a31 1
#          gmake FLAVOUR='SUN/K&R'
d37 1
a37 5
#    2) Preprocessor macro replacements for the IEEE copysign() and signbit()
#       functions are available by defining the COPYSIGN and/or SIGNBIT
#       preprocessor macros.
#
# $Id: Makefile,v 2.12 2001/11/15 03:10:17 mcalabre Exp mcalabre $
d52 9
a60 9
# If your mathematics library has cosd(), sind(), tand(), acosd(), asind(),
# atand(), and atan2d() and you want to use them then declare the required
# header file here.
  TRIGD :=

# The PGPLOTLIB option is only required for compiling test programs (tproj2,
# tcel, and twcs2) which use PGPLOT to plot test grids.  You can circumvent
# this by setting PGPLOTLIB to blank.  PGPLOT is a FORTRAN plotting library
# with separate C interface available from astro.caltech.edu.
d64 1
a64 1
  PGPLOTLIB = -lcpgplot -lpgplot -lF77 -lM77 -lX11
d74 11
a84 2
   CC      := gcc
   LIBS    := -L/opt/SUNWspro/lib -lsunmath -lm
d88 6
a93 4
   CC      := gcc
   CFLAGS  := -pg -O
   LDFLAGS := -pg
   LIBS    := -L/opt/SUNWspro/lib -lsunmath -lm
d97 4
a100 9
   CC      := cc
   LIBS    := -lsunmath -lm
   TRIGD   := sunmath.h
   CFLAGS  += -I/usr/local/include
endif

ifeq "$(FLAVOUR)" "SUN/K&R"
   CC      := /usr/ucb/cc
   CFLAGS  += -DSIGNBIT
d104 6
a109 6
   CC      := purify purecov cc
   CFLAGS  := -g
   LIBS    := -lsunmath -lm
   TRIGD   := sunmath.h
   LDFLAGS :=
   override EXTRA_CLEAN := *_pure_p*.[ao] *.pcv .pure
d113 6
a118 6
   CC      := quantify cc
   CFLAGS  := -g
   LIBS    := -lsunmath -lm
   TRIGD   := sunmath.h
   LDFLAGS :=
   override EXTRA_CLEAN := *_pure_q*.[ao] .pure
d122 3
a124 4
   CC      := gcc
   CFLAGS  += -DSIGNBIT -I/usr/local/include
   CFLAGS  += -Wall -Wno-uninitialized -Wno-parentheses
   PGPLOTLIB := -lcpgplot -lpgplot -lg2c -L/usr/local/X11/lib -lX11
d128 3
a130 2
   CFLAGS  += -DSIGNBIT -D"atan2d=atand2"
   TRIGD   := math.h
d136 1
a136 5
ifeq "$(TRIGD)" ""
   WCSTRIG := wcstrig.o
endif

LIBRARY := libwcs_c.a
d138 6
a143 4
           lin.o  \
           proj.o \
           sph.o  \
           cel.o  \
d147 4
a150 3
   TPROJ2 := tproj2
   TCEL   := tcel
   TWCS2  := twcs2
d157 1
a157 1
.PHONY : all clean lib realclean test
d161 1
a161 1
lib : $(LIBRARY)
d163 2
a164 2
$(LIBRARY) : $(MODULES:%=$(LIBRARY)(%))
	$(RANLIB) $(LIBRARY)
d169 3
a171 2
realclean : clean
	- $(RM) tlin tproj1 tproj2 tsph tcel twcs1 twcs2 $(LIBRARY)
d173 2
a174 1
test : show_all tlin tproj1 $(TPROJ2) tsph $(TCEL) twcs1 $(TWCS2)
d180 2
a181 2
	-@@ tproj1
        ifdef TPROJ2
d183 1
a183 1
	   -@@ tproj2 < /dev/null
d189 1
a189 1
	   -@@ tcel < /dev/null
d192 3
d200 26
d227 1
a227 1
tlin tproj1 tsph twcs1 : % : %.c $(LIBRARY)
d229 1
a229 1
	   $(CC) $(CFLAGS) $(LDFLAGS) -o $@@ $< $(LIBRARY) $(LIBS)
d232 1
a232 1
tproj2 tcel twcs2 : % : %.c $(LIBRARY)
d234 1
a234 1
	   $(CC) $(LDFLAGS) -o $@@ $< $(LIBRARY) $(LIBS) $(PGPLOTLIB)
a244 1
	-@@ echo "TRIGD     := $(TRIGD)"
d249 23
a271 18
$(LIBRARY)(wcstrig.o) : wcstrig.h
$(LIBRARY)(lin.o)  : lin.h
$(LIBRARY)(proj.o) : wcsmath.h proj.h
$(LIBRARY)(sph.o)  : wcstrig.h
$(LIBRARY)(cel.o)  : cel.h
$(LIBRARY)(wcs.o)  : wcsmath.h wcs.h

tlin   : lin.h
tproj1 : proj.h
tproj2 : proj.h
tsph   : wcstrig.h
tcel   : cel.h
twcs1  : wcs.h
twcs2  : wcs.h

proj.h : wcstrig.h
cel.h  : proj.h
wcs.h  : cel.h lin.h
@


2.12
log
@Revised LIBS for SUN/GNU; made the library modules, rather than the object
modules, dependent on the header files.
@
text
@d18 1
d39 1
a39 1
# $Id: Makefile,v 2.11 2000/12/06 00:54:46 mcalabre Exp mcalabre $
d80 7
d198 1
a198 1
tproj2 tcel twcs2 : % : %.o $(LIBRARY)
d201 1
@


2.11
log
@Use the cpgplot interface to PGPLOT rather than the old tpgc.c and tpgf.f
wrappers and use the C compiler to link to it thus eliminating use of the
FORTRAN compiler; eliminated references to Ultrix, Convex and SGI.
@
text
@d38 1
a38 1
# $Id: Makefile,v 2.11 2000/12/05 03:47:42 mcalabre Exp mcalabre $
d76 1
a76 1
   LIBS    := -lsunmath -lm
d207 6
a212 6
wcstrig.o : wcstrig.h
lin.o  : lin.h
proj.o : wcsmath.h proj.h
sph.o  : wcstrig.h
cel.o  : cel.h
wcs.o  : wcsmath.h wcs.h
@


2.10
log
@Augmented Linux CFLAGS.
@
text
@a23 5
#          DEC/Ultrix DEC/Ultrix.
#          Convex     Convex/ConvexOS.
#          SGI/32     SGI/IRIX using the 32-bit C and FORTRAN compilers.
#          SGI/64     SGI/IRIX using the 64-bit C and FORTRAN compilers.
#          SGI/P64    SGI/IRIX using the 64-bit Power C and FORTRAN compilers.
d34 3
a36 4
#    2) The native Convex C compiler does not have the IEEE copysign()
#       function, and some versions of Ultrix have a version which returns
#       garbage.  In such cases a preprocessor macro replacement for
#       copysign() is available by defining the COPYSIGN preprocessor macro.
d38 1
a38 3
#       Likewise, the SGI compiler doesn't have the IEEE signbit() function.
#
# $Id: Makefile,v 2.9 1999/12/13 07:39:57 mcalabre Exp mcalabre $
d58 4
a61 8
# The FC, FFLAGS, and PGPLOTLIB options are only required for compiling test
# programs (tproj2, tcel, and twcs2) which use PGPLOT to plot test grids.
# You can circumvent this by setting PGPLOTLIB to blank.  PGPLOT is a FORTRAN
# plotting library available from astro.caltech.edu.

# FORTRAN compiler (used only for linking test programs to PGPLOT).
  FC     := f77
  FFLAGS := -O
d65 1
a65 1
  PGPLOTLIB = -lpgplot -lX11
a76 7

   # Although written in C the plotting programs are linked to PGPLOT using
   # the FORTRAN compiler since it passes the correct FORTRAN libraries to
   # 'ld'.  However, the GNU C library must then be added explicitly to the
   # link list to resolve certain symbols specific to gcc.  The following
   # definition is very specific to OS/compiler version numbers.
   PGPLOTLIB += -L/usr/local/gnu/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2 -lgcc
d83 1
a83 1
   FFLAGS  += -u
a95 2
   FC      := purify purecov f77
   FFLAGS  := -g -u
a104 2
   FC      := quantify f77
   FFLAGS  := -g -u
d110 4
a113 2
   CFLAGS  += -DSIGNBIT -Wall -Wno-uninitialized -Wno-parentheses
   PGPLOTLIB := -L/usr/local/X11/lib -lpgplot -lX11
a118 35
   FFLAGS  += -nofor_main
endif

ifeq "$(FLAVOUR)" "DEC/Ultrix"
   CFLAGS  += -DCOPYSIGN -DSIGNBIT
endif

ifeq "$(FLAVOUR)" "Convex"
   CFLAGS  := -O3 -DCOPYSIGN -DSIGNBIT
   FFLAGS  := -O3
endif

ifeq "$(FLAVOUR)" "SGI/32"
   CFLAGS  += -32 -DSIGNBIT
   RANLIB  := @@ :
   FFLAGS  += -32
   LDFLAGS += -32
   PGPLOTLIB := -L/usr/local/lib -lpgplot -lX11
endif

ifeq "$(FLAVOUR)" "SGI/64"
   CFLAGS  += -64 -DSIGNBIT
   RANLIB  := @@ :
   FFLAGS  += -64
   PGPLOTLIB := -L/usr/local/lib64 -lpgplot -lX11
endif

ifeq "$(FLAVOUR)" "SGI/P64"
   CFLAGS  += -64 -pca keep -DSIGNBIT
   RANLIB  := @@ :
   FFLAGS  += -64 -pfa keep
   LIBS    += -lmp
   PGPLOTLIB := -L/usr/local/lib64 -lpgplot -lX11
   RM      += -r
   override EXTRA_CLEAN := *.l *.w2c.* *.anl *.m rii_files
a145 4
%.o : %.f
	-@@ echo ""
	$(FC) $(FFLAGS) -c $<

d190 1
a190 1
tproj2 tcel twcs2 : % : %.o tpgc.o tpgf.o $(LIBRARY)
d192 1
a192 1
	   $(FC) $(FFLAGS) $(LDFLAGS) -o $@@ $< tpgc.o tpgf.o $(LIBRARY) $(LIBS) $(PGPLOTLIB)
a203 2
	-@@ echo "FC        := $(FC)"
	-@@ echo "FFLAGS    := $(FFLAGS)"
@


2.9
log
@Revised variable definitions for several FLAVOURs.
@
text
@d46 1
a46 1
# $Id: Makefile,v 2.8 1999/11/19 00:00:40 mcalabre Exp mcalabre $
d133 1
a133 1
   CFLAGS  += -DSIGNBIT
@


2.8
log
@Added Linux flavour.
@
text
@d46 1
a46 1
# $Id: Makefile,v 2.7 1998/01/30 00:14:34 mcalabre Exp mcalabre $
a88 1
   FC      := g77
d116 2
a117 1
   FFLAGS  += -u
d127 2
a128 1
   FFLAGS  += -u
d157 1
a157 1
   PGPLOTLIB := -L/usr/local/lib -lpgplot -lgl_s -lX11
d173 2
a174 1
   override EXTRA_CLEAN := *.L *.M *.P *.anl *.m
@


2.7
log
@Added FLAVOURS "SUN/Pure" and "SUN/Quant".
@
text
@d22 1
d46 1
a46 1
# $Id: Makefile,v 2.6 1997/01/02 22:12:53 mcalabre Exp mcalabre $
d87 3
a89 1
   CC := gcc
d129 5
@


2.6
log
@Added wcsmath.h as a dependency of wcs.o and proj.o.
@
text
@d19 2
d45 1
a45 1
# $Id: Makefile,v 2.5 1996/09/10 06:30:24 mcalabre Exp mcalabre $
d106 20
@


2.5
log
@Added "DEC/Alpha" FLAVOUR, and revised the "SUN/GNU" settings.
@
text
@d43 1
a43 1
# $Id: Makefile,v 2.4 1996/05/07 20:55:27 mcalabre Exp mcalabre $
d239 1
a239 1
proj.o : proj.h
d242 1
a242 1
wcs.o  : wcs.h
@


2.4
log
@Use TRIGD and WCSTRIG for optional compilation of wcstrig.  Split twcs into
twcs1 and twcs2.
@
text
@d20 1
d43 1
a43 1
# $Id: Makefile,v 2.3 1995/11/16 06:18:42 mcalabre Exp mcalabre $
d91 1
a91 1
   PGPLOTLIB += -L/usr/local/gnu/lib/gcc-lib/sparc-sun-sunos4.1.3/2.6.0 -lgcc
d95 4
a98 4
   CC     := cc
   LIBS   := -lsunmath -lm
   TRIGD  := sunmath.h
   FFLAGS += -u
d102 2
a103 1
   CC     := /usr/ucb/cc
d106 6
d113 1
a113 1
   CFLAGS += -DCOPYSIGN -DSIGNBIT
d117 2
a118 2
   CFLAGS := -O3 -DCOPYSIGN -DSIGNBIT
   FFLAGS := -O3
d220 1
a220 1
	   $(FC) $(LDFLAGS) -o $@@ $< tpgc.o tpgf.o $(LIBRARY) $(LIBS) $(PGPLOTLIB)
@


2.3
log
@Added *.anl and *.m to EXTRA_CLEAN for SGI/P64.
@
text
@d42 1
a42 1
# $Id: Makefile,v 2.2 1995/11/16 06:16:49 mcalabre Exp mcalabre $
d57 5
d63 1
a63 1
# programs (tproj2, tcel, and twcs) which use PGPLOT to plot test grids.
d94 3
a96 2
   CC     := acc
   LIBS   :=
d140 4
d145 1
a145 1
MODULES := wcstrig.o \
d155 1
a155 1
   TWCS   := twcs
d179 1
a179 1
	- $(RM) tlin tproj1 tproj2 tsph tcel twcs $(LIBRARY)
d181 1
a181 1
test : show_all tlin tproj1 $(TPROJ2) tsph $(TCEL) $(TWCS)
d198 3
a200 1
        ifdef TWCS
d202 1
a202 1
	   -@@ twcs < /dev/null
d205 1
a205 1
tlin tproj1 tsph : % : %.c $(LIBRARY)
d210 1
a210 1
tproj2 tcel twcs : % : %.o tpgc.o tpgf.o $(LIBRARY)
d222 2
d241 2
a242 1
twcs   : wcs.h
@


2.2
log
@Added *.P to EXTRA_CLEAN for SGI/P64.
@
text
@d42 1
a42 1
# $Id: Makefile,v 2.1 1995/11/09 03:04:52 mcalabre Exp mcalabre $
d128 1
a128 1
   override EXTRA_CLEAN := *.L *.M *.P
@


2.1
log
@Added SGI/P64 flavour.
@
text
@d42 1
a42 1
# $Id: Makefile,v 2.0 1995/09/11 03:47:55 mcalabre Exp mcalabre $
d128 1
a128 1
   override EXTRA_CLEAN := *.L *.M
@


2.0
log
@WCSLIB 2.0
@
text
@d24 1
d42 1
a42 1
# $Id: Makefile,v 1.2 1995/09/11 03:46:59 mcalabre Exp mcalabre $
d70 3
d110 1
a111 1
   FFLAGS  += -32
d117 1
d119 5
d125 2
d128 1
d166 1
a166 1
	- $(RM) *.o *.i a.out core
d200 1
a200 1
	   $(FC) $(LDFLAGS) -o $@@ $< tpgc.o tpgf.o $(LIBRARY) $(PGPLOTLIB)
d213 1
@


1.2
log
@Select variable definitions tailored for particular platforms via the
FLAVOUR variable.  Compile new modules (lin.c and cel.c) and their
corresponding test programs.
@
text
@d41 1
a41 1
# $Id: Makefile,v 1.1 1995/01/31 03:09:08 mcalabre Exp mcalabre $
@


1.1
log
@Initial revision
@
text
@d13 22
a34 1
#    1) The native Convex C compiler does not have the IEEE copysign()
d39 3
a41 1
# $Id$
d44 2
a45 8
#
#              CC       CFLAGS     LIBS
#             ---  --------------  ----
# GNU         gcc  -O              -lm
# SUN/ANSI    acc  -O
# SUN/K&R      cc  -O              -lm
# DEC          cc  -O  -DCOPYSIGN  -lm
# Convex       cc  -O3 -DCOPYSIGN
d47 2
a48 2
  CC := gcc
  CFLAGS  := -O
d56 4
a59 4
# The remaining options are only required for compiling those test programs
# (tproj2 and tsph) which use PGPLOT to plot test grids.  You can circumvent
# this by setting PGPLOTLIB to blank.  PGPLOT is a FORTRAN plotting library
# available from astro.caltech.edu.  
d61 1
a61 1
# FORTRAN compiler (for linking test programs to PGPLOT).
d65 45
a109 5
# Although written in C the plotting programs are linked to PGPLOT using the
# FORTRAN compiler since it passes the correct FORTRAN libraries to 'ld'.
# However, if you've compiled the C objects with gcc then the GNU C library
# must be added explicitly to resolve certain symbols specific to gcc.
  GCCLIB := -L/usr/local/gnu/lib/gcc-lib/sparc-sun-sunos4.1.3/2.6.0 -lgcc
d111 6
a116 2
# PGPLOT link list.
  PGPLOTLIB := -lpgplot -lX11 $(GCCLIB)
d122 3
a124 2
MODULES := proj.o \
           wcs.o  \
d126 2
a127 1
           wcstrig.o
d131 1
d145 1
a145 1
all : lib
d150 1
a150 1
	ranlib $(LIBRARY)
d156 1
a156 1
	- $(RM) tproj1 tproj2 tsph twcs $(LIBRARY)
d158 1
a158 1
test : tproj1 $(TPROJ2) tsph $(TWCS)
d161 3
d171 4
d177 1
a177 1
	   -@@ twcs
d180 1
a180 1
tproj1 tsph : % : %.c $(LIBRARY)
d185 1
a185 1
tproj2 twcs : % : %.o tpgc.o tpgf.o $(LIBRARY)
d190 2
d194 1
d197 2
a199 4
	-@@ echo "LIBRARY   := $(LIBRARY)"
	-@@ echo "MODULES   := $(MODULES)"
	-@@ echo "TPROJ2    := $(TPROJ2)"
	-@@ echo "TWCS      := $(TWCS)"
d201 2
d205 1
a206 1
wcstrig.o : wcstrig.h
d208 1
d212 1
d216 2
a217 1
wcs.h  : proj.h
@
