Makefile 270 B

123456789101112131415161718
  1. CC = gcc
  2. CFLAGS = -Wall -Wextra -ansi -pedantic -I. -ffast-math -O3
  3. SRCS = $(wildcard *.c)
  4. OBJS = $(SRCS:.c=.o)
  5. all: $(OBJS)
  6. %: %.c
  7. $(CC) $(CFLAGS) $< -c $@
  8. libpotrace.a: $(OBJS)
  9. @rm $@ 2>/dev/null || true
  10. @ar -frsv $@ $^
  11. clean:
  12. @rm *.a *.o 2>/dev/null || true