123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- $OpenBSD: patch-src_Makefile,v 1.1 2007/12/18 09:08:24 ajacoutot Exp $
- --- src/Makefile.orig Tue Jan 14 00:51:01 1997
- +++ src/Makefile Tue Dec 18 09:53:05 2007
- @@ -113,10 +113,10 @@
-
- # Sun-4 (SPARCstation 5 or 10 with Solaris 2.x, using 'gcc' only)
- #
- -CPU = Sun-4/Solaris
- -CC_CMACH = -O3 -DSVR4 -Wall
- -CC_LMACH =
- -CC = gcc
- +#CPU = Sun-4/Solaris
- +#CC_CMACH = -O3 -DSVR4 -Wall
- +#CC_LMACH =
- +#CC = gcc
-
- # Apollo 700 (HP Apollo 9000 Series 700 with HPUX)
- #
- @@ -228,7 +228,7 @@ CC = gcc
- #CC_CUSR = -DREVERSEVIDEO -DXWINDOW
- #CC_CUSR = -DHOMEDIR -DREVERSEVIDEO -DXWINDOW
-
- -CC_CUSR = -DHOMEDIR -DREVERSEVIDEO -DSUNTRANSITS -DXWINDOW
- +CC_CUSR = -DREVERSEVIDEO -DSUNTRANSITS -DXWINDOW
-
- #
- #-------------------------------------------------------------------------------
- @@ -245,7 +245,8 @@ CC_CUSR = -DHOMEDIR -DREVERSEVIDEO -DSUNTRANSITS -DXW
- # but should be accessible by other users as well.
- #
-
- -#HOME = /home/manfred
- +HOME = ../..
- +CC_CUSR += -DSATDIR=\"$(PREFIX)/lib\"
-
- #
- #-------------------------------------------------------------------------------
- @@ -253,9 +254,13 @@ CC_CUSR = -DHOMEDIR -DREVERSEVIDEO -DSUNTRANSITS -DXW
- # SATTRACK SUB-DIRECTORIES
- #
-
- -SRC = $(HOME)/SatTrack/src
- -OBJ = $(HOME)/SatTrack/obj
- -RUN = $(HOME)/SatTrack/run
- +SRC = $(HOME)/SatTrack-3.1.6/src
- +OBJ = $(HOME)/SatTrack-3.1.6/obj
- +RUN = $(HOME)/SatTrack-3.1.6/run
- +DATA = $(HOME)/SatTrack-3.1.6/data
- +PRED = $(HOME)/SatTrack-3.1.6/pred
- +TLE = $(HOME)/SatTrack-3.1.6/tle
- +DOC = $(HOME)/SatTrack-3.1.6/doc
-
- INC = $(SRC)/include
-
- @@ -318,13 +323,15 @@ CC_CISI =
- #X11 = /usr/include
- #X11 = /usr/local/include
- #X11 = /usr/include/X11
- -X11 = /usr/openwin/include
- +#X11 = /usr/openwin/include
- +X11 = $(X11BASE)/include
-
- -LX11 = -lX11 -lXt # X11R5
- +#LX11 = -lX11 -lXt # X11R5
- #LX11 = -lXt -lX11 -lsocket # SCOV5
- #LX11 = -L/usr/openwin/lib -lX11 -lXt
-
- #LX11 = -lX11 -lXt -lICE -lSM # X11R6
- +LX11 = -L$(X11BASE)/lib -lX11 -lXt -lICE -lSM
- #LX11 = -L/usr/openwin/lib -lX11 -lXt -lICE -lSM
-
- #CC_CXINC =
- @@ -355,6 +362,30 @@ clean:
- cd $(RUN) ; \
- /bin/rm -f fixchecksum makeamsat makepassesx maketles maketlex \
- satfilter sattrack xdemo
- +
- +install:
- + -@mkdir -p $(PREFIX)/lib/SatTrack/data
- + cd $(DATA) ; find . -print | cpio -pudm $(PREFIX)/lib/SatTrack/data
- + -@mkdir $(PREFIX)/lib/SatTrack/pred
- + cd $(PRED) ; find . -print | cpio -pudm $(PREFIX)/lib/SatTrack/pred
- + -@mkdir $(PREFIX)/lib/SatTrack/tle
- + cd $(TLE) ; find . -print | cpio -pudm $(PREFIX)/lib/SatTrack/tle
- + -@mkdir -p $(PREFIX)/share/doc/SatTrack
- + cd $(DOC) ; find . -print | cpio -pudm $(PREFIX)/share/doc/SatTrack
- + -@mkdir -p $(PREFIX)/bin
- + install -c -s -m 755 $(RUN)/fixchecksum $(PREFIX)/bin/fixchecksum
- + install -c -m 755 $(RUN)/getsts $(PREFIX)/bin/getsts
- + install -c -m 755 $(RUN)/gettle $(PREFIX)/bin/gettle
- + install -c -s -m 755 $(RUN)/makeamsat $(PREFIX)/bin/makeamsat
- + install -c -s -m 755 $(RUN)/makepassesx $(PREFIX)/bin/makepassesx
- + install -c -s -m 755 $(RUN)/maketles $(PREFIX)/bin/maketles
- + install -c -s -m 755 $(RUN)/maketlex $(PREFIX)/bin/maketlex
- + install -c -m 755 $(RUN)/passes $(PREFIX)/bin/passes
- + install -c -m 755 $(RUN)/passesx $(PREFIX)/bin/passesx
- + install -c -s -m 755 $(RUN)/satfilter $(PREFIX)/bin/satfilter
- + install -c -s -m 755 $(RUN)/sattrack $(PREFIX)/bin/sattrack
- + install -c -m 755 $(RUN)/transits $(PREFIX)/bin/transits
- + install -c -s -m 755 $(RUN)/xdemo $(PREFIX)/bin/xsattrackdemo
-
- #
- #-------------------------------------------------------------------------------
|