patch-src_Makefile 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. $OpenBSD: patch-src_Makefile,v 1.1 2007/12/18 09:08:24 ajacoutot Exp $
  2. --- src/Makefile.orig Tue Jan 14 00:51:01 1997
  3. +++ src/Makefile Tue Dec 18 09:53:05 2007
  4. @@ -113,10 +113,10 @@
  5. # Sun-4 (SPARCstation 5 or 10 with Solaris 2.x, using 'gcc' only)
  6. #
  7. -CPU = Sun-4/Solaris
  8. -CC_CMACH = -O3 -DSVR4 -Wall
  9. -CC_LMACH =
  10. -CC = gcc
  11. +#CPU = Sun-4/Solaris
  12. +#CC_CMACH = -O3 -DSVR4 -Wall
  13. +#CC_LMACH =
  14. +#CC = gcc
  15. # Apollo 700 (HP Apollo 9000 Series 700 with HPUX)
  16. #
  17. @@ -228,7 +228,7 @@ CC = gcc
  18. #CC_CUSR = -DREVERSEVIDEO -DXWINDOW
  19. #CC_CUSR = -DHOMEDIR -DREVERSEVIDEO -DXWINDOW
  20. -CC_CUSR = -DHOMEDIR -DREVERSEVIDEO -DSUNTRANSITS -DXWINDOW
  21. +CC_CUSR = -DREVERSEVIDEO -DSUNTRANSITS -DXWINDOW
  22. #
  23. #-------------------------------------------------------------------------------
  24. @@ -245,7 +245,8 @@ CC_CUSR = -DHOMEDIR -DREVERSEVIDEO -DSUNTRANSITS -DXW
  25. # but should be accessible by other users as well.
  26. #
  27. -#HOME = /home/manfred
  28. +HOME = ../..
  29. +CC_CUSR += -DSATDIR=\"$(PREFIX)/lib\"
  30. #
  31. #-------------------------------------------------------------------------------
  32. @@ -253,9 +254,13 @@ CC_CUSR = -DHOMEDIR -DREVERSEVIDEO -DSUNTRANSITS -DXW
  33. # SATTRACK SUB-DIRECTORIES
  34. #
  35. -SRC = $(HOME)/SatTrack/src
  36. -OBJ = $(HOME)/SatTrack/obj
  37. -RUN = $(HOME)/SatTrack/run
  38. +SRC = $(HOME)/SatTrack-3.1.6/src
  39. +OBJ = $(HOME)/SatTrack-3.1.6/obj
  40. +RUN = $(HOME)/SatTrack-3.1.6/run
  41. +DATA = $(HOME)/SatTrack-3.1.6/data
  42. +PRED = $(HOME)/SatTrack-3.1.6/pred
  43. +TLE = $(HOME)/SatTrack-3.1.6/tle
  44. +DOC = $(HOME)/SatTrack-3.1.6/doc
  45. INC = $(SRC)/include
  46. @@ -318,13 +323,15 @@ CC_CISI =
  47. #X11 = /usr/include
  48. #X11 = /usr/local/include
  49. #X11 = /usr/include/X11
  50. -X11 = /usr/openwin/include
  51. +#X11 = /usr/openwin/include
  52. +X11 = $(X11BASE)/include
  53. -LX11 = -lX11 -lXt # X11R5
  54. +#LX11 = -lX11 -lXt # X11R5
  55. #LX11 = -lXt -lX11 -lsocket # SCOV5
  56. #LX11 = -L/usr/openwin/lib -lX11 -lXt
  57. #LX11 = -lX11 -lXt -lICE -lSM # X11R6
  58. +LX11 = -L$(X11BASE)/lib -lX11 -lXt -lICE -lSM
  59. #LX11 = -L/usr/openwin/lib -lX11 -lXt -lICE -lSM
  60. #CC_CXINC =
  61. @@ -355,6 +362,30 @@ clean:
  62. cd $(RUN) ; \
  63. /bin/rm -f fixchecksum makeamsat makepassesx maketles maketlex \
  64. satfilter sattrack xdemo
  65. +
  66. +install:
  67. + -@mkdir -p $(PREFIX)/lib/SatTrack/data
  68. + cd $(DATA) ; find . -print | cpio -pudm $(PREFIX)/lib/SatTrack/data
  69. + -@mkdir $(PREFIX)/lib/SatTrack/pred
  70. + cd $(PRED) ; find . -print | cpio -pudm $(PREFIX)/lib/SatTrack/pred
  71. + -@mkdir $(PREFIX)/lib/SatTrack/tle
  72. + cd $(TLE) ; find . -print | cpio -pudm $(PREFIX)/lib/SatTrack/tle
  73. + -@mkdir -p $(PREFIX)/share/doc/SatTrack
  74. + cd $(DOC) ; find . -print | cpio -pudm $(PREFIX)/share/doc/SatTrack
  75. + -@mkdir -p $(PREFIX)/bin
  76. + install -c -s -m 755 $(RUN)/fixchecksum $(PREFIX)/bin/fixchecksum
  77. + install -c -m 755 $(RUN)/getsts $(PREFIX)/bin/getsts
  78. + install -c -m 755 $(RUN)/gettle $(PREFIX)/bin/gettle
  79. + install -c -s -m 755 $(RUN)/makeamsat $(PREFIX)/bin/makeamsat
  80. + install -c -s -m 755 $(RUN)/makepassesx $(PREFIX)/bin/makepassesx
  81. + install -c -s -m 755 $(RUN)/maketles $(PREFIX)/bin/maketles
  82. + install -c -s -m 755 $(RUN)/maketlex $(PREFIX)/bin/maketlex
  83. + install -c -m 755 $(RUN)/passes $(PREFIX)/bin/passes
  84. + install -c -m 755 $(RUN)/passesx $(PREFIX)/bin/passesx
  85. + install -c -s -m 755 $(RUN)/satfilter $(PREFIX)/bin/satfilter
  86. + install -c -s -m 755 $(RUN)/sattrack $(PREFIX)/bin/sattrack
  87. + install -c -m 755 $(RUN)/transits $(PREFIX)/bin/transits
  88. + install -c -s -m 755 $(RUN)/xdemo $(PREFIX)/bin/xsattrackdemo
  89. #
  90. #-------------------------------------------------------------------------------