diff options
author | Andrew Shadura <andrew@shadura.me> | 2015-07-25 14:44:29 +0200 |
---|---|---|
committer | Andrew Shadura <andrew@shadura.me> | 2015-07-25 14:44:29 +0200 |
commit | aba913436a8521abe405a04ed71388989e1d646f (patch) | |
tree | 0e2fea8c3ccf06ae3b370806810e382ca51f4a98 /examples/tools2/tools | |
parent | 1d3d0bb1e461a81bc1a9cd4520958bd2b1db4c7f (diff) |
Imported Upstream version 0.25.0
Diffstat (limited to 'examples/tools2/tools')
-rw-r--r-- | examples/tools2/tools/prog1/Makefile | 12 | ||||
-rw-r--r-- | examples/tools2/tools/prog1/prog1.c | 10 | ||||
-rw-r--r-- | examples/tools2/tools/prog2/Makefile | 12 | ||||
-rw-r--r-- | examples/tools2/tools/prog2/prog2.c | 10 | ||||
-rw-r--r-- | examples/tools2/tools/prog3/Makefile | 14 | ||||
-rw-r--r-- | examples/tools2/tools/prog3/prog3.c | 14 | ||||
-rw-r--r-- | examples/tools2/tools/prog4/Makefile | 11 | ||||
-rw-r--r-- | examples/tools2/tools/prog4/prog4.c | 9 |
8 files changed, 92 insertions, 0 deletions
diff --git a/examples/tools2/tools/prog1/Makefile b/examples/tools2/tools/prog1/Makefile new file mode 100644 index 0000000..bca4588 --- /dev/null +++ b/examples/tools2/tools/prog1/Makefile @@ -0,0 +1,12 @@ +PROG = prog1 + +CFLAGS += -DNUM=1 +WARNS = 4 + +MKC_REQD = 0.10.0 + +check: + @: do something useful + +.include "../../libs/foo/linkme.mk" +.include <mkc.prog.mk> diff --git a/examples/tools2/tools/prog1/prog1.c b/examples/tools2/tools/prog1/prog1.c new file mode 100644 index 0000000..87578e2 --- /dev/null +++ b/examples/tools2/tools/prog1/prog1.c @@ -0,0 +1,10 @@ +#include <stdio.h> + +#include "foo.h" + +int main (int argc, char** argv) +{ + printf ("%s", get_msg1 ()); + printf ("%d\n", NUM); + return 0; +} diff --git a/examples/tools2/tools/prog2/Makefile b/examples/tools2/tools/prog2/Makefile new file mode 100644 index 0000000..63ab936 --- /dev/null +++ b/examples/tools2/tools/prog2/Makefile @@ -0,0 +1,12 @@ +PROG = prog2 + +CFLAGS += -DNUM=2 +WARNS = 4 + +MKC_REQD = 0.10.0 + +check: + @: do something useful + +.include "../../libs/bar/linkme.mk" +.include <mkc.prog.mk> diff --git a/examples/tools2/tools/prog2/prog2.c b/examples/tools2/tools/prog2/prog2.c new file mode 100644 index 0000000..ed9553c --- /dev/null +++ b/examples/tools2/tools/prog2/prog2.c @@ -0,0 +1,10 @@ +#include <stdio.h> + +#include "bar.h" + +int main (int argc, char** argv) +{ + printf ("%s", get_msg2 ()); + printf ("%d\n", NUM); + return 0; +} diff --git a/examples/tools2/tools/prog3/Makefile b/examples/tools2/tools/prog3/Makefile new file mode 100644 index 0000000..b361032 --- /dev/null +++ b/examples/tools2/tools/prog3/Makefile @@ -0,0 +1,14 @@ +PROG = prog3 + +CFLAGS += -DNUM=3 +WARNS = 4 + +MKC_REQD = 0.10.0 + +check: + @: do something useful + +.include "../../libs/foo/linkme.mk" +.include "../../libs/bar/linkme.mk" + +.include <mkc.prog.mk> diff --git a/examples/tools2/tools/prog3/prog3.c b/examples/tools2/tools/prog3/prog3.c new file mode 100644 index 0000000..54b740b --- /dev/null +++ b/examples/tools2/tools/prog3/prog3.c @@ -0,0 +1,14 @@ +#include <stdio.h> + +#include "foo.h" +#include "bar.h" + +int main (int argc, char** argv) +{ + printf ("%s", get_msg1 ()); + printf ("%d\n", NUM); + + printf ("%s", get_msg2 ()); + printf ("%d\n", NUM); + return 0; +} diff --git a/examples/tools2/tools/prog4/Makefile b/examples/tools2/tools/prog4/Makefile new file mode 100644 index 0000000..307f490 --- /dev/null +++ b/examples/tools2/tools/prog4/Makefile @@ -0,0 +1,11 @@ +PROG = prog4 + +WARNS = 4 + +MKC_REQD = 0.10.0 + +check: + @: do something useful + +.include "../../libs/qux/linkme.mk" +.include <mkc.prog.mk> diff --git a/examples/tools2/tools/prog4/prog4.c b/examples/tools2/tools/prog4/prog4.c new file mode 100644 index 0000000..3b4d087 --- /dev/null +++ b/examples/tools2/tools/prog4/prog4.c @@ -0,0 +1,9 @@ +#include <stdio.h> + +#include "qux.h" + +int main (int argc, char** argv) +{ + printf ("int_size=%d\n", get_int_size ()); + return 0; +} |