2023-02-14 15:12:51 +00:00
|
|
|
# Mongoose Network Library Examples
|
2023-02-07 12:15:50 +00:00
|
|
|
|
|
|
|
In order to build and run any of the existing examples, please follow:
|
|
|
|
https://mongoose.ws/documentation/#how-to-build-and-run-examples
|
|
|
|
|
|
|
|
## Contributing
|
|
|
|
|
|
|
|
Rules for creating a new example:
|
|
|
|
|
|
|
|
- Makefile golden reference for desktop/server example: [http-server](http-server)
|
|
|
|
- Makefile golden reference for the embedded example:
|
|
|
|
[stm32/nucleo-f746zg-baremetal](stm32/nucleo-f746zg-baremetal)
|
|
|
|
- An example must build on Windows, Mac and Ubuntu Linux systems
|
|
|
|
- Assume that user installed tools according to https://mongoose.ws/tutorials/tools/
|
|
|
|
- Makefile must not include any other make files
|
2023-02-08 15:00:04 +00:00
|
|
|
- Use `CFLAGS` for system-specific compilation options
|
|
|
|
- Use `CFLAGS_MONGOOSE` for mongoose-specific compilation options
|
|
|
|
- Use `$(CFLAGS) $(CFLAGS_MONGOOSE) $(CFLAGS_EXTRA)` to compile
|
2023-02-07 12:15:50 +00:00
|
|
|
- If external repository is required, download it on demand using git
|
|
|
|
shallow clone. See embedded example golden reference
|
|
|
|
- Keep Makefile as short as possible, but verbose to understand it easily
|
2023-02-09 19:00:10 +00:00
|
|
|
- Symlink files when required, like `mongoose.c`, `ca.pem`, etc. Make no copies
|
2023-02-09 20:04:59 +00:00
|
|
|
- Example's README.md should contain only the title and the link to mongoose.ws
|
|
|
|
tutorial page
|