Hello,

   I have a Kernel module source tree similar as below:

   |
   |--Makefile
   |
   |--maind
   |    |
   |    |
   |    |-- main.c
   |
   |
   |--foobard
   |    |
        |
        |-- foobar1.c
        |
        |-- foobar2.c


The below make file works fine.

######################################################################
#
# Linux 2.6 Kernel module Makefile
#

MODULE_NAME = test

$(MODULE_NAME)-objs = maind/main.o foobard/foobar1.o foobard/foobar2.o

ifneq ($(KERNELRELEASE),)

obj-m   := $(MODULE_NAME).o

else

KDIR    := /lib/modules/$(shell uname -r)/build
PWD     := $(shell pwd)

all:
       $(MAKE) -C $(KDIR) M=$(PWD) modules

endif

######################################################################


However I would like to know if it is possible to have a Makefile inside the foobard directory that will link foobar1.o and foobar2.o into one say foobar.o and have the below line as:

$(MODULE_NAME)-objs = maind/main.o foobard/foobar.o

instead of:

$(MODULE_NAME)-objs = maind/main.o foobard/foobar1.o foobard/foobar2.o


Thanks for any help


Regards Suzzane

_________________________________________________________________
Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/




-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
_______________________________________________
kbuild-devel mailing list
kbuild-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kbuild-devel

Reply via email to