emote2ss

Animated webp to spritesheets converting tool
git clone git://bsandro.tech/emote2ss
Log | Files | Refs | README | LICENSE

Makefile (452B)


      1 NAME:=emote2ss
      2 SRC=$(wildcard *.c)
      3 DEPS:=$(wildcard ../include/*.h)
      4 OBJ:=$(SRC:.c=.o)
      5 LIBS:=libwebp libwebpdemux
      6 CFLAGS=-Og -g -std=c99 -Werror -Wall -Wextra -I. ${shell pkg-config --cflags $(LIBS)}
      7 LDFLAGS=-lc ${shell pkg-config --libs $(LIBS)}
      8 
      9 all: $(NAME)
     10 
     11 .PHONY: clean run test
     12 
     13 clean:
     14 	rm -f $(OBJ) ../$(NAME)
     15 
     16 %.o : %.c $(DEPS)
     17 	$(CC) $(CFLAGS) -c $< -o $@
     18 
     19 $(NAME): $(OBJ)
     20 	$(CC) $(OBJ) -o ../$@ $(LDFLAGS) $(CFLAGS)
     21 
     22 run: $(NAME)
     23 	../$(NAME)