cgol

a cairo-based Game Of Life
git clone git://bvnf.space/cgol.git
Log | Files | Refs

Makefile (476B)


      1
      2
      3
      4
      5
      6
      7
      8
      9
     10
     11
     12
     13
     14
     15
     16
     17
     18
     19
     20
     21
     22
     23
     24
     25
     26
     27
     28
     29
     30
     31
     32
     33
     34
.POSIX:

-include config.mk

DEBUG = -g
XCFLAGS := $(CFLAGS) -Wall -Wextra -Wpedantic $(DEBUG) $(XXCFLAGS) -D_XOPEN_SOURCE=600
XLDFLAGS = $(LDFLAGS) $(XXLDFLAGS)

OBJS = \
	   main.o \
	   rules.o \
	   ascii.o \
#	   image.o \

all: cgol images

cgol: $(OBJS)
	$(CC) $(XLDFLAGS) $(OBJS) -o cgol

$(OBJS): cgol.h

.c.o:
	$(CC) -c $(XCFLAGS) $<

images:
	mkdir -p images

out.webm: images
	ffmpeg -r 15 -i images/%06d.png $@

clean:
	rm -fr $(OBJS) cgol images/

.PHONY: clean