mirror of
https://github.com/ipxe/ipxe
synced 2025-12-11 22:11:08 +03:00
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.
This commit is contained in:
@@ -46,6 +46,10 @@ CFLAGS += $(OLDGAS)
|
|||||||
oldgas :
|
oldgas :
|
||||||
@echo $(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 lists all directories containing source files.
|
||||||
srcdirs :
|
srcdirs :
|
||||||
@echo $(SRCDIRS)
|
@echo $(SRCDIRS)
|
||||||
@@ -366,6 +370,18 @@ TAGS.$(ARCH) :
|
|||||||
ctags -e -R -f $@ $(foreach ARCH,$(OTHER_ARCHS),--exclude=arch/$(ARCH))
|
ctags -e -R -f $@ $(foreach ARCH,$(OTHER_ARCHS),--exclude=arch/$(ARCH))
|
||||||
CLEANUP += TAGS*
|
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-up
|
||||||
#
|
#
|
||||||
clean :
|
clean :
|
||||||
|
|||||||
Reference in New Issue
Block a user