#--
|
#--
|
#-- opb_usblite - opb_uartlite replacement
|
#-- opb_usblite - opb_uartlite replacement
|
#--
|
#--
|
#-- opb_usblite is using components from Rudolf Usselmann see
|
#-- opb_usblite is using components from Rudolf Usselmann see
|
#-- http://www.opencores.org/cores/usb_phy/
|
#-- http://www.opencores.org/cores/usb_phy/
|
#-- and Joris van Rantwijk see http://www.xs4all.nl/~rjoris/fpga/usb.html
|
#-- and Joris van Rantwijk see http://www.xs4all.nl/~rjoris/fpga/usb.html
|
#--
|
#--
|
#-- Copyright (C) 2010 Ake Rehnman
|
#-- Copyright (C) 2010 Ake Rehnman
|
#--
|
#--
|
#-- This program is free software: you can redistribute it and/or modify
|
#-- This program is free software: you can redistribute it and/or modify
|
#-- it under the terms of the GNU General Public License as published by
|
#-- it under the terms of the GNU Lesser General Public License as published by
|
#-- the Free Software Foundation, either version 3 of the License, or
|
#-- the Free Software Foundation, either version 3 of the License, or
|
#-- (at your option) any later version.
|
#-- (at your option) any later version.
|
#--
|
#--
|
#-- This program is distributed in the hope that it will be useful,
|
#-- This program is distributed in the hope that it will be useful,
|
#-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
#-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
#-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
#-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
#-- GNU General Public License for more details.
|
#-- GNU Lesser General Public License for more details.
|
#--
|
#--
|
#-- You should have received a copy of the GNU General Public License
|
#-- You should have received a copy of the GNU Lesser General Public License
|
#-- along with this program. If not, see .
|
#-- along with this program. If not, see .
|
#--
|
#--
|
|
|
|
|
COMPILER=
|
COMPILER=
|
ARCHIVER=
|
ARCHIVER=
|
CP=cp
|
CP=cp
|
COMPILER_FLAGS=
|
COMPILER_FLAGS=
|
EXTRA_COMPILER_FLAGS=
|
EXTRA_COMPILER_FLAGS=
|
LIB=libxil.a
|
LIB=libxil.a
|
|
|
RELEASEDIR=../../../lib
|
RELEASEDIR=../../../lib
|
INCLUDEDIR=../../../include
|
INCLUDEDIR=../../../include
|
INCLUDES=-I./. -I${INCLUDEDIR}
|
INCLUDES=-I./. -I${INCLUDEDIR}
|
|
|
INCLUDEFILES=usblite_l.h
|
INCLUDEFILES=usblite_l.h
|
LIBSOURCES=*.c
|
LIBSOURCES=*.c
|
OUTS = *.o
|
OUTS = *.o
|
|
|
|
|
libs:
|
libs:
|
echo "Compiling usblite"
|
echo "Compiling usblite"
|
$(COMPILER) $(COMPILER_FLAGS) $(EXTRA_COMPILER_FLAGS) $(INCLUDES) $(LIBSOURCES)
|
$(COMPILER) $(COMPILER_FLAGS) $(EXTRA_COMPILER_FLAGS) $(INCLUDES) $(LIBSOURCES)
|
$(ARCHIVER) -r ${RELEASEDIR}/${LIB} ${OUTS}
|
$(ARCHIVER) -r ${RELEASEDIR}/${LIB} ${OUTS}
|
make clean
|
make clean
|
|
|
include:
|
include:
|
${CP} ${INCLUDEFILES} ${INCLUDEDIR}
|
${CP} ${INCLUDEFILES} ${INCLUDEDIR}
|
|
|
clean:
|
clean:
|
rm -rf ${OUTS}
|
rm -rf ${OUTS}
|
|
|
|
|