Re: problem with make file

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

 





----- Original Message ----
From: hari krishna angadi <reachtohari@xxxxxxxxx>
To: kernelnewbies@xxxxxxxxxxxx
Sent: Monday, July 9, 2007 5:45:45 PM
Subject: problem with make file

hi all,
         i have wriiten a makefile which compliles two different modules and create one main object file.
1> if i do make i should get hello1.ko,hello2.ko and combine.ko
2> then i can insmod combine.ko instead of doing insmod hello1.ko and insmod hello2.ko................
i have written Makefile

obj-m :=combine.o
module-objs :=hello1.o hello2.o
obj-m :=hello1.o hello2.o

all:
        make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) modules


clean:
        make -C /lib/modules/$(shell uname -r)/build SUBDIRS=$(PWD) clean
        rm -f Module*

but unable to get combine.ko


can u send the error message

and wats this last line for "rm -f Module*"



Send instant messages to your online friends http://uk.messenger.yahoo.com




Luggage? GPS? Comic books?
Check out fitting gifts for grads at Yahoo! Search.

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux