9 OBJS
=support.o sha1.o song.o compiler_l.o compiler_y.o \
10 ss_core.o ss_input.o ss_gen.o ss_eff.o ss_ins.o ss_song.o \
11 ss_output.o ss_outdev.o midi_song.o main.o
15 DIST_TARGET
=/tmp
/$(PROJ
)-$(VERSION
)
17 ##################################################################
23 $(CC
) $(CFLAGS
) `cat config.cflags` -c
$<
34 compiler_l.o
: lex.yy.c y.tab.h
35 $(CC
) $(CFLAGS
) -c
lex.yy.c
-o compiler_l.o
38 $(CC
) $(CFLAGS
) -c y.tab.c
-o compiler_y.o
46 $(CC
) $(CFLAGS
) $(LIB
) -lm
`cat config.ldflags` -o
$@
49 $(CC
) $(CFLAGS
) wav.c
$(LIB
) -lm
`cat config.ldflags` -o
$@
51 midiin
: midiin.c
$(LIB
)
52 $(CC
) $(CFLAGS
) midiin.c
$(LIB
) -lm
`cat config.ldflags` -o
$@
55 rm -f
$(BIN
) $(LIB
) $(OBJS
) *.o
tags *.
tar.gz
58 rm -f y.tab.c y.tab.h
lex.yy.c
61 rm -f config.h config.
cflags config.
ldflags makefile.opts .config.log Makefile
64 -mp_doccer
*.c
-o doc
/ahxm_api
-f html1 \
65 -t
"Ann Hell Ex Machina API ($(VERSION))" \
66 -a
'Angel Ortega - angel@triptico.com'
67 -grutatxt
$(GRUTATXT_ARGS
) -i doc
/ahs_overview_i.txt
-o doc
/ahs_overview_i.html
68 -grutatxt
$(GRUTATXT_ARGS
) -i doc
/ahs_overview_ii.txt
-o doc
/ahs_overview_ii.html
69 -grutatxt
$(GRUTATXT_ARGS
) -b
-i doc
/ahs_appendix_1.txt
-o doc
/ahs_appendix_1.html
70 -grutatxt
$(GRUTATXT_ARGS
) -i doc
/index.txt
-o doc
/index.html
73 make docs GRUTATXT_ARGS
="--css=http://www.triptico.com/triptico.css"
78 distcopy
: distclean docs y.tab.c y.tab.h
lex.yy.c
79 mkdir
-p
$(DIST_TARGET
) ; \
80 tar cf
- * |
(cd
$(DIST_TARGET
) ; tar xf
-)
83 (cd
/tmp
; tar czf
- $(PROJ
)-$(VERSION
)/* ) > $(PROJ
)-$(VERSION
).
tar.gz
; \
87 gcc
-MM
*.c
> makefile.depend
90 install $(APPNAME
) $(PREFIX
)/bin
91 .
/mkinstalldirs
$(PREFIX
)/share
/doc
/$(PROJ
)
92 install -m
644 $(DOCS
) $(PREFIX
)/share
/doc
/$(PROJ
)
93 install -m
644 README RELEASE_NOTES TODO
$(PREFIX
)/share
/doc
/$(PROJ
)