Last change
on this file was 2343, checked in by bird, 16 years ago |
doc/example1: create a simple example config.
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Id
|
File size:
774 bytes
|
Rev | Line | |
---|
[2343] | 1 | # $Id: Makefile.kmk 2343 2009-04-19 21:44:50Z bird $
|
---|
| 2 | ## @file
|
---|
| 3 | # kBuild Example no. 1 - Makefile.kmk - The top-level makefile.
|
---|
| 4 | #
|
---|
| 5 |
|
---|
| 6 | #
|
---|
| 7 | # The author disclaims copyright to this example script and places
|
---|
| 8 | # it in the public domain.
|
---|
| 9 | #
|
---|
| 10 | # include full-legal-disclaimer.kmk
|
---|
| 11 | #
|
---|
| 12 |
|
---|
| 13 | SUB_DEPTH = .
|
---|
| 14 | include $(KBUILD_PATH)/subheader.kmk
|
---|
| 15 |
|
---|
| 16 | #
|
---|
| 17 | # Include sub-makefiles.
|
---|
| 18 | #
|
---|
| 19 | include $(PATH_CURRENT)/libhello/Makefile.kmk
|
---|
| 20 |
|
---|
| 21 | #
|
---|
| 22 | # The targets.
|
---|
| 23 | #
|
---|
| 24 | PROGRAMS += \
|
---|
| 25 | hello \
|
---|
| 26 | hellolib
|
---|
| 27 |
|
---|
| 28 | #
|
---|
| 29 | # Hello world program.
|
---|
| 30 | #
|
---|
| 31 | hello_TEMPLATE = ExampleNo1Exe
|
---|
| 32 | hello_SOURCES = hello.c
|
---|
| 33 |
|
---|
| 34 | #
|
---|
| 35 | # A hello world variant that has some of the code in the libhello directory,
|
---|
| 36 | # i.e. linking with a library built by the sub-makefile included above.
|
---|
| 37 | #
|
---|
| 38 | hellolib_TEMPLATE = ExampleNo1Exe
|
---|
| 39 | hellolib_SOURCES = hellolib.c
|
---|
| 40 | hellolib_LIBS = $(libhello_1_TARGET)
|
---|
| 41 |
|
---|
| 42 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
| 43 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.