be66e4d642
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27058 a1c6a512-1295-4272-9138-f99709370657
33 lines
821 B
Makefile
33 lines
821 B
Makefile
# __________ __ ___.
|
|
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
# \/ \/ \/ \/ \/
|
|
# $Id$
|
|
#
|
|
|
|
BUILDDIR ?= .
|
|
ifndef V
|
|
SILENT = @
|
|
endif
|
|
|
|
SRC = skin_buffer.c skin_parser.c skin_debug.c skin_scan.c tag_table.c
|
|
OBJ := $(patsubst %.c,$(BUILDDIR)/%.o,$(SRC))
|
|
OUT = $(BUILDDIR)/libskin_parser.a
|
|
CC = gcc
|
|
AR = ar
|
|
INCLUDES = -I.
|
|
|
|
default: $(OUT)
|
|
|
|
$(BUILDDIR)/%.o: %.c
|
|
@echo CC $<
|
|
$(SILENT)$(CC) $(INCLUDES) $(CFLAGS) -c $< -o $@
|
|
|
|
$(OUT): $(OBJ)
|
|
@echo AR $(notdir $(OUT))
|
|
$(SILENT)$(AR) rcs $(OUT) $(OBJ)
|
|
|
|
clean:
|
|
rm -f $(OBJ) $(OUT)
|