X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/d475ea4394ba0e16f89300ebeb452cea7c2d9232..2a0c28e6e47c8a173f32fc99cd8666a2633c5c12:/Projects/MissileLauncher/makefile diff --git a/Projects/MissileLauncher/makefile b/Projects/MissileLauncher/makefile index 045266a44..8c29bcf7f 100644 --- a/Projects/MissileLauncher/makefile +++ b/Projects/MissileLauncher/makefile @@ -101,7 +101,7 @@ F_CPU = 8000000 # # If no clock division is performed on the input clock inside the AVR (via the # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. -F_CLOCK = 8000000 +F_CLOCK = $(F_CPU) # Output format. (can be srec, ihex, binary) @@ -122,6 +122,13 @@ OBJDIR = . LUFA_PATH = ../.. +# LUFA library compile-time options +LUFA_OPTS = -D USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += -D NO_STREAM_CALLBACKS +LUFA_OPTS += -D USB_HOST_ONLY +LUFA_OPTS += -D USE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ ConfigDescriptor.c \ @@ -183,9 +190,8 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DNO_STREAM_CALLBACKS -DUSB_HOST_ONLY -CDEFS += -DUSE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(LUFA_OPTS) + # Place -D or -U options here for ASM sources ADEFS = -DF_CPU=$(F_CPU)