X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/15c408ab8635fe45226abc2c55c9bebfe1ccb6c8..a4ebf4e92061bf1eec9224e64bc823ca7bedada4:/Projects/Webserver/makefile diff --git a/Projects/Webserver/makefile b/Projects/Webserver/makefile index d3b3667c7..e12a44e45 100644 --- a/Projects/Webserver/makefile +++ b/Projects/Webserver/makefile @@ -112,17 +112,33 @@ OBJDIR = . # Path to the LUFA library -LUFA_PATH = ../../../ +LUFA_PATH = ../../ # LUFA library compile-time options -LUFA_OPTS += -D USB_HOST_ONLY -LUFA_OPTS += -D USE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +LUFA_OPTS = -D FIXED_CONTROL_ENDPOINT_SIZE=8 +LUFA_OPTS += -D FIXED_NUM_CONFIGURATIONS=1 +LUFA_OPTS += -D USE_FLASH_DESCRIPTORS +LUFA_OPTS += -D USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ - Lib/WebserverApp.c \ + Descriptors.c \ + USBDeviceMode.c \ + USBHostMode.c \ + Lib/SCSI.c \ + Lib/uIPManagement.c \ + Lib/DHCPApp.c \ + Lib/HTTPServerApp.c \ + Lib/DataflashManager.c \ + Lib/uip/uip.c \ + Lib/uip/uip_arp.c \ + Lib/uip/timer.c \ + Lib/uip/uip-neighbor.c \ + Lib/uip/conf/clock-arch.c \ + Lib/FATFs/diskio.c \ + Lib/FATFs/ff.c \ $(LUFA_PATH)/LUFA/Drivers/USB/LowLevel/DevChapter9.c \ $(LUFA_PATH)/LUFA/Drivers/USB/LowLevel/Endpoint.c \ $(LUFA_PATH)/LUFA/Drivers/USB/LowLevel/Host.c \ @@ -133,17 +149,11 @@ SRC = $(TARGET).c \ $(LUFA_PATH)/LUFA/Drivers/USB/HighLevel/USBInterrupt.c \ $(LUFA_PATH)/LUFA/Drivers/USB/HighLevel/USBTask.c \ $(LUFA_PATH)/LUFA/Drivers/USB/HighLevel/ConfigDescriptor.c \ + $(LUFA_PATH)/LUFA/Drivers/USB/Class/Device/MassStorage.c \ + $(LUFA_PATH)/LUFA/Drivers/USB/Class/Host/MassStorage.c \ $(LUFA_PATH)/LUFA/Drivers/USB/Class/Device/RNDIS.c \ $(LUFA_PATH)/LUFA/Drivers/USB/Class/Host/RNDIS.c \ - Lib/uip/uip.c \ - Lib/uip/uip_arp.c \ - Lib/uip/uiplib.c \ - Lib/uip/psock.c \ - Lib/uip/timer.c \ - Lib/uip/uip-neighbor.c \ - Lib/uip/conf/clock-arch.c \ - - + # List C++ source files here. (C dependencies are automatically generated.) CPPSRC = @@ -175,7 +185,7 @@ DEBUG = dwarf-2 # Each directory must be seperated by a space. # Use forward slashes for directory separators. # For a directory that has spaces, enclose it in quotes. -EXTRAINCDIRS = $(LUFA_PATH)/ Lib/uip/ Lib/uip/conf/ +EXTRAINCDIRS = $(LUFA_PATH)/ Lib/uip/ Lib/uip/conf/ Lib/FATFs/ # Compiler flag to set the C Standard level. @@ -188,6 +198,7 @@ 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) $(LUFA_OPTS) +CDEFS += -DENABLE_DHCP # Place -D or -U options here for ASM sources