Commit Graph

9 Commits

Author SHA1 Message Date
Travis Geiselbrecht
02fbc1f812 [make] fix MODULE_INCLUDES to actually work
-wasn't properly being prefixed with -I and
-wasn't being erased after usage
2014-04-20 19:22:58 -07:00
Travis Geiselbrecht
e14309a95b [make] add GLOBAL_SRCDEPS variable
Build a phony rule that depends on a delay evaluated SRCDEPS
variable at the end of the build so that modules that add to
it are properly tracked.
2013-07-31 12:13:11 -07:00
Travis Geiselbrecht
7e8b333b97 [make] add new TESTANDREPLACEFILE macro
Split the MAKECONFIGHEADER macro into the part that generates
the header and the part that tests if you should replace the
target file with the generated one.
2013-07-31 12:12:07 -07:00
Travis Geiselbrecht
3635b5d314 [make] put all of the global and local build switches in config.h files
-now if you change any interesting build flags, the appropriate sources
will be rebuilt
2012-09-23 18:48:11 -07:00
Travis Geiselbrecht
6830dfe447 [make] add options to add extra .o files to the link line at the module and global scope 2012-09-23 18:29:34 -07:00
Travis Geiselbrecht
d82b0fbca0 [make] add mod.o files to the GENERATED list so they get cleaned up properly 2012-09-05 11:42:57 -07:00
Travis Geiselbrecht
734f32b143 [make] better modularize the build system
-Each module's rules.mk defines a seperate linkage unit. Each
module can have a private set of CFLAGS, DEFINES, INCLUDES, and so
forth.
-Files to be compiled are now added by source, not object.

Most rules.mk files can be converted easily by following these steps:

1) add 'MODULE := $(LOCAL_DIR)' near the top of the file
2) change OBJS += to MODULE_SRCS += and list source files instead of .os
3) add 'include make/module.mk' at the bottom of the file

See make/module.mk for directions.
2012-08-31 15:52:24 -07:00
Travis Geiselbrecht
9c0f307ce6 [make] rename module.mk to recurse.mk to make way for a real module.mk 2012-08-31 15:42:44 -07:00
Travis Geiselbrecht
5bcbd9d68e move the stray .mk files from the root dir into a make/ subdir 2009-01-24 20:15:32 -08:00