2010-05-08 05:12:14 +02:00
|
|
|
#
|
|
|
|
# LUFA Library
|
2011-01-01 14:00:56 +01:00
|
|
|
# Copyright (C) Dean Camera, 2011.
|
2010-10-13 16:05:35 +02:00
|
|
|
#
|
2010-05-08 05:12:14 +02:00
|
|
|
# dean [at] fourwalledcubicle [dot] com
|
2010-10-28 08:08:58 +02:00
|
|
|
# www.lufa-lib.org
|
2010-05-08 05:12:14 +02:00
|
|
|
#
|
|
|
|
|
2010-07-19 16:00:44 +02:00
|
|
|
# Makefile for the LUFA library itself. This can be used to generate the library documentation.
|
|
|
|
|
|
|
|
|
|
|
|
# Check to see if the LUFA_PATH variable has not been set (the makefile is not being included from a project makefile)
|
|
|
|
ifeq ($(origin LUFA_PATH), undefined)
|
|
|
|
LUFA_ROOT_PATH = .
|
2011-03-13 22:53:19 +01:00
|
|
|
ARCH = {AVR8,UC3}
|
2010-07-19 16:00:44 +02:00
|
|
|
else
|
|
|
|
LUFA_ROOT_PATH = $(LUFA_PATH)/LUFA
|
|
|
|
endif
|
|
|
|
|
2011-02-19 19:37:22 +01:00
|
|
|
# Check to see if the chip architecture has not been defined in the user makefile, set a default architecture if not
|
|
|
|
ifeq ($(origin ARCH), undefined)
|
|
|
|
ARCH = AVR8
|
|
|
|
endif
|
|
|
|
|
2010-07-19 16:00:44 +02:00
|
|
|
# Define module source file lists
|
2011-05-26 13:27:21 +02:00
|
|
|
LUFA_SRC_USB = $(LUFA_ROOT_PATH)/Drivers/USB/Core/$(ARCH)/Device_$(ARCH).c \
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Core/$(ARCH)/Endpoint_$(ARCH).c \
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Core/$(ARCH)/Host_$(ARCH).c \
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Core/$(ARCH)/Pipe_$(ARCH).c \
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Core/$(ARCH)/USBController_$(ARCH).c \
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Core/$(ARCH)/USBInterrupt_$(ARCH).c \
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Core/$(ARCH)/EndpointStream_$(ARCH).c \
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Core/$(ARCH)/PipeStream_$(ARCH).c \
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Core/ConfigDescriptor.c \
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Core/DeviceStandardReq.c \
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Core/Events.c \
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Core/HostStandardReq.c \
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Core/USBTask.c \
|
2011-01-16 20:34:28 +01:00
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Common/HIDParser.c
|
2011-02-20 19:21:04 +01:00
|
|
|
LUFA_SRC_USBCLASS = $(LUFA_ROOT_PATH)/Drivers/USB/Class/Device/Audio.c \
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Device/CDC.c \
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Device/HID.c \
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Device/MassStorage.c \
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Device/MIDI.c \
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Device/RNDIS.c \
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/CDC.c \
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/HID.c \
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/MassStorage.c \
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/MIDI.c \
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/Printer.c \
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/RNDIS.c \
|
2010-07-19 16:00:44 +02:00
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/StillImage.c
|
|
|
|
LUFA_SRC_TEMPERATURE = $(LUFA_ROOT_PATH)/Drivers/Board/Temperature.c
|
2011-02-20 19:21:04 +01:00
|
|
|
LUFA_SRC_SERIAL = $(LUFA_ROOT_PATH)/Drivers/Peripheral/$(ARCH)/Serial_$(ARCH).c
|
|
|
|
LUFA_SRC_TWI = $(LUFA_ROOT_PATH)/Drivers/Peripheral/$(ARCH)/TWI_$(ARCH).c
|
2010-07-19 16:00:44 +02:00
|
|
|
LUFA_SRC_SCHEDULER = $(LUFA_ROOT_PATH)/Scheduler/Scheduler.c
|
|
|
|
|
|
|
|
|
|
|
|
# Check to see if the LUFA_PATH variable has not been set (the makefile is not being included from a project makefile)
|
|
|
|
ifeq ($(origin LUFA_PATH), undefined)
|
2011-05-14 04:17:58 +02:00
|
|
|
LUFA_SRC_ALL_FILES = $(LUFA_SRC_USB) \
|
|
|
|
$(LUFA_SRC_USBCLASS) \
|
|
|
|
$(LUFA_SRC_TEMPERATURE) \
|
|
|
|
$(LUFA_SRC_SERIAL) \
|
|
|
|
$(LUFA_SRC_TWI) \
|
|
|
|
$(LUFA_SRC_SCHEDULER)
|
2010-07-19 16:00:44 +02:00
|
|
|
|
|
|
|
all:
|
|
|
|
|
|
|
|
clean:
|
2010-07-21 16:00:51 +02:00
|
|
|
rm -f $(LUFA_SRC_ALL_FILES:%.c=%.o)
|
2011-03-13 22:53:19 +01:00
|
|
|
rm -f $(LUFA_SRC_ALL_FILES:%.c=%.lst)
|
2010-10-13 16:05:35 +02:00
|
|
|
|
2010-07-19 16:00:44 +02:00
|
|
|
clean_list:
|
2010-05-08 05:12:14 +02:00
|
|
|
|
2010-07-19 16:00:44 +02:00
|
|
|
doxygen:
|
2010-05-08 05:12:14 +02:00
|
|
|
@echo Generating Library Documentation...
|
|
|
|
( cat Doxygen.conf ; echo "PROJECT_NUMBER=`grep LUFA_VERSION_STRING Version.h | cut -d'"' -f2`" ) | doxygen -
|
|
|
|
@echo Documentation Generation Complete.
|
|
|
|
|
2010-07-19 16:00:44 +02:00
|
|
|
clean_doxygen:
|
2010-05-08 05:12:14 +02:00
|
|
|
rm -rf Documentation
|
2011-05-18 13:53:53 +02:00
|
|
|
|
|
|
|
version:
|
|
|
|
@echo "LUFA `grep LUFA_VERSION_STRING Version.h | cut -d'"' -f2`"
|
2010-07-19 16:00:44 +02:00
|
|
|
|
2011-05-18 13:53:53 +02:00
|
|
|
.PHONY: all clean clean_list doxygen clean_doxygen version
|
2010-10-13 16:05:35 +02:00
|
|
|
endif
|