8 OBJS
=support.o sha1.o song.o compiler_l.o compiler_y.o \
9 ss_core.o ss_input.o ss_gen.o ss_eff.o ss_ins.o ss_song.o \
10 ss_output.o ss_outdev.o midi_song.o main.o
12 ADD_DOCS
=RELEASE_NOTES TODO README
13 GRUTATXT_DOCS
=doc
/ahs_overview_i.html \
14 doc
/ahs_overview_ii.html \
15 doc
/ahs_appendix_1.html \
17 MP_DOCCER_DOCS
=doc
/ahxm_api.txt
18 G_AND_MP_DOCS
=doc
/ahxm_api.html
22 DIST_TARGET
=/tmp
/$(PROJ
)-$(VERSION
)
24 ##################################################################
30 $(CC
) $(CFLAGS
) `cat config.cflags` -c
$<
41 compiler_l.o
: lex.yy.c y.tab.h
42 $(CC
) $(CFLAGS
) -c
lex.yy.c
-o compiler_l.o
45 $(CC
) $(CFLAGS
) -c y.tab.c
-o compiler_y.o
49 $(AR
) rv
$(LIB
) $(OBJS
)
53 $(CC
) $(CFLAGS
) $(LIB
) -lm
`cat config.ldflags` -o
$@
56 $(CC
) $(CFLAGS
) wav.c
$(LIB
) -lm
`cat config.ldflags` -o
$@
58 midiin
: midiin.c
$(LIB
)
59 $(CC
) $(CFLAGS
) midiin.c
$(LIB
) -lm
`cat config.ldflags` -o
$@
62 rm -f
$(BIN
) $(LIB
) $(OBJS
) *.o
tags *.
tar.gz
65 rm -f y.tab.c y.tab.h
lex.yy.c
68 rm -f config.h config.
cflags config.
ldflags makefile.opts .config.log Makefile
76 mp_doccer
*.c
-o doc
/ahxm_api
-f grutatxt \
77 -t
"Ann Hell Ex Machina API" \
78 -b
"This document references version $(VERSION) of the C API." \
79 -a
'Angel Ortega - angel@triptico.com'
82 rm -f
$(MP_DOCCER_DOCS
) doc
/*.html
84 distcopy
: distclean y.tab.c y.tab.h
lex.yy.c
85 mkdir
-p
$(DIST_TARGET
) ; \
86 tar cf
- * |
(cd
$(DIST_TARGET
) ; tar xf
-)
89 (cd
/tmp
; tar czf
- $(PROJ
)-$(VERSION
)/* ) > $(PROJ
)-$(VERSION
).
tar.gz
; \
93 gcc
-MM
*.c
> makefile.depend
96 install $(APPNAME
) $(PREFIX
)/bin
97 .
/mkinstalldirs
$(PREFIX
)/share
/doc
/$(PROJ
)
98 install -m
644 doc
/* $(PREFIX
)/share
/doc
/$(PROJ
)
99 install -m
644 $(ADD_DOCS
) $(PREFIX
)/share
/doc
/$(PROJ
)