Makefile 329 B

12345678910111213141516171819
  1. CFLAGS := -std=gnu99 -Wall -Werror -Wfatal-errors -D_GNU_SOURCE -O3
  2. all: build/libminiutf8.so build/libminiutf8.a
  3. build/utf8.o: utf8.c utf8.h
  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