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