home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- Path: sparky!uunet!news.larc.nasa.gov!hal.larc.nasa.gov!alan
- From: alan@hal.larc.nasa.gov (alan dare)
- Subject: cvbuild problem in Workshop
- Message-ID: <BtysG2.AsC@news.larc.nasa.gov>
- Originator: alan@hal.larc.nasa.gov
- Sender: news@news.larc.nasa.gov (USENET Network News)
- Organization: NASA Langley Research Center, Hampton, VA USA
- Date: Wed, 2 Sep 1992 18:52:50 GMT
- Lines: 44
-
-
- I having a problem with cvbuild under workshop. It will not correctly
- interpret my makefile. In our application we wanted to keep the
- object and source separate from each other in a directory structure
- as shown below:
-
- <topdir>
- |
- / \
- obj src
-
- The makefile has served us well during initial development, but
- I was dissapoinited that workshop is not handling it correctly. A sample
- is shown below compiling a.c, b.c, c.c and creating an executable a.out.
-
- OBJDIR = ../obj
- R=$(@F:o=c)
-
- OBJ_FILES = $(OBJDIR)/a.o\
- $(OBJDIR)/b.o\
- $(OBJDIR)/c.o
-
- $(OBJDIR)/a.out: $(OBJ_FILES)
- cc -o $@ $(OBJ_FILES)
-
- $(OBJ_FILES) : $$R
- cc -c $(OPT) $R -o $@
-
-
- cvbuild gives the following error:
- Couldn't parse makefile
- Reason: cvbuild: Error:File "makefile", line 11
- cvbuild:Error:Unrecognized character "$"
-
- Line 11 is "$(OBJ_FILES) : $$R". I would like to know if there is a way
- around it in Workshop or a modification to the makefile that would give
- us the same functionality and allow Workshop to interpret it correctly?
-
- Thanks to any and all.
- --
-
- *********************************************************************
- Alan Dare | Internet : alan@hal.larc.nasa.gov
- NASA Langley Research Center |
-