Add platform driver dispatch header and makefile module source variable.
[pub/lufa.git] / LUFA / makefile
index 8129bef..5b18693 100644 (file)
@@ -13,6 +13,8 @@ LUFA_VERSION_NUM        = $(shell grep LUFA_VERSION_STRING Version.h | cut -d'"'
 EXCLUDE_FROM_EXPORT     = Documentation DoxygenPages CodeTemplates Build *.conf *.tar *.o *.lss *.lst *.hex *.elf *.bin
 DOXYGEN_OVERRIDE_PARAMS = PROJECT_NUMBER=$(LUFA_VERSION_NUM)
 
+all:
+
 export_tar:
        @echo Exporting LUFA library to a TAR archive...
        @tar -cf LUFA_$(LUFA_VERSION_NUM).tar --directory=. $(EXCLUDE_FROM_EXPORT:%=--exclude=%) *
@@ -33,10 +35,9 @@ else
   LUFA_PATH           = .
   ARCH                = {AVR8,UC3,XMEGA}
   
-  all:
-
   clean:
        rm -f $(LUFA_SRC_ALL_FILES:%.c=%.o)
+       rm -f $(LUFA_SRC_ALL_FILES:%.c=%.o.d)
        rm -f $(LUFA_SRC_ALL_FILES:%.c=%.lst)
 
   # Include LUFA build script makefiles