home *** CD-ROM | disk | FTP | other *** search
/ Photo CD Demo 1 / Demo.bin / hdf / unix / hdf3_2r2 / test / makefile < prev    next >
Encoding:
Makefile  |  1992-10-29  |  11.0 KB  |  352 lines

  1. #
  2. # $Header: /hdf/hdf/v3.2r2/test/RCS/Makefile,v 1.29 1992/10/28 20:24:14 koziol beta koziol $
  3. #
  4. # $Log: Makefile,v $
  5. # Revision 1.29  1992/10/28  20:24:14  koziol
  6. # Updated for v3.2r2
  7. #
  8. # Revision 1.28  1992/10/12  18:53:07  koziol
  9. # Changed all the F's in filenames back to f's after screwing up the last
  10. # checkin.
  11. #
  12. # Revision 1.27  1992/10/12  18:49:08  koziol
  13. # Changed to support the trig test instead of tr8, tr24, and tp
  14. #
  15. # Revision 1.27  1992/10/01  03:27:34  chouck
  16. # Added tests in tp.c into trig.c
  17. #
  18. # Revision 1.26  1992/10/01  02:53:23  chouck
  19. # Consolidated 8-bit and 24-bit raster image tests
  20. #
  21. # Revision 1.25  1992/09/17  19:50:15  koziol
  22. # Made changes for ANSI prototypes for the Convex
  23. #
  24. # Revision 1.24  1992/08/14  20:16:57  sxu
  25. # *** empty log message ***
  26. #
  27. # Revision 1.23  1992/07/16  17:17:59  chouck
  28. # Yet another minor fix
  29. #
  30. #
  31. # Revision 1.21  1992/07/16  17:11:55  chouck
  32. # Fixed a couple of minor problems
  33. #
  34. # Revision 1.20  1992/07/15  19:36:13  chouck
  35. # Modified to conform to having a top level Makefile
  36. #
  37. # Revision 1.19  1992/07/14  01:57:10  mfolk
  38. # Added these two lines and deleted corresponding lines:
  39. #   # ==> For Convex, specify CFLAGS as follows:
  40. #   #CFLAGS=  -g -D${MACHINE} $(IFLAGS) -D__STDC__
  41. #
  42. # Also moved these lines to occur after normal CFLAGS specification.
  43. #
  44. # Revision 1.18  1992/07/13  21:46:30  sxu
  45. # Modified CFLAGS for IRIS4.
  46. #
  47. # Revision 1.17  1992/07/08  22:18:22  sxu
  48. # Added tsdstr.c and tsdstrF.f
  49. #
  50. # Revision 1.16  1992/07/08  15:36:04  sxu
  51. # Eliminate doubled -D$machine for C programs.
  52. #
  53. # Revision 1.15  1992/06/09  20:19:24  dilg
  54. # Changed CFLAGS for IRIS4 from -cckr to -ansi
  55. #
  56. # Revision 1.14  1992/06/04  18:59:26  dilg
  57. # Changes back to generic SUN from IBM6000
  58. #
  59. # Revision 1.13  1992/06/04  04:47:15  sxu
  60. # add -cckr for IRIS4
  61. #
  62. # Revision 1.12  1992/06/01  13:23:15  mfolk
  63. # Added some comments to help people compile on Convex.
  64. #
  65. # Revision 1.11  1992/05/29  19:25:32  chouck
  66. # Added rules for tlinkage
  67. #
  68. # Revision 1.10  1992/05/28  17:33:57  chouck
  69. # Make clean wipes out all *.hdf* files
  70. #
  71. # Revision 1.9  1992/05/27  21:55:34  chouck
  72. # Added 'make clean'
  73. #
  74. # Revision 1.8  1992/05/18  22:11:07  sxu
  75. # added vset test programs
  76. #
  77. # Revision 1.7  1992/05/08  20:54:15  sxu
  78. # Change filenames from tdf* to t*
  79. #
  80. # Revision 1.6  1992/05/04  14:48:23  sxu
  81. # added tdfsd_nmms and tdfsd_nnt
  82. #
  83. # Revision 1.5  1992/04/27  18:41:22  sxu
  84. # No change
  85. #
  86. # Revision 1.4  1992/04/27  17:05:57  sxu
  87. # Fixed a typo
  88. #
  89. # Revision 1.3  1992/04/27  17:01:33  sxu
  90. # Added Fortran test  programs: tdfr8F, tdf24F, tdfpF, tdfsd_ntF
  91. #      tdfsd_nntF, tdfsd_mmsF, tdfsd_nmmsF, tdfanF, tdfanfileF
  92. #      and tdfstubsF
  93. #
  94. # Revision 1.2  1992/03/24  20:40:09  sxu
  95. # Bugs fixed in lib and include directories
  96. #
  97. # Revision 1.1  1992/03/01  23:39:01  mfolk
  98. # Initial revision
  99. #
  100. #
  101.  
  102. # ##################################################################
  103. #
  104. #                   NCSA HDF Version 3.2 release 2
  105. #                               October 1992
  106. #                  MAKEFILE for testing HDF Version 3.2
  107. #
  108. #                          ABOUT THIS MAKEFILE
  109. #
  110. # This makefile creates HDF test programs.  There are three categories
  111. # of test programs: 
  112. #
  113. #              application layer C test programs 
  114. #              application layer FORTRAN test programs 
  115. #              lower level C test programs 
  116. #
  117. # The application layer C test programs are:
  118. #
  119. #              trig    (8-bit, 24-bit raster image sets and palette interface)
  120. #              tsdnt  (scientific data sets, data only)
  121. #              tsdnnt (same as tdfsd_nt with native number types)
  122. #              tsdmms (scientific data sets, data, max/min and scales)
  123. #              tsdnmms(same as tdfsd_mms with native number types)
  124. #              tsdstr (data and dimension strings: label, unit, format and coordsys)
  125. #              tan     (annotations for HDF objects)
  126. #              tanfile (annotations for HDF files)
  127. #              tstubs  (emulation of old lower level i/o routines)
  128. #
  129. # The application layer FORTRAN test programs are:
  130. #
  131. #              tr8F     (8-bit raster image sets)
  132. #              t24F     (24-bit raster image sets)
  133. #              tpF      (Palettes)
  134. #              tsdntF   (scientific data sets, data only)
  135. #              tsdnntF  (same as tdfsd_nntF except all data types are native 
  136. #                           machine number types)
  137. #              tsdmmsF  (scientific data sets, data, max/min and scales)
  138. #           tsdnmmsF (same as tdfsd_mmsF with native number types)
  139. #              tsdstrF  (data and dimenstrings: label, unit, format and coordsys)
  140. #              tanF     (annotations for HDF objects)
  141. #              tanfileF (annotations for HDF files)
  142. #              tstubsF  (emulation of old lower level i/o routines)
  143. #
  144. # Vset test programs:
  145. #
  146. #           egchi.c  (high level VSET write routines)
  147. #           tv1.c    (the basic vgroup and vdata creation routines)
  148. #           tv2.c    (creates vsets in 2 files simultaneously)
  149. #           tvers.c  (get version string from an HDF file)
  150. #            egfhi.f  (Fortran version of egchi.c)
  151. #
  152. # The lower level C test programs are:
  153. #
  154. #              thfile     (basic i/o)
  155. #              terr       (error handling)
  156. #              thblocks   (linked blocks)
  157. #              thextelt   (i/o involving external files)
  158. #              tvers      (storing and retrieving version strings)
  159. #              thlinkage  (linkage of functions)
  160. #
  161. # ##################################################################
  162. #
  163. #                      HOW TO USE THIS MAKEFILE
  164. #
  165. # You need libdf.a to compile any of these test programs.  You will
  166. # also need selected header files as described below.
  167. #
  168. # To compile the application layer C test programs, enter "make ctests".  
  169. # If there are test programs that you do not want to compile, do this 
  170. # by removing them from the lines "COBJS=" and "CSRCS=" below.
  171. # You need access to the header files indicated in the "CHDRS=" line
  172. # below to compile these programs. 
  173. #
  174. # To compile the application layer FORTRAN test programs, enter 
  175. # "make ftests".  You need access to the header files indicated in 
  176. # the "FHDRS=" line below to compile these programs. 
  177. # If there are test programs that you do not want to compile, do this 
  178. # by removing them from the lines "FOBJS=" and "FSRCS=" below.
  179. #
  180. # To compile the lower level C test programs, enter "make htests". 
  181. # You need access to the header files indicated in the "HHDRS=" line
  182. # below to compile these programs.  If there are test programs that 
  183. # you do not want to compile, do this by removing them from the lines 
  184. # "HOBJS=" and "HSRCS=" below.
  185. #
  186. # To remove all object files created by this makefile, enter "make clean"
  187. #
  188. # ##################################################################
  189. #
  190. #                       PORTING INSTRUCTIONS
  191. #
  192. # You must modify the lines containing the symbol "==>" to make
  193. # this makefile compatible with your platform.
  194. #
  195. # ##################################################################
  196.  
  197. # ==> specify your machine
  198. MACHINE=SUN
  199. # ==> specify your fortran compiler  (Convex: fc)
  200. FC=f77 
  201. FFLAGS=  -g
  202.  
  203. # ==> specify your C compiler
  204. CC=cc
  205.  
  206. # ==> where are your hdf.h, hdfi.h and vg.h files located?
  207. HDFINC=   ../include
  208.  
  209. CFLAGS=  -g -D${MACHINE}
  210.  
  211. # ==> For Convex, specify CFLAGS as follows:
  212. #CFLAGS=  -g -D${MACHINE} $(IFLAGS)
  213.  
  214. # ==> For IRIS4, specify CFLAGS as follows: 
  215. #CFLAGS=  -g -D${MACHINE} $(IFLAGS) -ansi
  216.  
  217. # ==> where is your HDF library (libdf.a) located?
  218. HDFLIB= ../lib
  219.  
  220. RM=/bin/rm
  221. RMFLAGS=-f
  222.  
  223. CTESTS= trig tsdstr tsdmms tsdnmms tsdnnt tsdnt tan \
  224.         tanfile tstubs tv1 tv2 tvers egchi
  225.  
  226. CHDRS = df.h dfi.h dfsd.h vg.h df.h dfi.h dfstubs.h \
  227.     vproto.h 
  228. CTSRCS= trig.c tsdstr.c tsdmms.c tsdnmms.c tsdnnt.c \
  229.         tsdnt.c tan.c tanfile.c tstubs.c \
  230.     tv1.c tv2.c tvers.c egchi.c
  231. CTOBJS= trig.o tsdstr.o tsdmms.o tsdnt.o tan.o tanfile.o \
  232.         tstubs.o tsdnmms.o tsdnnt.o tv1.o tv2.o \
  233.     tvers.o egchi.o
  234.  
  235. HTESTS= thfile thfile1 terr thblocks thextelt tlinkage
  236. HHDRS = hfile.h hdf.h hdfi.h herr.h hproto.h 
  237. HTSRCS= thfile.c thfile1.c terr.c thblocks.c thextelt.c tlinkage.c 
  238. HTOBJS= thfile.o thfile1.o terr.o thblocks.o thextelt.o tlinkage.o
  239.  
  240. FTESTS= tr8f t24f tpf tanf tanfilef tsdstrf tsdntf tsdnntf \
  241.         tsdmmsf tsdnmmsf tstubsf egfhi
  242. FSRCS = tr8f.f t24f.f tpf.f tanf.f tanfilef.f tsdstrf.f tsdntf.f \
  243.         tsdnntf.f tsdmmsf.f  tsdnmmsf.f tstubsf.f egfhi.f
  244. FOBJS = tr8f.o t24f.o tpf.o tanf.o tanfilef.o tsdstrf.o tsdntf.o \
  245.         tsdnntf.o tsdmmsf.o tsdnmmsf.o tstubsf.o egfhi.o
  246.  
  247. all: ctests ftests htests
  248.  
  249. nofortran: ctests htests
  250.  
  251. ctests: $(CTESTS)
  252.  
  253. ftests: $(FTESTS)
  254.  
  255. htests: $(HTESTS)
  256.     
  257. trig:  trig.c 
  258.     $(CC) $(CFLAGS) -I$(HDFINC)  trig.c $(HDFLIB)/libdf.a -o trig
  259.  
  260. tsdstr:    tsdstr.c
  261.     $(CC) $(CFLAGS) -I$(HDFINC)  tsdstr.c $(HDFLIB)/libdf.a -o tsdstr
  262.  
  263. tsdnt:    tsdnt.c 
  264.     $(CC) $(CFLAGS) -I$(HDFINC)  tsdnt.c $(HDFLIB)/libdf.a -o tsdnt
  265.  
  266. tsdmms:    tsdmms.c 
  267.     $(CC) $(CFLAGS) -I$(HDFINC)  tsdmms.c $(HDFLIB)/libdf.a -o tsdmms
  268.  
  269. tsdnnt:    tsdnnt.c 
  270.     $(CC) $(CFLAGS) -I$(HDFINC)  tsdnnt.c $(HDFLIB)/libdf.a -o tsdnnt
  271.  
  272. tsdnmms:    tsdnmms.c 
  273.     $(CC) $(CFLAGS) -I$(HDFINC)  tsdnmms.c $(HDFLIB)/libdf.a -o tsdnmms
  274.  
  275. tan:  tan.c 
  276.     $(CC) $(CFLAGS) -I$(HDFINC)  tan.c $(HDFLIB)/libdf.a -o tan
  277.  
  278. tanfile:     tanfile.c 
  279.     $(CC) $(CFLAGS) -I$(HDFINC)  tanfile.c $(HDFLIB)/libdf.a -o tanfile
  280.  
  281. tstubs:     tstubs.c 
  282.     $(CC) $(CFLAGS) -I$(HDFINC)  tstubs.c $(HDFLIB)/libdf.a -o tstubs
  283.  
  284. tv1:        tv1.c
  285.     $(CC) $(CFLAGS) -I$(HDFINC)  tv1.c $(HDFLIB)/libdf.a -o tv1
  286.  
  287. tv2:        tv2.c
  288.     $(CC) $(CFLAGS) -I$(HDFINC)  tv2.c $(HDFLIB)/libdf.a -o tv2
  289.  
  290. tvers:        tvers.c
  291.     $(CC) $(CFLAGS) -I$(HDFINC)  tvers.c $(HDFLIB)/libdf.a -o tvers
  292.  
  293. egchi:        egchi.c
  294.     $(CC) $(CFLAGS) -I$(HDFINC)  egchi.c $(HDFLIB)/libdf.a -o egchi
  295.  
  296. tr8f:           tr8f.f
  297.     $(FC) $(FFLAGS) tr8f.f $(HDFLIB)/libdf.a -o tr8f 
  298.  
  299. t24f:        t24f.f
  300.     $(FC) $(FFLAGS) t24f.f $(HDFLIB)/libdf.a -o t24f
  301.  
  302. tanf:        tanf.f
  303.     $(FC) $(FFLAGS) tanf.f $(HDFLIB)/libdf.a -o tanf
  304.  
  305. tanfilef:   tanfilef.f
  306.     $(FC) $(FFLAGS) tanfilef.f $(HDFLIB)/libdf.a  -o tanfilef
  307.  
  308. tpf:   tpf.f
  309.     $(FC) $(FFLAGS) tpf.f $(HDFLIB)/libdf.a  -o tpf
  310.  
  311. tstubsf:   tstubsf.f
  312.     $(FC) $(FFLAGS) tstubsf.f $(HDFLIB)/libdf.a  -o tstubsf
  313.  
  314. tsdstrf:   tsdstrf.f
  315.     $(FC) $(FFLAGS) tsdstrf.f $(HDFLIB)/libdf.a  -o tsdstrf
  316.  
  317. tsdntf:   tsdntf.f
  318.     $(FC) $(FFLAGS) tsdntf.f $(HDFLIB)/libdf.a  -o tsdntf 
  319.  
  320. tsdnntf:   tsdnntf.f
  321.     $(FC) $(FFLAGS) tsdnntf.f $(HDFLIB)/libdf.a  -o tsdnntf
  322.  
  323. tsdmmsf:   tsdmmsf.f 
  324.     $(FC) $(FFLAGS) tsdmmsf.f $(HDFLIB)/libdf.a -o tsdmmsf
  325.  
  326. tsdnmmsf:   tsdnmmsf.f 
  327.     $(FC) $(FFLAGS) tsdnmmsf.f $(HDFLIB)/libdf.a -o tsdnmmsf
  328.  
  329. egfhi:       egfhi.f
  330.     $(FC) $(FFLAGS)  egfhi.f $(HDFLIB)/libdf.a -o egfhi
  331.  
  332. thfile:     thfile.c 
  333.     $(CC) $(CFLAGS) -I$(HDFINC)  thfile.c $(HDFLIB)/libdf.a -o thfile
  334.  
  335. thfile1:     thfile1.c 
  336.     $(CC) $(CFLAGS) -I$(HDFINC)  thfile1.c $(HDFLIB)/libdf.a -o thfile1
  337.  
  338. terr:     terr.c 
  339.     $(CC) $(CFLAGS) -I$(HDFINC)  terr.c $(HDFLIB)/libdf.a -o terr
  340.  
  341. thblocks:     thblocks.c 
  342.     $(CC) $(CFLAGS) -I$(HDFINC)  thblocks.c $(HDFLIB)/libdf.a -o thblocks
  343.  
  344. thextelt:     thextelt.c
  345.     $(CC) $(CFLAGS) -I$(HDFINC)  thextelt.c $(HDFLIB)/libdf.a -o thextelt
  346.  
  347. tlinkage:     tlinkage.c
  348.     $(CC) $(CFLAGS) -I$(HDFINC)  tlinkage.c $(HDFLIB)/libdf.a -o tlinkage
  349.  
  350. clean:
  351.     -$(RM) $(RMFLAGS) *.hdf $(CTESTS) $(HTESTS) $(FTESTS)
  352.