-
-
Notifications
You must be signed in to change notification settings - Fork 46
/
Makefile
33 lines (25 loc) · 975 Bytes
/
Makefile
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
SCM_PROGRAM = life
SCM_LIBS = example/grid example/life
SLD_FILES = $(addsuffix .sld, $(SCM_LIBS))
SCM_FILE = $(addsuffix .scm, $(SCM_PROGRAM))
META_FILES = $(addsuffix .meta, $(SCM_LIBS))
GENC_FILES = $(addsuffix .c, $(SCM_LIBS))
COBJECTS=$(SLD_FILES:.sld=.o)
all: $(SCM_PROGRAM) #write-png
%.o: %.sld
cyclone $<
$(SCM_PROGRAM): $(SCM_FILE) $(COBJECTS) write-png.o
# cyclone $<
cyclone -d $<
# For now, modify -d output manually to compile-in necessary objects/libs for PNG
gcc life.c -g -c -o life.o
gcc life.o /usr/local/share/cyclone/scheme/base.o example/grid.o /usr/local/share/cyclone/scheme/write.o example/life.o write-png.o -pthread -lcyclone -lck -lm -ltommath -ldl -lpng -g -o life
#write-png: write-png.o
# gcc -o write-png write-png.o -lpng
write-png.o: write-png.c write-png.h
gcc -c write-png.c
clean:
rm -f *.o $(SCM_PROGRAM).c $(SCM_PROGRAM) $(META_FILES) $(GENC_FILES) $(COBJECTS) write-png *.png *.gif
rm -rf tmp
convert:
./convert.sh