Re: What to do with 3c59x.c?

From: Aaron Denney (wnoise@ugcs.caltech.edu)
Date: Wed Apr 12 2000 - 12:25:29 EST


On Thu, 13 Apr 2000 01:14:13 +1000, Andrew Morton <andrewm@uow.edu.au> wrote:
> It appears the best way to compile one .c file into two .o files is to
> add a special makefile target:
>
> 3c575_cb.o: ../3c59x.c
> $(CC) $(CFLAGS) -D__NO_VERSION__ -DPCMCIA -c -o $@ ../3c59x.c

Can you please write the rule as:
3c575_cb.o: ../3c59x.c
        $(CC) $(CFLAGS) -D__NO_VERSION__ -DPCMCIA -c -o $@ $<

Or perhaps as:
CFLAGS_3c575_cb.o := $(CFLAGS) -D__NO_VERSION__ -DPCMCIA
3c575_cb.o: ../3c59x.c

(altthough I suppose that would generate the .flags.o that you didn't
seem to want.)

I've been trying to get the kernel makefiles to cooperate with VPATH,
and it helps greatly if no more rules that explicitly list the source
file get added.

-- 
Aaron Denney
-><-

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Apr 15 2000 - 21:00:19 EST