Source

hello / OMakeroot

Full commit
Check_header_library(xlib, xheader, xfunc) =
  return $(and $(VerboseCheckCHeader $(xheader)), $(VerboseCheckCLib $(xlib), $(xfunc)))

Have_library(libname, lib, header, func) =
  setvar(this.HAVE_$(libname), $(Check_header_library $(lib), $(header), $(func)))
  export

CProg. = 
  class CProg
  target =
  source =
  options=

  new(t,s,ldf) =
    this.target = $(t)
    this.source = $(s)
    this.ldflags = $(ldf)
    return $(this)

  dep() =
    CFLAGS += $(this.ldflags)
    .DEFAULT: $(CProgram $(this.t), $(this.s))

CXXProg. = 
  class CXXProg
  target =
  source =
  options=

  new(t,s,ldf) =
    this.target = $(t)
    this.source = $(s)
    this.ldflags = $(ldf)
    return $(this)

  dep() =
    CXXFLAGS += $(this.ldflags)
    .DEFAULT: $(CXXProgram $(this.t), $(this.s))

#
# The command-line variables are defined *after* the
# standard configuration has been loaded.
#
DefineCommandVars()

#
# Include the OMakefile in this directory.
#
.SUBDIRS: .