123456789101112131415161718 |
- CC = gcc
- CFLAGS = -Wall -Wextra -ansi -pedantic -I. -ffast-math -O3
- SRCS = $(wildcard *.c)
- OBJS = $(SRCS:.c=.o)
- all: $(OBJS)
- %: %.c
- $(CC) $(CFLAGS) $< -c $@
- libpotrace.a: $(OBJS)
- @rm $@ 2>/dev/null || true
- @ar -frsv $@ $^
- clean:
- @rm *.a *.o 2>/dev/null || true
|