# # Rules for building library # # ---------------------------------------------------------------------------- # common rules # ---------------------------------------------------------------------------- ROOT_PATH := ../.. include $(ROOT_PATH)/gcc.mk # ---------------------------------------------------------------------------- # library and objects # ---------------------------------------------------------------------------- LIBS := libxrsys.a DIRS := $(shell find . -type d) SRCS := $(sort $(basename $(foreach dir,$(DIRS),$(wildcard $(dir)/*.[csS])))) OBJS := $(addsuffix .o,$(SRCS)) # library make rules include $(LIB_MAKE_RULES)