cURL / Mailing Lists / curl-library / Single Mail


Re: [PROPOSAL] simplify gnu makefiles

From: Gisle Vanem <>
Date: Fri, 2 Jul 2004 15:16:11 +0200

"Guenter Knauf" <> said:

> I've played a bit with make, and perhaps something like the rule below could save us some time,
> at least with all builds which use gnu make:
> OBJS := $(patsubst %.c,%.o,$(wildcard *.c))

SOURCE = $(wilcard *.c)
OBJS = $(SOURCE:.c.o)

is maybe easier to grasp.

> BTW: I'm just on changing the NetWare makefiles so that now a config.h is created
> at compilation time by the makefile, and would like to remove the config-netware.h then when finished...
> are you fine with this?

This would make it more difficult to build for multiple targets.
You have to remember to "rm -f config.h" before building another
lib. Keep the current config* files IMHO.

Received on 2004-07-02