logo

httpc

barebones HTTP client, intended for simple usage like downloading filesgit clone https://hacktivis.me/git/httpc.git

Makefile (399B)


  1. # SPDX-License-Identifier: MPL-2.0
  2. include config.mk
  3. .PHONY: all
  4. all: httpc
  5. httpc: httpc.c httpc.h uri.c
  6. ${CC} -std=c99 ${CFLAGS} ${DEPS_cflags} -o $@ httpc.c uri.c ${LDFLAGS} ${LDSTATIC} ${DEPS_libs}
  7. uri_test: httpc.h uri.c uri_test.c
  8. ${CC} -std=c99 ${CFLAGS} -o $@ uri_test.c uri.c ${LDFLAGS} ${LDSTATIC}
  9. .PHONY: check
  10. check: uri_test
  11. ./uri_test
  12. .PHONY: clean
  13. clean:
  14. rm -f httpc uri_test