diff options
author | Michael Brown | 2005-04-14 13:45:37 +0200 |
---|---|---|
committer | Michael Brown | 2005-04-14 13:45:37 +0200 |
commit | 305daba48af6bb0e01366d5684d72b28a8353077 (patch) | |
tree | 96ff21fce3b15bcee03094675b68ed6b89001b69 /src/Makefile.housekeeping | |
parent | Automatically create DBG() macro based on debug_<object> macro. (diff) | |
download | ipxe-305daba48af6bb0e01366d5684d72b28a8353077.tar.gz ipxe-305daba48af6bb0e01366d5684d72b28a8353077.tar.xz ipxe-305daba48af6bb0e01366d5684d72b28a8353077.zip |
Always include compiler.h.
Add bin/%.rebuild rule to quickly force a rebuild of any file.
Add bin/%.o.dbg rule to build a debugging-enabled version of the object.
Diffstat (limited to 'src/Makefile.housekeeping')
-rw-r--r-- | src/Makefile.housekeeping | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping index bc4cb3c2..c7bb1540 100644 --- a/src/Makefile.housekeeping +++ b/src/Makefile.housekeeping @@ -46,6 +46,10 @@ CFLAGS += $(OLDGAS) oldgas : @echo $(oldgas) +# compiler.h is needed for our linking and debugging system +# +CFLAGS += -include compiler.h + # SRCDIRS lists all directories containing source files. srcdirs : @echo $(SRCDIRS) @@ -366,6 +370,18 @@ TAGS.$(ARCH) : ctags -e -R -f $@ $(foreach ARCH,$(OTHER_ARCHS),--exclude=arch/$(ARCH)) CLEANUP += TAGS* +# Force rebuild for any given target +# +$(BIN)/%.rebuild : + rm -f $(BIN)/$* + $(MAKE) $(MAKEFLAGS) $(BIN)/$* + +# Build a debugging version of an object +# +$(BIN)/%.o.dbg : + rm -f $(BIN)/$*.o + $(MAKE) $(MAKEFLAGS) EXTRA_CFLAGS+=-Ddebug_$* $(BIN)/$*.o + # Clean-up # clean : |