Handout
This commit is contained in:
23
libsys/Makefile
Normal file
23
libsys/Makefile
Normal file
@@ -0,0 +1,23 @@
|
||||
# --------------------------------------------------------------------------
|
||||
# Files to be compiled (important: defined prior to importing common.mk!)
|
||||
CC_SOURCES = $(shell find * -name "*.cc")
|
||||
ASM_SOURCES = $(shell find * -name "*.asm")
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Include global variables and default targets
|
||||
|
||||
include ../tools/common.mk
|
||||
|
||||
# --------------------------------------------------------------------------
|
||||
# Default target
|
||||
|
||||
.DEFAULT_GOAL = all
|
||||
all: $(BUILDDIR)/libsys.a
|
||||
|
||||
# --------------------------------------------------------------------------
|
||||
# Package libsys.a
|
||||
|
||||
$(BUILDDIR)/libsys.a: $(ASM_OBJECTS) $(CC_OBJECTS) $(MAKEFILE_LIST)
|
||||
@echo "AR $@"
|
||||
@mkdir -p $(@D)
|
||||
$(VERBOSE) $(AR) rcs $@ $(ASM_OBJECTS) $(CC_OBJECTS)
|
||||
Reference in New Issue
Block a user