home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Science / Science.zip / fblnk224.zip / makefile.org < prev    next >
Makefile  |  1999-01-28  |  9KB  |  217 lines

  1. #  CFITSIO LIBRARY
  2. #
  3. #  Specify the location of the cfitsio include file
  4. FITSIO_H=-I/usr/local/src/cfitsio
  5. #  Specify the location of the fitsio library
  6. FITSIO_L=-L/usr/local/src/cfitsio
  7.  
  8. #  X11 LIBRARY
  9. #  Directory of X library includes
  10. X11_INCLUDE=-I/usr/X11R6/include/X11/
  11. #  Directory of X libraries
  12. X11_LIBRARY=-L/usr/X11R6/lib
  13.  
  14. #  XFORMS LIBRARY
  15. #
  16. #  Specify the location of the  XFORMS include file
  17. FORMS_H=-I/usr/local/src/xforms/FORMS
  18. #  Directory of XFORMS include file
  19. FORMS_L=-L/usr/local/src/xforms/FORMS
  20.  
  21. #  INSTALLATION
  22. #
  23. #  Specify a directory for the program
  24. INSTALL_DIR=/usr/local/bin
  25. #  Specify the location and name of the Fitsblink documentation
  26. FITSBLINK_DOC=/usr/local/lib/fitsblink
  27.  
  28. CC = gcc -DLINUX -D__USE_SVID
  29. CFLAGS = -c -ansi -Wall  -O2 -I/usr/local/include $(FITSIO_H) $(FORMS_H)
  30.  
  31. all: fitsblink
  32.  
  33. blink.o: blink.c formblink.h functs.h structs.h consts.h
  34.     $(CC) $(CFLAGS) blink.c -o blink.o
  35.  
  36. blinkgui.o: blinkgui.c formblink.h functs.h structs.h consts.h version.h
  37.     $(CC) $(CFLAGS) -DBLINK_README_FILE=\"$(BLINK_README_FILE)\" blinkgui.c -o blinkgui.o
  38.  
  39. imageacc.o: imageacc.c  functs.h structs.h consts.h version.h
  40.     $(CC) $(CFLAGS) imageacc.c -o imageacc.o
  41.  
  42. formblink.o: formblink.c formblink.h functs.h structs.h consts.h version.h
  43.     $(CC) $(CFLAGS) formblink.c -o formblink.o
  44.  
  45. fits.o: fits.c functs.h structs.h consts.h version.h
  46.     $(CC) $(CFLAGS) fits.c -o fits.o
  47.  
  48. error.o: error.c functs.h structs.h consts.h version.h
  49.     $(CC) $(CFLAGS) error.c -o error.o
  50.  
  51. parameters.o: parameters.c functs.h structs.h consts.h version.h
  52.     $(CC) $(CFLAGS) parameters.c -o parameters.o
  53.  
  54. midexposure.o: midexposure.c functs.h structs.h consts.h version.h
  55.     $(CC) $(CFLAGS) midexposure.c -o midexposure.o
  56.  
  57. parsecoor.o: parsecoor.c functs.h structs.h consts.h version.h
  58.     $(CC) $(CFLAGS) parsecoor.c -o parsecoor.o
  59.  
  60. options.o: options.c functs.h structs.h consts.h version.h
  61.     $(CC) $(CFLAGS) options.c -o options.o
  62.  
  63. report.o: report.c functs.h structs.h consts.h version.h
  64.     $(CC) $(CFLAGS) report.c -o report.o
  65.  
  66. message.o: message.c functs.h structs.h consts.h version.h
  67.     $(CC) $(CFLAGS) message.c -o message.o
  68.  
  69. astrometry.o: astrometry.c functs.h structs.h consts.h version.h
  70.     $(CC) $(CFLAGS) astrometry.c -o astrometry.o
  71.  
  72. catalogs.o: catalogs.c functs.h structs.h consts.h version.h
  73.     $(CC) $(CFLAGS) catalogs.c -o catalogs.o
  74.  
  75. match_stars.o: match_stars.c functs.h structs.h consts.h version.h
  76.     $(CC) $(CFLAGS) match_stars.c -o match_stars.o
  77.  
  78. mail.o: mail.c functs.h structs.h consts.h version.h
  79.     $(CC) $(CFLAGS) mail.c -o mail.o
  80.  
  81. newwcs.o: newwcs.c functs.h structs.h consts.h version.h
  82.     $(CC) $(CFLAGS) newwcs.c -o newwcs.o
  83.  
  84. showstar.o: showstar.c functs.h structs.h consts.h version.h
  85.     $(CC) $(CFLAGS) showstar.c -o showstar.o
  86.  
  87. settings.o: settings.c functs.h structs.h consts.h version.h
  88.     $(CC) $(CFLAGS) settings.c -o settings.o
  89.  
  90. noninteractive.o: noninteractive.c functs.h structs.h consts.h version.h
  91.     $(CC) $(CFLAGS) noninteractive.c -o noninteractive.o
  92.  
  93. telescope.o: telescope.c functs.h structs.h consts.h version.h
  94.     $(CC) $(CFLAGS) telescope.c -o telescope.o
  95.  
  96. time.o: time.c functs.h structs.h consts.h version.h
  97.     $(CC) $(CFLAGS) time.c -o time.o
  98.  
  99. median.o: median.c functs.h structs.h consts.h version.h
  100.     $(CC) $(CFLAGS) median.c -o median.o
  101.  
  102. #  read USNO 
  103. usno/readusno.o: usno/readusno.c functs.h structs.h consts.h version.h
  104.     $(CC) $(CFLAGS) usno/readusno.c -o usno/readusno.o
  105.  
  106. #  read GSC
  107. guide/readguide.o: guide/readguide.c functs.h structs.h consts.h version.h
  108.     $(CC) $(CFLAGS) guide/readguide.c -o guide/readguide.o
  109.  
  110. guide/gscfits.o: guide/gscfits.c functs.h structs.h consts.h version.h
  111.     $(CC) $(CFLAGS) guide/gscfits.c -o guide/gscfits.o
  112.  
  113. #  Star count files
  114. starcount/stetje.o: starcount/stetje.c functs.h structs.h consts.h version.h
  115.     $(CC) $(CFLAGS) starcount/stetje.c -o starcount/stetje.o
  116.  
  117. starcount/shadow.o: starcount/shadow.c functs.h structs.h consts.h version.h
  118.     $(CC) $(CFLAGS) starcount/shadow.c -o starcount/shadow.o
  119.  
  120. starcount/povprecja.o: starcount/povprecja.c functs.h structs.h consts.h version.h
  121.     $(CC) $(CFLAGS) starcount/povprecja.c -o starcount/povprecja.o
  122.  
  123. starcount/utilities.o: starcount/utilities.c functs.h structs.h consts.h version.h
  124.     $(CC) $(CFLAGS) starcount/utilities.c -o starcount/utilities.o
  125.  
  126. starcount/aperture.o: starcount/aperture.c functs.h structs.h consts.h version.h
  127.     $(CC) $(CFLAGS) starcount/aperture.c -o starcount/aperture.o
  128.  
  129. #  Field compare files
  130. field_compare/field_compare.o: field_compare/field_compare.c functs.h structs.h consts.h version.h
  131.     $(CC) $(CFLAGS) field_compare/field_compare.c -o field_compare/field_compare.o
  132.  
  133. field_compare/konstelacije.o: field_compare/konstelacije.c functs.h structs.h consts.h version.h
  134.     $(CC) $(CFLAGS) field_compare/konstelacije.c -o field_compare/konstelacije.o
  135.  
  136. field_compare/transrot.o: field_compare/transrot.c functs.h structs.h consts.h version.h
  137.     $(CC) $(CFLAGS) field_compare/transrot.c -o field_compare/transrot.o
  138.  
  139.  
  140. clean:
  141.     rm *.o fitsblink
  142.  
  143. fitsblink: imageacc.o blinkgui.o \
  144.     formblink.o fits.o imageacc.o blink.o error.o \
  145.     parameters.o midexposure.o parsecoor.o options.o report.o astrometry.o\
  146.         catalogs.o match_stars.o mail.o newwcs.o settings.o  noninteractive.o \
  147.     showstar.o telescope.o time.o median.o message.o \
  148.     usno/readusno.o guide/readguide.o guide/gscfits.o \
  149.     starcount/stetje.o starcount/shadow.o starcount/povprecja.o \
  150.     starcount/utilities.o starcount/aperture.o \
  151.     field_compare/field_compare.o field_compare/konstelacije.o \
  152.     field_compare/transrot.o 
  153.     $(CC) -o fitsblink imageacc.o blinkgui.o \
  154.     formblink.o fits.o blink.o error.o \
  155.     parameters.o midexposure.o parsecoor.o options.o report.o astrometry.o \
  156.     catalogs.o match_stars.o mail.o newwcs.o settings.o noninteractive.o \
  157.     showstar.o telescope.o time.o median.o message.o \
  158.     usno/readusno.o \
  159.         guide/readguide.o guide/gscfits.o \
  160.     starcount/stetje.o starcount/shadow.o starcount/povprecja.o \
  161.     starcount/utilities.o starcount/aperture.o  \
  162.     field_compare/field_compare.o field_compare/konstelacije.o \
  163.     field_compare/transrot.o \
  164.         -L/usr/local/lib  $(FORMS_L) \
  165.       -lforms $(X11_LIBRARY) -lX11 $(FITSIO_L) -lcfitsio -lm
  166.  
  167. static: imageacc.o blinkgui.o \
  168.     formblink.o fits.o imageacc.o blink.o error.o \
  169.     parameters.o midexposure.o parsecoor.o options.o report.o astrometry.o\
  170.         catalogs.o starcount/povprecja.o match_stars.o mail.o newwcs.o settings.o \
  171.     showstar.o noninteractive.o telescope.o time.o median.o message.o \
  172.     usno/readusno.o guide/readguide.o guide/gscfits.o \
  173.     starcount/stetje.o starcount/shadow.o starcount/povprecja.o \
  174.     starcount/utilities.o  starcount/aperture.o \
  175.     field_compare/field_compare.o field_compare/konstelacije.o \
  176.     field_compare/transrot.o 
  177.     $(CC) -o fitsblink-static imageacc.o blinkgui.o \
  178.     formblink.o fits.o blink.o error.o \
  179.     parameters.o midexposure.o parsecoor.o options.o  report.o astrometry.o \
  180.     catalogs.o match_stars.o mail.o newwcs.o settings.o noninteractive.o \
  181.     showstar.o telescope.o time.o message.o median.o \
  182.     usno/readusno.o \
  183.         guide/readguide.o guide/gscfits.o \
  184.     starcount/stetje.o starcount/shadow.o starcount/povprecja.o \
  185.     starcount/utilities.o starcount/aperture.o  \
  186.     field_compare/field_compare.o field_compare/konstelacije.o \
  187.     field_compare/transrot.o \
  188.     -static \
  189.     -L/usr/local/lib   $(FORMS_L) \
  190.     -lforms $(X11_LIBRARY) -lX11 $(FITSIO_L) -lcfitsio -lm
  191.  
  192. install: 
  193.     @echo Installing fitsblink binary...
  194.     @install -d $(INSTALL_DIR)
  195.     @install fitsblink $(INSTALL_DIR)
  196.     @echo Creating starcount link...
  197.     if ! [ -e $(INSTALL_DIR)/starcount ]; then ln -s $(INSTALL_DIR)/fitsblink $(INSTALL_DIR)/starcount; fi
  198.     @echo Creating catalog link...
  199.     if ! [ -e $(INSTALL_DIR)/catalog ]; then ln -s $(INSTALL_DIR)/fitsblink $(INSTALL_DIR)/catalog; fi
  200.     @echo Installing fitsblink documentation...
  201.     @install -d $(FITSBLINK_DOC)/fitsblink
  202.     @install -m 0644 doc/fitsblink.dvi $(FITSBLINK_DOC) 
  203.     @install -m 0644 doc/fitsblink.tex $(FITSBLINK_DOC) 
  204.     @install -m 0644 doc/*.eps $(FITSBLINK_DOC) 
  205.     @install -m 0644 doc/fitsblink/*.html $(FITSBLINK_DOC)/fitsblink 
  206.     @install -m 0644 doc/fitsblink/*.gif $(FITSBLINK_DOC)/fitsblink 
  207.     @echo =============================================================
  208.     @echo -     Please write this down:
  209.     @echo -     Fitsblink documentation is in $(FITSBLINK_DOC)
  210.     @echo -     HTML version is in $(FITSBLINK_DOC)/fitsblink
  211.     @echo =============================================================
  212.  
  213.  
  214.  
  215.  
  216.