Add my own Makefile

Garcia Jérémie GARCIAJ at 3il.fr
Mon Jul 25 19:35:22 EST 2005


Hi everybody,
I'm developping both new system calls and modules, in order to achieve a project.
In order to group all those new files, I created new directories:

arch/ppc/myproj
arch/ppc/myproj/syscalls/
arch/ppc/myproj/modules/

Under the "syscalls" dir, I made a "Makefile" to compile all those files.
In this Makefile I want to compile a module "mymodule1". This module needs 3 files:
modShiDma.c + modShiDma.S + modShiDma.h
So looking at the other Makefiles of the linux tree, I wrote this one:

/********************************************************************************/
O_TARGET	:= my_environment.o

obj-y	    :=
obj-m	    :=
obj-n       :=

# Compile system calls
obj-$(CONFIG_MY_SOFT)	+=  my_sysmemutils.o
obj-$(CONFIG_MY_SOFT)	+=  my_sysclkutils.o
obj-$(CONFIG_MY_SOFT)	+=  my_sysuicutils.o
obj-$(CONFIG_MY_SOFT)	+=  my_syscardregutils.o
# Compile modules
obj-m += ../modules/modDisplay.o
obj-m += ../modules/modShiDma.o
obj-m += ../modules/modHscx.o

include $(TOPDIR)/Rules.make

modShiDma.o: modShiDma.S modShiDma.c modShiDma.h

/**********************************************************************************/

When I execute the "make modules", only the "modShiDma.c" is compiled while the "modShiDma.S"
is ignored. 

ppc_405-gcc -D__KERNEL__ -I/myWorks/en-cours/linux-2.4.20_mvl31/include -gdwarf-2 -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -I/myWorks/en-cours/linux-2.4.20_mvl31/arch/ppc -fsigned-char -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -Wa,-m405 -DMODULE -DMODVERSIONS -include /myWorks/en-cours/linux-2.4.20_mvl31/include/linux/modversions.h  -nostdinc -iwithprefix include -DKBUILD_BASENAME=modShiDma  -c -o ../modules/modShiDma.o ../modules/modShiDma.c

How to get a "modShiDma.o" object made from the three source files please??



More information about the Linuxppc-dev mailing list