source: trunk/FirmwareFX2/fx2/Makefile@ 126

Last change on this file since 126 was 5, checked in by demin, 15 years ago

adapt to latest usb_jtag sources and altera drivers

File size: 1.4 KB
Line 
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
18CC=sdcc
19CFLAGS+=-mmcs51 --no-xinit-opt -I.
20CPPFLAGS+=
21OBJS=delay.rel fx2utils.rel i2c.rel isr.rel timer.rel usb_common.rel
22AR=sdcclib
23
24(%.rel) : %.c
25 $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $*.rel
26 $(AR) -a $@ $*.rel
27 rm $*.rel
28
29libfx2.lib: libfx2.lib($(OBJS))
30
31clean:
32 rm -f *.lst *.asm *.lib *.sym *.rel *.lib
33
34
35
36
Note: See TracBrowser for help on using the repository browser.