#-------------------------------------------------------------------------------
#
# Makefile for HOME/SatTrack/src
#
# Author:      Manfred Bester
# Started:     12Feb92
# Last change: 05Jan95
#
#
# Copyright (c) 1992-1995 Manfred Bester. All Rights Reserved. 
#
# Permission to use, copy, modify, and distribute this software and its 
# documentation for educational, research and non-profit purposes, without 
# fee, and without a written agreement is hereby granted, provided that the 
# above copyright notice and the following three paragraphs appear in all 
# copies. 
#
# Permission to incorporate this software into commercial products may be 
# obtained from the author, Dr. Manfred Bester, 1636 M. L. King Jr. Way, 
# Berkeley, CA 94709, USA. 
#
# IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, 
# SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF 
# THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE AUTHOR HAS BEEN ADVISED 
# OF THE POSSIBILITY OF SUCH DAMAGE. 
#
# THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT 
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 
# PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" 
# BASIS, AND THE AUTHOR HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, 
# UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
#-------------------------------------------------------------------------------
#
# MACHINE CONFIGURATION  (TO BE SELECTED BY THE USER)
#
#
# The five lines with 'CPU', 'CC_CMACH', 'CC_LMACH', 'CC_LBSD' and 'CC' need to 
# be activated for a particular machine on which the code will be compiled and 
# linked. 'CPU' is used only to tell at link time what machine is selected. The 
# variable 'CC_LBSD' is used for the compilation of 'nistime' only.
#
# If the Gnu C compiler is not available, set 'CC to 'cc' instead of 'gcc'. 
# For a very rigorous compilation the flags '-Wconversion' and '-Wall' can be 
# added to the 'CC_CMACH' line when using 'gcc'.
#
# The flag 'STDLIB' is used to NOT include 'stdlib.h' explicitly, because in 
# some systems like SunOS 4.x.x 'stdlib.h' is included already somewhere else 
# by default. Be aware that there are three different configurations for these 
# five lines for Sun SPARCstations, especially when using 'gcc'! If this is 
# not set up correctly, the 'atof' function will not work right. 
#
# The flag 'TIME' is used to NOT include 'time.h' on a Sun-3 with SunOS 4.x.x.
#
# The flag 'TERMIO' is needed on IBM RS6000's and HP Apollo 9000 Series 700's 
# in order to include 'termio.h' instead of 'termios.h'.
#
# The flag 'HPTERM' is used to include the cursor control sequences for a 
# HP terminal as opposed to a VT100 type terminal. 
#
# If SatTrack is compiled under FreeBSD, the flag 'FREEBSD' needs to be set. 
# In this case 'IOCTL' needs to be included also in order to add 'sys/ioctl.h'.
#
# For the X Window system (X11R5 or X11R6) a few more line needs to be 
# configured properly (see below in the following two sections).
#

# Sun-3         (Sun 3/80 with SunOS 4.x.x)
#
#CPU		= Sun-3/SunOS
#CC_CMACH	= -f68881 -O -DSTDLIB -DTIME
#CC_LMACH	= -f68881
#CC_LBSD	=
#CC		= cc

# Sun-4         (SPARCstation IPC or 10 with SunOS 4.x.x, using 'cc' or 'gcc')
#
CPU		= Sun-4/SunOS
CC_CMACH	= -O3 -DSTDLIB
CC_LMACH	=
CC_LBSD		=
CC		= gcc

# Sun-4         (SPARCstation 5 or 10 with Solaris 2.x, using 'cc' only)
#
#CPU		= Sun-4/Solaris
#CC_CMACH	= -O3 -DSTDLIB -DSVR4
#CC_LMACH	=
#CC_LBSD	=
#CC		= cc

# Sun-4         (SPARCstation 5 or 10 with Solaris 2.x, using 'gcc' only)
#
#CPU		= Sun-4/Solaris
#CC_CMACH	= -O3 -DSVR4
#CC_LMACH	=
#CC_LBSD	= -L/usr/ucblib -lucb -lsocket -lnsl
#CC		= gcc

# Apollo 700    (HP Apollo 9000 Series 700 with HPUX)
#
#CPU		= HP9000-700/HPUX
#CC_CMACH	= -O -DTERMIO -DHPUX -DHPTERM
#CC_LMACH	= -lBSD
#CC_LBSD	=
#CC		= gcc

# RS/6000       (IBM RS/6000 with AIX)
#
#CPU		= IBM-RS6000/AIX
#CC_CMACH	= -O -DSTDLIB -DTERMIO
#CC_LMACH	=
#CC_LBSD	=
#CC		= bsdcc

# i386          (i386 with Linux)
#
#CPU		= i386/Linux
#CC_CMACH	= -O
#CC_LMACH	=
#CC_LBSD	=
#CC		= gcc

# i486          (i486 with Linux)
#
#CPU		= i486/Linux
#CC_CMACH	= -O2 -m486
#CC_LMACH	=
#CC_LBSD	=
#CC		= gcc

# i386          (i386 with NetBSD)
#
#CPU		= i386/NetBSD
#CC_CMACH	= -O
#CC_LMACH	=
#CC_LBSD	=
#CC		= gcc

# i386          (i386 with FreeBSD)
#
#CPU		= i386/FreeBSD
#CC_CMACH	= -O -DFREEBSD -DIOCTL
#CC_LMACH	=
#CC_LBSD	=
#CC		= gcc

#
#-------------------------------------------------------------------------------
#
# OTHER COMPILER FLAGS  (TO BE CONFIGURED BY THE USER)
#
#
# HOMEDIR        uses environment variable HOME to create directory names
#                (if undefined the variable SATDIR in 'sattrack.h' is used)
#                (also see below!)
#
# SUNTRANSITS    allows calculation of satellite transits in front of the Sun
#                (this does not affect the batch mode for transits)
#
# REVERSEVIDEO   allows display of reverse video and underline characters
#                (if undefined, normal video is used always instead)
#
# NOBEEP         allows the beep (bell) character to be suppressed
#
# VISIBPASSES    predicts only those passes in the short prediction table of 
#                satellites that are visible. If '-DVISIBPASSES' is not 
#                included, also daytime passes will be predicted. The columns
#                in the predictions tables are optimized for either visible
#                observations or radio communications.
#
# XWINDOW        For using the X Window graphics display this flag needs to be 
#                included. If the X Window system (X11R5 or X11R6) is not 
#                installed, or if the graphics display is not to be used, the 
#                option '-DXWINDOW' has to be deleted. If this flag is included 
#                the user needs to make sure that the location of the X11 
#                directory with the X11 header files is set properly in the 
#                include option (see below in the section 'COMBINED COMPILER 
#                AND LINKER OPTIONS').
#

#CC_CUSR	= -DHOMEDIR -DREVERSEVIDEO -DSUNTRANSITS -DXWINDOW -DNOBEEP
#CC_CUSR	= -DHOMEDIR -DREVERSEVIDEO -DVISIBPASSES -DXWINDOW
#CC_CUSR	= -DHOMEDIR -DREVERSEVIDEO
CC_CUSR		= -DHOMEDIR -DREVERSEVIDEO -DXWINDOW -DNOBEEP

#
#-------------------------------------------------------------------------------
#
# HOME DIRECTORY  (TO BE CONFIGURED BY THE USER)
#
# If SatTrack is not to be installed under $HOME (which is the default), then 
# HOME needs to be changed to where SatTrack is installed. The same change 
# needs to made to the shell script 'gettle' and also to SATDIR in 'sattrack.h'.
#

#HOME		= /usr1/manfred

#
#-------------------------------------------------------------------------------
#
# SATTRACK SUB-DIRECTORIES
#

SRC		= $(HOME)/SatTrack/src
OBJ    		= $(HOME)/SatTrack/obj
RUN     	= $(HOME)/SatTrack/run

INC		= $(SRC)/include

AMSAT		= $(SRC)/makeamsat
FXCHK		= $(SRC)/fixchecksum
MPASS		= $(SRC)/makepassesx
MTLES		= $(SRC)/maketles
MTLEX		= $(SRC)/maketlex
NISTM		= $(SRC)/nistime
SATFL		= $(SRC)/satfilter
SATTR		= $(SRC)/sattrack
XDEMO		= $(SRC)/xdemo

#
#-------------------------------------------------------------------------------
#
# ISI CONFIGURATION  (ONLY USED WITH THE ISI TELESCOPE SYSTEM)
#
# For controlling the ISI telescopes, the following lines need to be included.
# Otherwise the empty lines ISICOMM_INC, ISICOMM_OBJ and CC_CISI have to be 
# activated. The flag '-DISI' defines 'ISI' which is used to include special 
# code to control the telescopes via remote procedure calls. 
#

ISISOFT		= /usr1/isisoft
ISIOBJ		= $(ISISOFT)/obj/Object
ISIINC		= $(ISISOFT)/src/VxSource/include

#ISICOMM_INC	= $(ISIINC)/globalserver.h $(ISIINC)/trackconserver.h

#ISICOMM_OBJ	= $(ISIOBJ)/globalserver_clnt.o $(ISIOBJ)/globalserver_xdr.o \
#                  $(ISIOBJ)/globals_c.o \
#                  $(ISIOBJ)/trackconserver_clnt.o $(ISIOBJ)/trackcon_c.o

#CC_CISI	= -DISI

ISICOMM_INC	=
ISICOMM_OBJ	=
CC_CISI		=

#
#-------------------------------------------------------------------------------
#
# COMBINED COMPILER AND LINKER OPTIONS
#
# 'X11' is the location of the X11 sub-directory with the X11 header files. 
# The installation of X11R5 or X11R6 may be different in that respect between 
# machines. One of the following first three lines is used in the shown order 
# on isi7, isi8, and isi9, respectively. The user may need to add another line 
# and activate that for a particular machine, depending upon where X11 is 
# installed. 
#
# If X11R6 is installed, the linker also needs '-lICE -lSM' (activate the 
# second line for 'LX11' instead of the first one). 
#
# If XWINDOW is undefined above, the two empty lines for 'CC_CXINC" and 
# 'CC_LXINC' have to be activated and the other two lines have to be commented 
# out. 
#

#X11		= /usr/include
X11		= /usr/local/include
#X11		= /usr/X11R5/include
#X11		= /usr/openwin/include

LX11		= -lX11 -lXt
#LX11		= -lX11 -lXt -lICE -lSM

#CC_CXINC	=
CC_CXINC	= -I$(X11)

#CC_LXINC	=
CC_LXINC	= $(LX11)

CC_CINC		= -I$(INC)
CC_LINC		=

CC_CGEN		= -c
CC_LGEN		= -lm

CC_COPT		= $(CC_CGEN) $(CC_CMACH) $(CC_CUSR) $(CC_CISI) $(CC_CINC)
CC_LOPT		= $(CC_LGEN) $(CC_LMACH) $(CC_LINC)

#
#-------------------------------------------------------------------------------
#

.INIT:

.DONE:
	@echo

#
#-------------------------------------------------------------------------------
#

all:	fixchecksum makeamsat makepassesx maketles maketlex satfilter \
	sattrack xdemo nistime

clean:
	cd $(OBJ) ; \
	/bin/rm *.o ; \
	cd $(RUN) ; \
	/bin/rm fixchecksum makeamsat makepassesx maketles maketlex \
	satfilter sattrack xdemo nistime

#
#-------------------------------------------------------------------------------
#
fixchecksum_OBJ	= $(OBJ)/fixchecksum.o

fixchecksum:	$(RUN)/fixchecksum ;
$(RUN)/fixchecksum: $(fixchecksum_OBJ) \
	$(INC)/sattrack.h $(INC)/hpterm.h $(INC)/vt100.h
	@echo linking $@ for a $(CPU) ...
	@$(CC) $(fixchecksum_OBJ) $(CC_LOPT) -o $@
#
#-------------------------------------------------------------------------------
#
makeamsat_OBJ	= $(OBJ)/makeamsat.o

makeamsat:	$(RUN)/makeamsat ; 
$(RUN)/makeamsat: $(makeamsat_OBJ) \
	$(INC)/sattrack.h $(INC)/hpterm.h $(INC)/vt100.h
	@echo linking $@ for a $(CPU) ...
	@$(CC) $(makeamsat_OBJ) $(CC_LOPT) -o $@
#
#-------------------------------------------------------------------------------
#
makepassesx_OBJ	= $(OBJ)/makepassesx.o

makepassesx:	$(RUN)/makepassesx ; 
$(RUN)/makepassesx: $(makepassesx_OBJ) \
	$(INC)/sattrack.h $(INC)/hpterm.h $(INC)/vt100.h
	@echo linking $@ for a $(CPU) ...
	@$(CC) $(makepassesx_OBJ) $(CC_LOPT) -o $@
#
#-------------------------------------------------------------------------------
#
maketles_OBJ	= $(OBJ)/maketles.o

maketles: 	$(RUN)/maketles ;
$(RUN)/maketles: $(maketles_OBJ) \
	$(INC)/sattrack.h $(INC)/hpterm.h $(INC)/vt100.h
	@echo linking $@ for a $(CPU) ...
	@$(CC) $(maketles_OBJ) $(CC_LOPT) -o $@
#
#-------------------------------------------------------------------------------
#
maketlex_OBJ	= $(OBJ)/maketlex.o

maketlex: 	$(RUN)/maketlex ;
$(RUN)/maketlex: $(maketlex_OBJ) \
	$(INC)/sattrack.h $(INC)/hpterm.h $(INC)/vt100.h
	@echo linking $@ for a $(CPU) ...
	@$(CC) $(maketlex_OBJ) $(CC_LOPT) -o $@
#
#-------------------------------------------------------------------------------
#
nistime_OBJ	= $(OBJ)/nisttcp.o $(OBJ)/nistsw.o

nistime: 	$(RUN)/nistime ;
$(RUN)/nistime: $(nistime_OBJ)
	@echo linking $@ for a $(CPU) ...
	@$(CC) $(nistime_OBJ) $(CC_LOPT) $(CC_LBSD) -o $@
#
#-------------------------------------------------------------------------------
#
satfilter_OBJ	= $(OBJ)/satfilter.o

satfilter: 	$(RUN)/satfilter ;
$(RUN)/satfilter: $(satfilter_OBJ) \
	$(INC)/sattrack.h $(INC)/hpterm.h $(INC)/vt100.h
	@echo linking $@ for a $(CPU) ...
	@$(CC) $(satfilter_OBJ) $(CC_LOPT) -o $@
#
#-------------------------------------------------------------------------------
#
sattrack_OBJ	= $(OBJ)/satargs.o $(OBJ)/satcalc.o $(OBJ)/satchar.o \
	$(OBJ)/satcity.o $(OBJ)/satctrl.o $(OBJ)/satdisp.o $(OBJ)/satelem.o \
        $(OBJ)/satgraph.o $(OBJ)/satheli.o $(OBJ)/satmath.o $(OBJ)/satnute.o \
	$(OBJ)/satprec.o $(OBJ)/satprop.o $(OBJ)/satread.o $(OBJ)/satrefr.o \
	$(OBJ)/sattele.o $(OBJ)/sattest.o $(OBJ)/sattime.o $(OBJ)/sattrack.o \
	$(OBJ)/satvect.o

sattrack: 	$(RUN)/sattrack ;
$(RUN)/sattrack: $(sattrack_OBJ) $(ISICOMM_OBJ) \
	$(INC)/sattrack.h $(INC)/satglobals.h $(INC)/satglobalsp.h \
	$(INC)/satglobalsx.h $(INC)/satglobalspx.h $(INC)/satprop.h \
	$(INC)/satstrings.h $(INC)/hpterm.h $(INC)/vt100.h $(ISICOMM_INC)
	@echo linking $@ for a $(CPU) ...
	@$(CC) $(sattrack_OBJ) $(ISICOMM_OBJ) $(CC_LOPT) $(CC_LXINC) -o $@
#
#-------------------------------------------------------------------------------
#
xdemo_OBJ	= $(OBJ)/xdemo.o $(OBJ)/satvect.o

xdemo:		$(RUN)/xdemo ;
$(RUN)/xdemo:	$(xdemo_OBJ) \
	$(INC)/sattrack.h $(INC)/satstrings.h \
	$(INC)/shuttle.h $(INC)/mir.h $(INC)/world.xbm
	@echo linking $@ for a $(CPU) ...
	@$(CC) $(xdemo_OBJ) $(CC_LOPT) $(CC_LXINC) -o $@
#
#-------------------------------------------------------------------------------
#

$(OBJ)/fixchecksum.o:	$(FXCHK)/fixchecksum.c \
	$(INC)/sattrack.h $(INC)/hpterm.h $(INC)/vt100.h ;
	@echo compiling $@ ...
	@$(CC) $(FXCHK)/fixchecksum.c $(CC_COPT) -o $@

$(OBJ)/makeamsat.o:		$(AMSAT)/makeamsat.c \
	$(INC)/sattrack.h $(INC)/hpterm.h $(INC)/vt100.h ;
	@echo compiling $@ ...
	@$(CC) $(AMSAT)/makeamsat.c $(CC_COPT) -o $@

$(OBJ)/makepassesx.o:	$(MPASS)/makepassesx.c \
	$(INC)/sattrack.h $(INC)/hpterm.h $(INC)/vt100.h ;
	@echo compiling $@ ...
	@$(CC) $(MPASS)/makepassesx.c $(CC_COPT) -o $@

$(OBJ)/maketles.o:	$(MTLES)/maketles.c \
	$(INC)/sattrack.h $(INC)/hpterm.h $(INC)/vt100.h ;
	@echo compiling $@ ...
	@$(CC) $(MTLES)/maketles.c $(CC_COPT) -o $@

$(OBJ)/maketlex.o:	$(MTLEX)/maketlex.c \
	$(INC)/sattrack.h $(INC)/hpterm.h $(INC)/vt100.h ;
	@echo compiling $@ ...
	@$(CC) $(MTLEX)/maketlex.c $(CC_COPT) -o $@

$(OBJ)/nistsw.o:	$(NISTM)/nistsw.c ;
	@echo compiling $@ ...
	@$(CC) $(NISTM)/nistsw.c $(CC_COPT) -o $@

$(OBJ)/nisttcp.o:	$(NISTM)/nisttcp.c ;
	@echo compiling $@ ...
	@$(CC) $(NISTM)/nisttcp.c $(CC_COPT) -o $@

$(OBJ)/satargs.o:	$(SATTR)/satargs.c \
	$(INC)/sattrack.h $(INC)/satglobalsx.h ;
	@echo compiling $@ ...
	@$(CC) $(SATTR)/satargs.c $(CC_COPT) -o $@

$(OBJ)/satcalc.o:	$(SATTR)/satcalc.c \
	$(INC)/sattrack.h $(INC)/satglobalsx.h ;
	@echo compiling $@ ...
	@$(CC) $(SATTR)/satcalc.c $(CC_COPT) -o $@

$(OBJ)/satchar.o:	$(SATTR)/satchar.c \
	$(INC)/sattrack.h $(INC)/satglobalsx.h ;
	@echo compiling $@ ...
	@$(CC) $(SATTR)/satchar.c $(CC_COPT) -o $@

$(OBJ)/satcity.o:	$(SATTR)/satcity.c \
	$(INC)/sattrack.h $(INC)/satglobalsx.h ;
	@echo compiling $@ ...
	@$(CC) $(SATTR)/satcity.c $(CC_COPT) -o $@

$(OBJ)/satctrl.o:	$(SATTR)/satctrl.c \
	$(INC)/sattrack.h $(INC)/satglobalsx.h ;
	@echo compiling $@ ...
	@$(CC) $(SATTR)/satctrl.c $(CC_COPT) -o $@

$(OBJ)/satdisp.o:	$(SATTR)/satdisp.c \
	$(INC)/sattrack.h $(INC)/satglobalsx.h \
	$(INC)/hpterm.h $(INC)/vt100.h ;
	@echo compiling $@ ...
	@$(CC) $(SATTR)/satdisp.c $(CC_COPT) -o $@

$(OBJ)/satelem.o:	$(SATTR)/satelem.c \
	$(INC)/sattrack.h $(INC)/satglobalsx.h \
	$(INC)/hpterm.h $(INC)/vt100.h ;
	@echo compiling $@ ...
	@$(CC) $(SATTR)/satelem.c $(CC_COPT) -o $@

$(OBJ)/satfilter.o:	$(SATFL)/satfilter.c \
	$(INC)/sattrack.h $(INC)/hpterm.h $(INC)/vt100.h ;
	@echo compiling $@ ...
	@$(CC) $(SATFL)/satfilter.c $(CC_COPT) -o $@

$(OBJ)/satgraph.o:	$(SATTR)/satgraph.c \
	$(INC)/sattrack.h $(INC)/satglobalsx.h $(INC)/satstrings.h \
	$(INC)/shuttle.h $(INC)/mir.h $(INC)/world.xbm ;
	@echo compiling $@ ...
	@$(CC) $(SATTR)/satgraph.c $(CC_COPT) $(CC_CXINC) -o $@

$(OBJ)/satheli.o:	$(SATTR)/satheli.c \
	$(INC)/sattrack.h $(INC)/satglobalsx.h ;
	@echo compiling $@ ...
	@$(CC) $(SATTR)/satheli.c $(CC_COPT) -o $@

$(OBJ)/satmath.o:	$(SATTR)/satmath.c \
	$(INC)/sattrack.h ;
	@echo compiling $@ ...
	@$(CC) $(SATTR)/satmath.c $(CC_COPT) -o $@

$(OBJ)/satnute.o:	$(SATTR)/satnute.c \
	$(INC)/sattrack.h $(INC)/satglobalsx.h ;
	@echo compiling $@ ...
	@$(CC) $(SATTR)/satnute.c $(CC_COPT) -o $@

$(OBJ)/satprec.o:	$(SATTR)/satprec.c \
	$(INC)/sattrack.h $(INC)/satglobalsx.h ;
	@echo compiling $@ ...
	@$(CC) $(SATTR)/satprec.c $(CC_COPT) -o $@

$(OBJ)/satprop.o:	$(SATTR)/satprop.c \
	$(INC)/sattrack.h $(INC)/satglobalsx.h \
	$(INC)/satglobalspx.h $(INC)/satprop.h ;
	@echo compiling $@ ...
	@$(CC) $(SATTR)/satprop.c $(CC_COPT) -o $@

$(OBJ)/satread.o:	$(SATTR)/satread.c \
	$(INC)/sattrack.h $(INC)/satglobalsx.h \
	$(INC)/hpterm.h $(INC)/vt100.h ;
	@echo compiling $@ ...
	@$(CC) $(SATTR)/satread.c $(CC_COPT) -o $@

$(OBJ)/satrefr.o:	$(SATTR)/satrefr.c \
	$(INC)/sattrack.h $(INC)/satglobalsx.h ;
	@echo compiling $@ ...
	@$(CC) $(SATTR)/satrefr.c $(CC_COPT) -o $@

$(OBJ)/sattele.o:	$(SATTR)/sattele.c \
	$(INC)/sattrack.h $(INC)/satglobalsx.h $(ISICOMM_INC) ;
	@echo compiling $@ ...
	@$(CC) $(SATTR)/sattele.c $(CC_COPT) -o $@

$(OBJ)/sattest.o:	$(SATTR)/sattest.c \
	$(INC)/sattrack.h $(INC)/satglobalsx.h ;
	@echo compiling $@ ...
	@$(CC) $(SATTR)/sattest.c $(CC_COPT) -o $@

$(OBJ)/sattime.o:	$(SATTR)/sattime.c \
	$(INC)/sattrack.h $(INC)/satglobalsx.h ;
	@echo compiling $@ ...
	@$(CC) $(SATTR)/sattime.c $(CC_COPT) -o $@

$(OBJ)/sattrack.o:	$(SATTR)/sattrack.c \
	$(INC)/sattrack.h $(INC)/satglobals.h $(INC)/satglobalsp.h \
	$(INC)/satglobalsx.h $(INC)/satglobalspx.h $(INC)/satprop.h \
	$(INC)/satstrings.h $(INC)/hpterm.h $(INC)/vt100.h ;
	@echo compiling $@ ...
	@$(CC) $(SATTR)/sattrack.c $(CC_COPT) -o $@

$(OBJ)/satvect.o:	$(SATTR)/satvect.c \
	$(INC)/sattrack.h $(INC)/satglobalsx.h ;
	@echo compiling $@ ...
	@$(CC) $(SATTR)/satvect.c $(CC_COPT) -o $@

$(OBJ)/xdemo.o:		$(XDEMO)/xdemo.c \
	$(INC)/sattrack.h $(INC)/satstrings.h \
	$(INC)/shuttle.h $(INC)/mir.h $(INC)/world.xbm ;
	@echo compiling $@ ...
	@$(CC) $(XDEMO)/xdemo.c $(CC_COPT) $(CC_CXINC) -o $@

#-------------------------------------------------------------------------------
