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