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-07-14 10:56:41 +02:00
|
|
|
ARCH = {AVR8,UC3,XMEGA}
|
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-11-24 02:24:01 +01: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-11-24 02:24:01 +01:00
|
|
|
LUFA_SRC_USBCLASS = $(LUFA_ROOT_PATH)/Drivers/USB/Class/Device/AudioClassDevice.c \
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Device/CDCClassDevice.c \
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Device/HIDClassDevice.c \
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Device/MassStorageClassDevice.c \
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Device/MIDIClassDevice.c \
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Device/RNDISClassDevice.c \
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/AndroidAccessoryClassHost.c \
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/AudioClassHost.c \
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/CDCClassHost.c \
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/HIDClassHost.c \
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/MassStorageClassHost.c \
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/MIDIClassHost.c \
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/PrinterClassHost.c \
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/RNDISClassHost.c \
|
2011-11-18 07:26:51 +01:00
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/StillImageClassHost.c
|
2010-07-19 16:00:44 +02:00
|
|
|
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:
|
2011-09-21 08:45:09 +02:00
|
|
|
@echo Generating LUFA Library Documentation...
|
2012-03-09 22:28:44 +01:00
|
|
|
|
2012-03-09 23:36:56 +01:00
|
|
|
@if ( ( cat Doxygen.conf ; echo "PROJECT_NUMBER=`grep LUFA_VERSION_STRING Version.h | cut -d'"' -f2`" ) | doxygen - 2>&1 | grep ": warning:" ;); then \
|
2012-03-09 22:28:44 +01:00
|
|
|
exit 1; \
|
|
|
|
fi;
|
|
|
|
|
2010-05-08 05:12:14 +02:00
|
|
|
@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-06-20 16:38:21 +02:00
|
|
|
|
|
|
|
checksource:
|
|
|
|
|
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
|