files
simple-httpd/makefile
Doczom cde50c18ed Update to 0.2.0 version
## Program interface
- Added the function ``` char* find_uri_args(CONNECT_DATA* session, char* key) ```
- Added the function ``` char* find_header(CONNECT_DATA* session, char* key) ```
- Fixed a bug in ``` Get_MIME_Type ```
- Added the function ``` void close_server(); ```

## Module interface
- The initialization function and the request processing function have been changed:

``` uint32_t stdcall httpd_init(IMPORT_DATA* import, char* cmdline) ```

```` void stdcall httpd_server(CONNECT_DATA* request_data, uint32_t pdata) ```

Added a module shutdown function for a specific uri:

``` void stdcall httpd_close(uint32_t pdata) ```

## Modules
- Added a module for testing parameter transmission during initialization

## Other
- Added a build script
- Added a single file for the program and modules with constants and structures
2024-02-11 21:45:47 +05:00

20 lines
390 B
Makefile

OUTPUT_DIR=bin
OUTPUT_MODULES=$(OUTPUT_DIR)/modules
examples=$(wildcard example/*.asm)
examples_obj=$(patsubst %.asm,%.obj,$(examples))
all: build-main build-mime $(examples_obj)
build-main:
fasm httpd.asm $(OUTPUT_DIR)/httpd
build-mime:
fasm utils/mime_types.asm $(OUTPUT_DIR)/mime_types.bin
example/%.obj: example/%.asm
fasm $< $(OUTPUT_MODULES)/$(notdir $(basename $@)).obj