[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ‘multiple target patterns. Stop.’ er ror in my first makefile to use
From: |
Greg Chicares |
Subject: |
Re: ‘multiple target patterns. Stop.’ er ror in my first makefile to use with GNU Make |
Date: |
Thu, 21 Jan 2010 20:29:12 +0000 |
User-agent: |
Thunderbird 2.0.0.23 (Windows/20090812) |
On 2010-01-21 19:42Z, Ted Byers wrote:
> CC = g++
> sources := $(wildcard *.cpp)
> objects := $(patsubst %.cpp, %.o, $(sources))
'objects' begins with lowercase 'o'.
> objs: $(Objects)
'Objects' begins with uppercase 'O'.
> include $(sources:.c=.d)
As written, C++ source gets included in the makefile.
Files in $(sources) have suffix 'cpp', not 'c'.