makefile 3.72 KB
Newer Older
1
2
3
4
5
6
7
8
#
#             LUFA Library
#     Copyright (C) Dean Camera, 2010.
#              
#  dean [at] fourwalledcubicle [dot] com
#      www.fourwalledcubicle.com
#

9
10
11
12
13
14
15
16
17
18
19
# 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 = .
else
   LUFA_ROOT_PATH = $(LUFA_PATH)/LUFA
endif

# Define module source file lists
20
LUFA_SRC_USB          = $(LUFA_ROOT_PATH)/Drivers/USB/LowLevel/Device.c             \
21
22
23
                        $(LUFA_ROOT_PATH)/Drivers/USB/LowLevel/Endpoint.c           \
                        $(LUFA_ROOT_PATH)/Drivers/USB/LowLevel/Host.c               \
                        $(LUFA_ROOT_PATH)/Drivers/USB/LowLevel/Pipe.c               \
24
                        $(LUFA_ROOT_PATH)/Drivers/USB/LowLevel/USBController.c      \
25
26
                        $(LUFA_ROOT_PATH)/Drivers/USB/LowLevel/USBInterrupt.c       \
                        $(LUFA_ROOT_PATH)/Drivers/USB/HighLevel/ConfigDescriptor.c  \
27
                        $(LUFA_ROOT_PATH)/Drivers/USB/HighLevel/DeviceStandardReq.c \
28
                        $(LUFA_ROOT_PATH)/Drivers/USB/HighLevel/Events.c            \
29
                        $(LUFA_ROOT_PATH)/Drivers/USB/HighLevel/HostStandardReq.c   \
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
                        $(LUFA_ROOT_PATH)/Drivers/USB/HighLevel/USBTask.c           \
                        $(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/HIDParser.c
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            \
                        $(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/StillImage.c
LUFA_SRC_TEMPERATURE  = $(LUFA_ROOT_PATH)/Drivers/Board/Temperature.c
LUFA_SRC_SERIAL       = $(LUFA_ROOT_PATH)/Drivers/Peripheral/Serial.c
LUFA_SRC_SERIALSTREAM = $(LUFA_ROOT_PATH)/Drivers/Peripheral/SerialStream.c
LUFA_SRC_TWI          = $(LUFA_ROOT_PATH)/Drivers/Peripheral/TWI.c
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)
   LUFA_SRC_FILES        = $(LUFA_SRC_USB) $(LUFA_SRC_USBCLASS)       \
                           $(LUFA_SRC_TEMPERATURE) $(LUFA_SRC_SERIAL) \
                           $(LUFA_SRC_SERIALSTREAM) $(LUFA_SRC_TWI)   \
                           $(LUFA_SRC_SCHEDULER)

   all:

   clean:
62
63
	rm -f $(LUFA_SRC_FILES:%.c=%.o)
	
64
   clean_list:
65

66
   doxygen:
67
68
69
70
	@echo Generating Library Documentation...
	( cat Doxygen.conf ; echo "PROJECT_NUMBER=`grep LUFA_VERSION_STRING Version.h | cut -d'"' -f2`" ) | doxygen -
	@echo Documentation Generation Complete.

71
   clean_doxygen:
72
	rm -rf Documentation
73
74
75

   .PHONY: all clean clean_list doxygen clean_doxygen
endif