problem with make file

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

 



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

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


[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