emote2ss

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

Makefile (439B)


      1 NAME:=emote2ss_gui
      2 SRC:=$(wildcard *.c)
      3 DEPS:=$(wildcard ../include/*.h)
      4 OBJ:=$(SRC:.c=.o)
      5 LIBS:=libwebp libwebpdemux x11
      6 CFLAGS=-O0 -g -std=c99 -DUI_LINUX -ffast-math -I. -I../include/ ${shell pkg-config --cflags $(LIBS)}
      7 LDFLAGS=-lc -lm ${shell pkg-config --libs $(LIBS)}
      8 
      9 all: $(NAME)
     10 
     11 .PHONY: clean run
     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)