mirror of
https://github.com/Doczom/simple-httpd.git
synced 2025-09-21 02:50:09 +02:00
- Added support for uploading a configuration file over a long path - Added support for special uri paths (using the "*" symbol) in the configuration for groups of similar uri paths - Added the function of reading the contents of an http request - Changed the format of the uri address in the configuration file - Added a request redirection module - Added a module for blocking access to files by url path - Updated documentation - Updated module examples
23 lines
576 B
Makefile
23 lines
576 B
Makefile
OUTPUT_DIR=bin
|
|
OUTPUT_MODULES=$(OUTPUT_DIR)/modules
|
|
|
|
examples=$(wildcard example/*.asm)
|
|
examples_obj=$(patsubst %.asm,%.obj,$(examples))
|
|
|
|
|
|
all: build-main build-utils $(examples_obj) copy_docs
|
|
|
|
|
|
build-main:
|
|
fasm httpd.asm $(OUTPUT_DIR)/httpd
|
|
|
|
build-utils:
|
|
fasm utils/mime_types.asm $(OUTPUT_DIR)/mime_types.bin
|
|
fasm utils/redirect.asm $(OUTPUT_MODULES)/redirect.obj
|
|
fasm utils/block_access.asm $(OUTPUT_MODULES)/block_access.obj
|
|
|
|
example/%.obj: example/%.asm
|
|
fasm $< $(OUTPUT_MODULES)/$(notdir $(basename $@)).obj
|
|
|
|
copy_docs:
|
|
cp -R doc/* $(OUTPUT_DIR)/server_data/docs
|