Asynchronous Internet Server Library https://lowenware.com/aisl/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

examples.mk 534B

12345678910111213141516171819202122232425262728293031
  1. #
  2. # examples.mk
  3. # Ilja Kartašov, 2019-03-17 17:40
  4. #
  5. EXAMPLES_DIR ?= examples
  6. EXAMPLES_CFLAGS := \
  7. $(PROJECT_INCLUDES) \
  8. -std=c99 \
  9. -pedantic \
  10. -Wall \
  11. -Wmissing-prototypes \
  12. -Wstrict-prototypes \
  13. -Wold-style-definition \
  14. -O2 \
  15. -s \
  16. $(CFLAGS) \
  17. EXAMPLES_LDFLAGS = -L./ -L./build -laisl -Wl,-rpath=./build
  18. examples: library hello_world
  19. hello_world:
  20. $(info compiling: hello world)
  21. @$(CC) $(EXAMPLES_CFLAGS) \
  22. -o $(OUT_DIR)/hello-world $(EXAMPLES_DIR)/hello-world.c $(EXAMPLES_LDFLAGS)
  23. # vim:ft=make
  24. #