1 ## Makefile for building codecs.lib with Microsoft C and nmake
2 ## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
6 include ..\config.nmake
7 include ..\Makefile.nmake.inc
9 ############### no need to modify below this line #########
11 CFLAGS=/I.. $(WARNINGS_ARE_ERRORS) $(STANDARD_CFLAGS) \
15 $(CC) $(CFLAGS) -Fd.\ -c $<
17 include Makefile.common
19 # if you add files here, be sure to include them also in Makefile.am EXTRA_DIST
20 # XXX - if the codec files weren't in subdirectories, we could just do
21 # LIBCODEC_OBJECTS = $(LIBCODEC_SRC:.c=.obj), and wouldn't need rules
22 # for each of the codecs below
32 codecs.lib : $(LIBCODEC_OBJECTS)
33 link /lib /out:codecs.lib $(LIBCODEC_OBJECTS)
35 codecs.obj: codecs.c codecs.h
36 $(CC) $(CFLAGS) -Fd.\ -c codecs.c /Fo%|fF.obj
38 G711adecode.obj: G711a\G711adecode.c G711a\G711adecode.h G711a\G711atable.h
39 $(CC) $(CFLAGS) -Fd.\ -c G711a\G711adecode.c /Fo%|fF.obj
41 G711udecode.obj: G711u\G711udecode.c G711u\G711udecode.h G711u\G711utable.h
42 $(CC) $(CFLAGS) -Fd.\ -c G711u\G711udecode.c /Fo%|fF.obj
44 G722decode.obj: G722\G722decode.c G722\G722decode.h
45 $(CC) $(CFLAGS) -Fd.\ -c G722\G722decode.c /Fo%|fF.obj
47 G726decode.obj: G726\G726decode.c G726\G726decode.h
48 $(CC) $(CFLAGS) -Fd.\ -c G726\G726decode.c /Fo%|fF.obj
50 sbc.obj: sbc\sbc.c sbc\sbc_private.h
51 $(CC) $(CFLAGS) -Fd.\ -c sbc\sbc.c /Fo%|fF.obj
54 rm -f $(LIBCODEC_OBJECTS) codecs.lib *.pdb *.sbr
58 maintainer-clean: distclean
61 $(PERL) ../tools/checkAPIs.pl -g abort -g termoutput -build \