embeddedsw/XilinxProcessorIPLib/drivers/usbps/src/Makefile
Shakti Bhatnagar 41282e2b69 usbps_v2_2: Deprecated v2_1 added new version v2_2
Added new version of usbps driver v2_2

Signed-off-by: Shakti Bhatnagar <shaktib@xilinx.com>
Acked-by: Srikanth Vemula <svemula@xilinx.com>
2014-07-17 10:32:43 +05:30

41 lines
662 B
Makefile
Executable file

COMPILER=
ARCHIVER=
CP=cp
COMPILER_FLAGS=
EXTRA_COMPILER_FLAGS=
LIB=libxil.a
CC_FLAGS = $(COMPILER_FLAGS)
ECC_FLAGS = $(EXTRA_COMPILER_FLAGS)
RELEASEDIR=../../../lib
INCLUDEDIR=../../../include
INCLUDES=-I./. -I${INCLUDEDIR}
OUTS = *.o
LIBSOURCES:=*.c
INCLUDEFILES:=*.h
OBJECTS = $(addsuffix .o, $(basename $(wildcard *.c)))
libs: banner xusbps_libs clean
%.o: %.c
${COMPILER} $(CC_FLAGS) $(ECC_FLAGS) $(INCLUDES) -o $@ $<
banner:
echo "Compiling usbps"
xusbps_libs: ${OBJECTS}
$(ARCHIVER) -r ${RELEASEDIR}/${LIB} ${OBJECTS}
.PHONY: include
include: xusbps_includes
xusbps_includes:
${CP} ${INCLUDEFILES} ${INCLUDEDIR}
clean:
rm -rf ${OBJECTS}