Statistics
| Branch: | Tag: | Revision:

root / LUFA / makefile @ 978b99e5

History | View | Annotate | Download (4.59 KB)

1
#
2
#             LUFA Library
3
#     Copyright (C) Dean Camera, 2011.
4
#
5
#  dean [at] fourwalledcubicle [dot] com
6
#           www.lufa-lib.org
7
#
8

    
9
# Makefile for the LUFA library itself. This can be used to generate the library documentation.
10

    
11

    
12
# Check to see if the LUFA_PATH variable has not been set (the makefile is not being included from a project makefile)
13
ifeq ($(origin LUFA_PATH), undefined)
14
   LUFA_ROOT_PATH = .
15
   ARCH = {AVR8,UC3,XMEGA}
16
else
17
   LUFA_ROOT_PATH = $(LUFA_PATH)/LUFA
18
endif
19

    
20
# Check to see if the chip architecture has not been defined in the user makefile, set a default architecture if not
21
ifeq ($(origin ARCH), undefined)
22
   ARCH = AVR8
23
endif
24

    
25
# Define module source file lists
26
LUFA_SRC_USB          = $(LUFA_ROOT_PATH)/Drivers/USB/Core/$(ARCH)/Device_$(ARCH).c         \
27
                        $(LUFA_ROOT_PATH)/Drivers/USB/Core/$(ARCH)/Endpoint_$(ARCH).c       \
28
                        $(LUFA_ROOT_PATH)/Drivers/USB/Core/$(ARCH)/Host_$(ARCH).c           \
29
                        $(LUFA_ROOT_PATH)/Drivers/USB/Core/$(ARCH)/Pipe_$(ARCH).c           \
30
                        $(LUFA_ROOT_PATH)/Drivers/USB/Core/$(ARCH)/USBController_$(ARCH).c  \
31
                        $(LUFA_ROOT_PATH)/Drivers/USB/Core/$(ARCH)/USBInterrupt_$(ARCH).c   \
32
                        $(LUFA_ROOT_PATH)/Drivers/USB/Core/$(ARCH)/EndpointStream_$(ARCH).c \
33
                        $(LUFA_ROOT_PATH)/Drivers/USB/Core/$(ARCH)/PipeStream_$(ARCH).c     \
34
                        $(LUFA_ROOT_PATH)/Drivers/USB/Core/ConfigDescriptor.c               \
35
                        $(LUFA_ROOT_PATH)/Drivers/USB/Core/DeviceStandardReq.c              \
36
                        $(LUFA_ROOT_PATH)/Drivers/USB/Core/Events.c                         \
37
                        $(LUFA_ROOT_PATH)/Drivers/USB/Core/HostStandardReq.c                \
38
                        $(LUFA_ROOT_PATH)/Drivers/USB/Core/USBTask.c                        \
39
                        $(LUFA_ROOT_PATH)/Drivers/USB/Class/Common/HIDParser.c
40
LUFA_SRC_USBCLASS     = $(LUFA_ROOT_PATH)/Drivers/USB/Class/Device/Audio.c                  \
41
                        $(LUFA_ROOT_PATH)/Drivers/USB/Class/Device/CDC.c                    \
42
                        $(LUFA_ROOT_PATH)/Drivers/USB/Class/Device/HID.c                    \
43
                        $(LUFA_ROOT_PATH)/Drivers/USB/Class/Device/MassStorage.c            \
44
                        $(LUFA_ROOT_PATH)/Drivers/USB/Class/Device/MIDI.c                   \
45
                        $(LUFA_ROOT_PATH)/Drivers/USB/Class/Device/RNDIS.c                  \
46
                        $(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/Audio.c                    \
47
                        $(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/CDC.c                      \
48
                        $(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/HID.c                      \
49
                        $(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/MassStorage.c              \
50
                        $(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/MIDI.c                     \
51
                        $(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/Printer.c                  \
52
                        $(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/RNDIS.c                    \
53
                        $(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/StillImage.c
54
LUFA_SRC_TEMPERATURE  = $(LUFA_ROOT_PATH)/Drivers/Board/Temperature.c
55
LUFA_SRC_SERIAL       = $(LUFA_ROOT_PATH)/Drivers/Peripheral/$(ARCH)/Serial_$(ARCH).c
56
LUFA_SRC_TWI          = $(LUFA_ROOT_PATH)/Drivers/Peripheral/$(ARCH)/TWI_$(ARCH).c
57
LUFA_SRC_SCHEDULER    = $(LUFA_ROOT_PATH)/Scheduler/Scheduler.c
58

    
59

    
60
# Check to see if the LUFA_PATH variable has not been set (the makefile is not being included from a project makefile)
61
ifeq ($(origin LUFA_PATH), undefined)
62
   LUFA_SRC_ALL_FILES = $(LUFA_SRC_USB)            \
63
                        $(LUFA_SRC_USBCLASS)       \
64
                        $(LUFA_SRC_TEMPERATURE)    \
65
                        $(LUFA_SRC_SERIAL)         \
66
                        $(LUFA_SRC_TWI)            \
67
                        $(LUFA_SRC_SCHEDULER)
68

    
69
   all:
70

    
71
   clean:
72
	rm -f $(LUFA_SRC_ALL_FILES:%.c=%.o)
73
	rm -f $(LUFA_SRC_ALL_FILES:%.c=%.lst)
74

    
75
   clean_list:
76

    
77
   doxygen:
78
	@echo Generating LUFA Library Documentation...
79
	( cat Doxygen.conf ; echo "PROJECT_NUMBER=`grep LUFA_VERSION_STRING Version.h | cut -d'"' -f2`" ) | doxygen -
80
	@echo Documentation Generation Complete.
81

    
82
   clean_doxygen:
83
	rm -rf Documentation
84

    
85
   checksource:
86

    
87
   version:
88
	@echo "LUFA `grep LUFA_VERSION_STRING Version.h | cut -d'"' -f2`"
89

    
90
   .PHONY: all clean clean_list doxygen clean_doxygen version
91
endif