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