Makefile 432 B

123456789101112131415161718
  1. CFLAGS := -std=gnu2x -Wall -Wextra -Werror -Wfatal-errors -Wno-unused-function -Wno-ignored-qualifiers -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -O2
  2. all: build/libminiutf8.so build/libminiutf8.a
  3. build/utf8.o: utf8.c utf8.h Makefile
  4. @mkdir -p build
  5. gcc $(CFLAGS) $< -c -o $@
  6. build/libminiutf8.a: build/utf8.o
  7. ar cr $@ $<
  8. ranlib $@
  9. build/libminiutf8.so: build/utf8.o
  10. gcc -shared $< -o $@
  11. clean:
  12. rm -rfv build