Configuration File Directives Mapped to Makefile Rules

When you run the configuration exporter (cfgexprt), target, source, and run directives in the configuration file are mapped to targets, dependencies, and commands in the generated makefile. The following table shows configuration file directives and equivalent makefile rules.

Configuration file directive Equivalent makefile rule
run (before|after) command


run_before_rules: <previous run before targets> run_before__X

run_before__X:
       command
run command



run_target_rules: <previous targets> run__X

run__X:
       command
run source("gram.y") command



run_target_rules: <previous targets> run__X

run__X: gram.y
       command
run target("ytab.h") source("gram.y") command





run_target_rules: <previous targets> run__X

run__X: ytab.h

ytab.h: gram.y
       command
target "a.out" {
     source "a.C"
}




run_target_rules: <previous targets> a.out

a.out: a.o
       link command

a.o: a.C
       compile command
target "a.out" {
     source "b.o"
}

run_target_rules: <previous targets> a.out

a.out: b.o
       link command
target "a.out" {
     source "a.C", "b.o"
}




run_target_rules: <previous targets> a.out

a.out: a.o b.o
       link command

a.o: a.C
       compile command
target "a.o" {
     source "a.C"
}

run_target_rules: <previous targets> a.o

a.o: a.C
       compile command
source "a.rc"



run_target_rules: <previous targets> a.res

a.res:a.rc
       irc command


Configuration Files


Generate Makefiles from Configuration Files