home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / sgi / 13208 < prev    next >
Encoding:
Text File  |  1992-09-02  |  1.6 KB  |  56 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!news.larc.nasa.gov!hal.larc.nasa.gov!alan
  3. From: alan@hal.larc.nasa.gov (alan dare)
  4. Subject: cvbuild problem in Workshop
  5. Message-ID: <BtysG2.AsC@news.larc.nasa.gov>
  6. Originator: alan@hal.larc.nasa.gov
  7. Sender: news@news.larc.nasa.gov (USENET Network News)
  8. Organization: NASA Langley Research Center, Hampton, VA  USA
  9. Date: Wed, 2 Sep 1992 18:52:50 GMT
  10. Lines: 44
  11.  
  12.  
  13. I having a problem with cvbuild under workshop. It will not correctly
  14. interpret my makefile. In our application we wanted to keep the
  15. object and source separate from each other in a directory structure
  16. as shown below:
  17.  
  18.             <topdir>
  19.                |
  20.               / \
  21.                obj  src
  22.  
  23. The makefile has served us well during initial development, but
  24. I was dissapoinited that workshop is not handling it correctly. A sample
  25. is shown below compiling a.c, b.c, c.c and creating an executable a.out.
  26.  
  27. OBJDIR = ../obj
  28. R=$(@F:o=c)
  29.  
  30. OBJ_FILES = $(OBJDIR)/a.o\
  31.     $(OBJDIR)/b.o\
  32.     $(OBJDIR)/c.o
  33.  
  34. $(OBJDIR)/a.out:  $(OBJ_FILES) 
  35.     cc -o $@ $(OBJ_FILES) 
  36.  
  37. $(OBJ_FILES) : $$R
  38.     cc -c $(OPT)  $R -o $@ 
  39.  
  40.  
  41. cvbuild gives the following error:
  42.     Couldn't parse makefile
  43.     Reason: cvbuild: Error:File "makefile", line 11
  44.     cvbuild:Error:Unrecognized character "$"
  45.  
  46. Line 11 is "$(OBJ_FILES) : $$R". I would like to know if there is a way 
  47. around it in Workshop or a modification to the makefile that would give 
  48. us the same functionality and allow Workshop to interpret it correctly?
  49.  
  50. Thanks to any and all.
  51. -- 
  52.  
  53. *********************************************************************
  54. Alan Dare                     |  Internet : alan@hal.larc.nasa.gov
  55. NASA Langley Research Center  | 
  56.