Add extra LUFA TAR archive export exclusions.
[pub/USBasp.git] / LUFA / makefile
index a05b956..0ff15c9 100644 (file)
@@ -23,34 +23,35 @@ ifeq ($(origin ARCH), undefined)
 endif
 
 # Define module source file lists
 endif
 
 # Define module source file lists
-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                        \
+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                         \
                         $(LUFA_ROOT_PATH)/Drivers/USB/Class/Common/HIDParser.c
                         $(LUFA_ROOT_PATH)/Drivers/USB/Class/Common/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/Audio.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_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            \
+                        $(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/StillImageClassHost.c
 LUFA_SRC_TEMPERATURE  = $(LUFA_ROOT_PATH)/Drivers/Board/Temperature.c
 LUFA_SRC_SERIAL       = $(LUFA_ROOT_PATH)/Drivers/Peripheral/$(ARCH)/Serial_$(ARCH).c
 LUFA_SRC_TWI          = $(LUFA_ROOT_PATH)/Drivers/Peripheral/$(ARCH)/TWI_$(ARCH).c
 LUFA_SRC_TEMPERATURE  = $(LUFA_ROOT_PATH)/Drivers/Board/Temperature.c
 LUFA_SRC_SERIAL       = $(LUFA_ROOT_PATH)/Drivers/Peripheral/$(ARCH)/Serial_$(ARCH).c
 LUFA_SRC_TWI          = $(LUFA_ROOT_PATH)/Drivers/Peripheral/$(ARCH)/TWI_$(ARCH).c
@@ -76,16 +77,25 @@ ifeq ($(origin LUFA_PATH), undefined)
 
    doxygen:
        @echo Generating LUFA Library Documentation...
 
    doxygen:
        @echo Generating LUFA Library Documentation...
-       ( cat Doxygen.conf ; echo "PROJECT_NUMBER=`grep LUFA_VERSION_STRING Version.h | cut -d'"' -f2`" ) | doxygen -
+
+       @if ( ( cat Doxygen.conf ; echo "PROJECT_NUMBER=`grep LUFA_VERSION_STRING Version.h | cut -d'"' -f2`" ) | doxygen - 2>&1 | grep ": warning:" ;); then \
+         exit 1; \
+       fi;
+
        @echo Documentation Generation Complete.
 
    clean_doxygen:
        rm -rf Documentation
 
    checksource:
        @echo Documentation Generation Complete.
 
    clean_doxygen:
        rm -rf Documentation
 
    checksource:
+   
+   export_tar:
+       @echo Exporting LUFA library to a TAR archive...
+       @tar -cf LUFA_`grep LUFA_VERSION_STRING Version.h | cut -d'"' -f2`.tar --directory=. --exclude=Documentation --exclude=DoxygenPages --exclude=CodeTemplates --exclude=Doxygen.conf --exclude=*.tar *
+       @echo Export LUFA_`grep LUFA_VERSION_STRING Version.h | cut -d'"' -f2`.tar complete.
 
    version:
        @echo "LUFA `grep LUFA_VERSION_STRING Version.h | cut -d'"' -f2`"
 
 
    version:
        @echo "LUFA `grep LUFA_VERSION_STRING Version.h | cut -d'"' -f2`"
 
-   .PHONY: all clean clean_list doxygen clean_doxygen version
+   .PHONY: all clean clean_list doxygen clean_doxygen checksource export_tar version
 endif
 endif