X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;ds=sidebyside;f=Modules%2FFilesystems%2FInitRD%2FMakefile;h=0c19c0f73d32be4999bc93d0dd774a165201d9c9;hb=65412aed08381a8d3d54234ff99f4257737435cb;hp=18dbc59906a75ca306acdf382679891a2f47434f;hpb=923a9dc473851ec2bb1c94021bbf139724e7e8a5;p=tpg%2Facess2.git diff --git a/Modules/Filesystems/InitRD/Makefile b/Modules/Filesystems/InitRD/Makefile index 18dbc599..0c19c0f7 100644 --- a/Modules/Filesystems/InitRD/Makefile +++ b/Modules/Filesystems/InitRD/Makefile @@ -1,10 +1,16 @@ # InitRD Filesystem Driver # -OBJ = main.o files.o -NAME = FS_InitRD +OBJ = main.o files.$(ARCH).o +EXTRA = files.c +NAME = InitRD +EXTRA = files.$(ARCH).c files.$(ARCH).c.dep +LDFLAGS += @files.$(ARCH).c.ldopts -include ../Makefile.tpl -files.c: - php GenerateInitRD.php files.lst > files.c + +files.$(ARCH).c: GenerateInitRD.php files.lst + ARCH=$(ARCH) ACESSDIR=$(ACESSDIR) php GenerateInitRD.php files.lst $@ $@.ldopts $@.dep + +-include files.$(ARCH).c.dep