| 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 | OBJS=delay.rel fx2utils.rel i2c.rel isr.rel timer.rel usb_common.rel
|
|---|
| 22 | AR=sdcclib
|
|---|
| 23 |
|
|---|
| 24 | (%.rel) : %.c
|
|---|
| 25 | $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $*.rel
|
|---|
| 26 | $(AR) -a $@ $*.rel
|
|---|
| 27 | rm $*.rel
|
|---|
| 28 |
|
|---|
| 29 | libfx2.lib: libfx2.lib($(OBJS))
|
|---|
| 30 |
|
|---|
| 31 | clean:
|
|---|
| 32 | rm -f *.lst *.asm *.lib *.sym *.rel *.lib
|
|---|
| 33 |
|
|---|
| 34 |
|
|---|
| 35 |
|
|---|
| 36 |
|
|---|