mirror of
https://github.com/cesanta/mongoose.git
synced 2024-11-27 20:59:00 +08:00
Disable dirlist by default
This commit is contained in:
parent
5bc164de76
commit
4fec149345
@ -50,8 +50,6 @@ SOURCES += $(FREERTOS_PLUS_TCP_PATH)/portable/BufferManagement/BufferAllocation_
|
|||||||
SOURCES += $(FREERTOS_PLUS_TCP_PATH)/portable/NetworkInterface/STM32Fxx/NetworkInterface.c
|
SOURCES += $(FREERTOS_PLUS_TCP_PATH)/portable/NetworkInterface/STM32Fxx/NetworkInterface.c
|
||||||
SOURCES += $(FREERTOS_PLUS_TCP_PATH)/portable/NetworkInterface/STM32Fxx/stm32fxx_hal_eth.c
|
SOURCES += $(FREERTOS_PLUS_TCP_PATH)/portable/NetworkInterface/STM32Fxx/stm32fxx_hal_eth.c
|
||||||
|
|
||||||
OBJECTS = obj/boot.o $(SOURCES:%.c=obj/%.o)
|
|
||||||
|
|
||||||
example:
|
example:
|
||||||
true
|
true
|
||||||
|
|
||||||
@ -63,18 +61,11 @@ $(PROG).bin: $(PROG).elf
|
|||||||
$(PROG).hex: $(PROG).bin
|
$(PROG).hex: $(PROG).bin
|
||||||
$(DOCKER) arm-none-eabi-objcopy -I binary -O ihex --change-address 0x8000000 $< $@
|
$(DOCKER) arm-none-eabi-objcopy -I binary -O ihex --change-address 0x8000000 $< $@
|
||||||
|
|
||||||
$(PROG).elf: $(OBJECTS) Makefile
|
$(PROG).elf: Makefile
|
||||||
$(DOCKER) arm-none-eabi-gcc $(OBJECTS) $(LINKFLAGS) -o $@
|
@mkdir -p $(dir $@)
|
||||||
|
$(DOCKER) arm-none-eabi-gcc $(SOURCES) $(ARCH)/boot.s $(CFLAGS) $(LINKFLAGS) -o $@
|
||||||
$(DOCKER) arm-none-eabi-size -A $@
|
$(DOCKER) arm-none-eabi-size -A $@
|
||||||
|
|
||||||
obj/%.o: %.c
|
|
||||||
@mkdir -p $(dir $@)
|
|
||||||
$(DOCKER) arm-none-eabi-gcc $(CFLAGS) -c $< -o $@
|
|
||||||
|
|
||||||
obj/boot.o: $(ARCH)/boot.s
|
|
||||||
@mkdir -p $(dir $@)
|
|
||||||
$(DOCKER) arm-none-eabi-as -g3 --warn --fatal-warnings $(MCU_FLAGS) $< -o $@
|
|
||||||
|
|
||||||
flash: $(PROG).bin
|
flash: $(PROG).bin
|
||||||
st-flash --reset write $< 0x8000000
|
st-flash --reset write $< 0x8000000
|
||||||
|
|
||||||
@ -95,4 +86,4 @@ gdb: #$(PROG).elf
|
|||||||
$(ELF)
|
$(ELF)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@rm -rf *.{bin,elf,map,lst,tgz,zip,hex} obj
|
@rm -rf firmware.*
|
||||||
|
10
mongoose.h
10
mongoose.h
@ -314,6 +314,10 @@ struct timeval {
|
|||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#ifndef MG_ENABLE_DIRLIST
|
||||||
|
#define MG_ENABLE_DIRLIST 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@ -403,6 +407,10 @@ typedef int socklen_t;
|
|||||||
#define S_ISDIR(x) (((x) &_S_IFMT) == _S_IFDIR)
|
#define S_ISDIR(x) (((x) &_S_IFMT) == _S_IFDIR)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef MG_ENABLE_DIRLIST
|
||||||
|
#define MG_ENABLE_DIRLIST 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@ -456,7 +464,7 @@ typedef int socklen_t;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef MG_ENABLE_DIRLIST
|
#ifndef MG_ENABLE_DIRLIST
|
||||||
#define MG_ENABLE_DIRLIST 1
|
#define MG_ENABLE_DIRLIST 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef MG_ENABLE_CUSTOM_RANDOM
|
#ifndef MG_ENABLE_CUSTOM_RANDOM
|
||||||
|
@ -30,4 +30,8 @@
|
|||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#ifndef MG_ENABLE_DIRLIST
|
||||||
|
#define MG_ENABLE_DIRLIST 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -86,4 +86,8 @@ typedef int socklen_t;
|
|||||||
#define S_ISDIR(x) (((x) &_S_IFMT) == _S_IFDIR)
|
#define S_ISDIR(x) (((x) &_S_IFMT) == _S_IFDIR)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef MG_ENABLE_DIRLIST
|
||||||
|
#define MG_ENABLE_DIRLIST 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef MG_ENABLE_DIRLIST
|
#ifndef MG_ENABLE_DIRLIST
|
||||||
#define MG_ENABLE_DIRLIST 1
|
#define MG_ENABLE_DIRLIST 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef MG_ENABLE_CUSTOM_RANDOM
|
#ifndef MG_ENABLE_CUSTOM_RANDOM
|
||||||
|
Loading…
Reference in New Issue
Block a user