mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-19 05:39:17 +02:00
Generalized
This commit is contained in:
parent
f6de774b9c
commit
9b465308c0
1 changed files with 21 additions and 5 deletions
|
@ -1,8 +1,24 @@
|
||||||
|
# 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 = hello
|
||||||
|
SCM_LIBS = libs/lib1 libs/lib2
|
||||||
|
|
||||||
all:
|
SLD_FILES = $(addsuffix .sld, $(SCM_LIBS))
|
||||||
cyclone libs/lib1.sld
|
SCM_FILE = $(addsuffix .scm, $(SCM_PROGRAM))
|
||||||
cyclone libs/lib2.sld
|
META_FILES = $(addsuffix .meta, $(SCM_LIBS))
|
||||||
cyclone hello.scm
|
GENC_FILES = $(addsuffix .c, $(SCM_LIBS))
|
||||||
|
COBJECTS=$(SLD_FILES:.sld=.o)
|
||||||
|
|
||||||
|
all: $(SCM_PROGRAM)
|
||||||
|
|
||||||
|
%.o: %.sld
|
||||||
|
cyclone $<
|
||||||
|
|
||||||
|
$(SCM_PROGRAM): $(SCM_FILE) $(COBJECTS)
|
||||||
|
cyclone $<
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o *.c libs/*.o libs/*.c libs/*.meta hello
|
rm -f *.o *.c $(SCM_PROGRAM) $(META_FILES) $(GENC_FILES) $(COBJECTS)
|
||||||
|
|
Loading…
Add table
Reference in a new issue