2010-06-17 06:52:02 +00:00
|
|
|
# __________ __ ___.
|
|
|
|
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
# \/ \/ \/ \/ \/
|
|
|
|
# $Id$
|
|
|
|
#
|
|
|
|
|
|
|
|
BUILDDIR ?= .
|
2010-06-22 16:51:29 +00:00
|
|
|
ifndef V
|
|
|
|
SILENT = @
|
|
|
|
endif
|
2010-06-17 06:52:02 +00:00
|
|
|
|
2010-06-17 07:56:51 +00:00
|
|
|
SRC = skin_buffer.c skin_parser.c skin_debug.c skin_scan.c tag_table.c
|
2010-06-17 06:52:02 +00:00
|
|
|
OBJ := $(patsubst %.c,$(BUILDDIR)/%.o,$(SRC))
|
|
|
|
OUT = $(BUILDDIR)/libskin_parser.a
|
|
|
|
CC = gcc
|
|
|
|
AR = ar
|
|
|
|
INCLUDES = -I.
|
|
|
|
|
|
|
|
default: $(OUT)
|
|
|
|
|
|
|
|
$(BUILDDIR)/%.o: %.c
|
2010-06-22 16:51:29 +00:00
|
|
|
@echo CC $<
|
|
|
|
$(SILENT)$(CC) $(INCLUDES) $(CFLAGS) -c $< -o $@
|
2010-06-17 06:52:02 +00:00
|
|
|
|
|
|
|
$(OUT): $(OBJ)
|
2010-06-22 16:51:29 +00:00
|
|
|
@echo AR $(notdir $(OUT))
|
|
|
|
$(SILENT)$(AR) rcs $(OUT) $(OBJ)
|
2010-06-17 06:52:02 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(OBJ) $(OUT)
|