[Omake] Re: vmount problems

David Kågedal davidk at lysator.liu.se
Mon Sep 4 01:55:12 PDT 2006


David Kågedal <davidk at lysator.liu.se> writes:

> Consider the following directory structure:
>
> top/
>     OMakeroot
>     OMakefile
>     src/
>         OMakefile
>         foo.c
>     build/
>
> and the folloging OMakefiles:
>
> --- top/OMakefile
> if true
>     .SUBDIRS: src
>     .DEFAULT: src/foo
> else
>     vmount(src, build)
>     .SUBDIRS: build
>     .DEFAULT: build/foo
> -------------------------
>
> --- top/src/OMakefile
> CProgram(foo, foo)
> -------------------------

I think I found the problem.  With this patch applied to omake
0.9.6.9, it works fine.  The C++ rule just below it already uses $<,
and it seems like the right thing to do to me.  Please apply.

--- lib/build/C.om.orig 2006-04-11 02:45:54.000000000 +0200
+++ lib/build/C.om      2006-09-04 10:50:10.000000000 +0200
@@ -127,7 +127,7 @@
 CXX_EXTS[] = .cpp .cc .c++
 
 %$(EXT_OBJ): %.c :scanner: scan-c-%.c
-    $(CC) $(CFLAGS) $(PREFIXED_INCLUDES) -c -o $@ $*.c
+    $(CC) $(CFLAGS) $(PREFIXED_INCLUDES) -c -o $@ $<
 
 foreach(CXX_EXT, $(CXX_EXTS))
     %$(EXT_OBJ): %$(CXX_EXT) :scanner: scan-cxx-%$(CXX_EXT)


-- 
David Kågedal



More information about the Omake mailing list