summaryrefslogtreecommitdiff
path: root/lib/skin_parser/skin_parser.make
blob: 42104a2822c87aa2f7b95ca9bfbfb62f8989e2f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#             __________               __   ___.
#   Open      \______   \ ____   ____ |  | _\_ |__   _______  ___
#   Source     |       _//  _ \_/ ___\|  |/ /| __ \ /  _ \  \/  /
#   Jukebox    |    |   (  <_> )  \___|    < | \_\ (  <_> > <  <
#   Firmware   |____|_  /\____/ \___  >__|_ \|___  /\____/__/\_ \
#                     \/            \/     \/    \/            \/
#
SKINPARSLIB_DIR = $(ROOTDIR)/lib/skin_parser
SKINPARSLIB_SRC = $(call preprocess, $(SKINPARSLIB_DIR)/SOURCES)
SKINPARSLIB_OBJ := $(call c2obj, $(SKINPARSLIB_SRC))

SKINPARSLIB = $(BUILDDIR)/lib/libskin_parser.a

INCLUDES += -I$(SKINPARSLIB_DIR)
OTHER_SRC += $(SKINPARSLIB_SRC)
CORE_LIBS += $(SKINPARSLIB)

$(SKINPARSLIB): $(SKINPARSLIB_OBJ)
	$(SILENT)$(shell rm -f $@)
	$(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null