[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Passing multiple arguments to makefile

From: Duke Normandin
Subject: Passing multiple arguments to makefile
Date: Wed, 08 Dec 2010 15:04:06 -0000
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)

Hello list...

I'm new to writing makefiles!

I want to do the following:

`make ARGS= "exec_file src_1 src_2 etc"'

I realize that $(ARGS) will contain _all_ the arguments. I need to
come up with a way to split out each argument to get to:

EXEC-FILE = exec_file
SRCS = src_1 src_2 src_3

I'm trying to create a "generic" makefile for a non-C compiler. Is
this possible? TIA...

reply via email to

[Prev in Thread] Current Thread [Next in Thread]