source: trunk/kBuild/doc/example1/Makefile.kmk@ 3204

Last change on this file since 3204 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
Line 
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
13SUB_DEPTH = .
14include $(KBUILD_PATH)/subheader.kmk
15
16#
17# Include sub-makefiles.
18#
19include $(PATH_CURRENT)/libhello/Makefile.kmk
20
21#
22# The targets.
23#
24PROGRAMS += \
25 hello \
26 hellolib
27
28#
29# Hello world program.
30#
31hello_TEMPLATE = ExampleNo1Exe
32hello_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#
38hellolib_TEMPLATE = ExampleNo1Exe
39hellolib_SOURCES = hellolib.c
40hellolib_LIBS = $(libhello_1_TARGET)
41
42include $(FILE_KBUILD_SUB_FOOTER)
43
Note: See TracBrowser for help on using the repository browser.