home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / apollo / 4208 < prev    next >
Encoding:
Internet Message Format  |  1993-01-08  |  1.8 KB

  1. Xref: sparky comp.sys.apollo:4208 comp.unix.bsd:11033
  2. Newsgroups: comp.sys.apollo,comp.unix.bsd
  3. Path: sparky!uunet!gatech!destroyer!caen!uwm.edu!cs.utexas.edu!hermes.chpc.utexas.edu!news.utdallas.edu!corpgate!brtph560!brtpa25!psycho
  4. From: psycho@brtpa25.bnr.ca (Paul Jezioranski)
  5. Subject: BSD 4.3 make Problem: pattern substitution 
  6. Message-ID: <1993Jan8.154604.25891@brtph560.bnr.ca>
  7. Sender: news@brtph560.bnr.ca (Usenet News)
  8. Organization: Bell-Northern Research Inc.
  9. Date: Fri, 8 Jan 1993 15:46:04 GMT
  10. Lines: 39
  11.  
  12.         I have encountered a problem using /bin/make on an Apollo running
  13. Domain SR10.3. The problem deals with pattern substitution. Below is an
  14. example:
  15.  
  16. #+++++++++++++++++++++++++++
  17. # sample Makefile
  18. #
  19.  
  20. SRCS1 = source1.c source2.c
  21. SRCS = $(SRCS1) source3.c
  22. OBJS = $(SRCS:.c=.o)
  23.  
  24. default: $(OBJS)
  25.  
  26. $(OBJS): $(SRCS)
  27.  
  28. #
  29. # End of sample Makefile
  30. #---------------------------
  31.  
  32.         Looking at this makefile, I would assume that the three source files
  33. (source1.c, source2.c, source3.c) would compile and produce object files
  34. (source1.o, source2.o, source3.o). This is not the case with /bin/make.
  35. Instead the error message:
  36.  
  37.         "Make:  Don't know how to make source1.c source2.c"
  38.  
  39. appears. Using GNU Make version 3.62, the compilations proceed as expected.
  40. It appears that in the pattern substitution line of the Makefile (i.e. the
  41. line with "OBJS = $(SRCS:.c=.o)"), only source3.c gets converted to source3.o.
  42. The ".c" in the SRCS1 variable do not get converted (i.e. source1.c and
  43. source2.c do NOT get converted to source1.o and source2.o).
  44.  
  45. -- 
  46. ===============================================================================
  47. Paul Jezioranski            |  STANDARD DISCLAIMER -- My opinions 
  48. psycho@bnr.ca                |  are shared by my employer only when
  49. Bell-Northern Research, Inc. RTP, NC    |  they agree with me.
  50.  
  51.