#-----------------------------------------------------------------------------\r
-\r
# Makefile for FX2 library code\r
-\r
#-----------------------------------------------------------------------------\r
-\r
# Copyright (C) 2007 Kolja Waschk, ixo.de\r
-\r
#-----------------------------------------------------------------------------\r
-\r
# This code is part of usbjtag. usbjtag is free software; you can redistribute\r
-\r
# it and/or modify it under the terms of the GNU General Public License as\r
-\r
# published by the Free Software Foundation; either version 2 of the License,\r
-\r
# or (at your option) any later version. usbjtag is distributed in the hope\r
-\r
# that it will be useful, but WITHOUT ANY WARRANTY; without even the implied\r
-\r
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
-\r
# GNU General Public License for more details. You should have received a\r
-\r
# copy of the GNU General Public License along with this program in the file\r
-\r
# COPYING; if not, write to the Free Software Foundation, Inc., 51 Franklin\r
-\r
# St, Fifth Floor, Boston, MA 02110-1301 USA\r
-\r
#-----------------------------------------------------------------------------\r
\r
-\r
-\r
CC=sdcc\r
-\r
CFLAGS+=-mmcs51 --no-xinit-opt -I.\r
-\r
CPPFLAGS+=\r
\r
-\r
-\r
%.rel : %.c\r
-\r
$(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@\r
\r
-\r
-\r
libfx2.lib: delay.rel fx2utils.rel i2c.rel isr.rel timer.rel usb_common.rel\r
-\r
rm -f $@\r
-\r
touch $@\r
-\r
for obj in $^ ; do basename $$obj .rel >> $@ ; done\r
\r
-\r
-\r
clean:\r
-\r
rm -f *.lst *.asm *.lib *.sym *.rel *.lib\r
\r
\r
\r
\r
-\r
-\r
-\r
-\r
-\r