mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-18 21:29:18 +02:00
24 lines
604 B
Makefile
24 lines
604 B
Makefile
# Automated building of a program
|
|
#
|
|
# Just put the main program and libraries at the top here
|
|
# without extensions, and the makefile takes care of
|
|
# everything else:
|
|
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)
|
|
|
|
%.o: %.sld
|
|
cyclone $<
|
|
|
|
$(SCM_PROGRAM): $(SCM_FILE) $(COBJECTS)
|
|
cyclone $<
|
|
|
|
clean:
|
|
rm -f *.o *.c $(SCM_PROGRAM) $(META_FILES) $(GENC_FILES) $(COBJECTS)
|