Changeset 4394
- Timestamp:
- 05/09/07 14:46:16 (2 years ago)
- Files:
-
- lm-sensors/trunk/doc/developers/makefiles (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lm-sensors/trunk/doc/developers/makefiles
r4069 r4394 5 5 There is one big Makefile in the root of this package. It includes many 6 6 other files; one for each directory in which source code is found. These 7 included files are called 'Module.mk'. There is a separate set of Makefiles 8 in the i2c/ directories; these are Simon Vogl's original Makefiles, and 9 not referred by the main package Makefile. 7 included files are called 'Module.mk'. 10 8 11 9 There are several interesting targets defined through this Makefile: 12 10 * all 13 11 Create everything in all directories. 14 * all-i2c, all-src, ...15 Create everything in the designated directory.12 * user 13 Build only user-space tools. 16 14 * install 17 15 Install everything from all directories. 18 * install-i2c, install-src, ... 19 Install everything in the designated directory. 16 * user_install 17 Install only user-space tools. 18 * user_uninstall 19 Uninstall user-space tools. 20 20 * clean 21 21 Remove anything which can be regenerated from all directories. A call … … 23 23 this is useful when they are out of date (and prevent the calling of 24 24 any other target). 25 * clean-i2c, clean-src, ...26 Remove anything which can be regenerated from the designated directory.27 25 * version 28 26 Regenerate version.h, using the current date for the date-stamp, and … … 30 28 * package 31 29 Create a .tar.gz file containing everything except the SVN directories. 32 * src/lm78.o, i2c/i2c-core.o, ...33 You can of course also specify one or more targets to make.34 30 35 31 The best way to understand the Module.mk subfiles is to examine one of them, 36 for example src/Module.mk. They are not too difficult to understand.32 for example lib/Module.mk. They are not too difficult to understand. 37 33 38 34 There are several variables which can be set in the main Makefile. You can
