# OSX-makefile : Makefile fragment for compiling a target-specific version of libLPC2xxx
# Copyright (c) 2005-2007 Garth Zeglin

# This file is part of ArtLPC. 

# ArtLPC is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.

# ArtLPC is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with ArtLPC; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

# ---------------------------------------------------------------------

# Makefile entries for creating a custom libLPC2XXX for a given
# target.  Since the library must be compiled in the context of a
# config.h customization file, this file should be included in a
# project Makefile with appropriate vpath settings, and the source
# compiled in the project directory.

# The OS X version will currently also work for Linux.  Only a
# fraction of code will actually compile, since most depends on a
# hardware.  Some limited simulation facility is provided for debugging
# program flow and the file system support.


LPC2XXX_ASM_SRCS = \

LPC2XXX_C_SRCS = \
	simulator.c \
	block_device.c \
	fat16_filesystem.c \
	fat16_file_port.c \
	lists.c \
	partition_device.c \
	memory_block_device.c \
	wav_audio.c \
	fifo.c \
	capacitance.c \

LPC2XXX_OBJS = $(LPC2XXX_C_SRCS:%.c=%.o) $(LPC2XXX_ASM_SRCS:%.S=%.o)

$(LIBOBJDIR)/libLPC2xxx.a: $(LPC2XXX_OBJS:%=$(LIBOBJDIR)/%)
	$(AR) cru $@ $^
	$(RANLIB) $@

