Makefile (399B)
- # SPDX-License-Identifier: MPL-2.0
- include config.mk
- .PHONY: all
- all: httpc
- httpc: httpc.c httpc.h uri.c
- ${CC} -std=c99 ${CFLAGS} ${DEPS_cflags} -o $@ httpc.c uri.c ${LDFLAGS} ${LDSTATIC} ${DEPS_libs}
- uri_test: httpc.h uri.c uri_test.c
- ${CC} -std=c99 ${CFLAGS} -o $@ uri_test.c uri.c ${LDFLAGS} ${LDSTATIC}
- .PHONY: check
- check: uri_test
- ./uri_test
- .PHONY: clean
- clean:
- rm -f httpc uri_test