2006-08-30 20:47:16 +00:00
|
|
|
## Makefile for building codecs.lib with Microsoft C and nmake
|
|
|
|
## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
|
|
|
|
#
|
|
|
|
|
2006-09-02 14:18:47 +00:00
|
|
|
include ..\config.nmake
|
2013-12-02 08:30:29 +00:00
|
|
|
include ..\Makefile.nmake.inc
|
2006-08-30 20:47:16 +00:00
|
|
|
|
|
|
|
############### no need to modify below this line #########
|
|
|
|
|
2013-12-01 16:50:05 +00:00
|
|
|
CFLAGS=/I.. $(WARNINGS_ARE_ERRORS) $(STANDARD_CFLAGS) \
|
2011-02-02 01:19:53 +00:00
|
|
|
$(GLIB_CFLAGS)
|
2006-08-30 20:47:16 +00:00
|
|
|
|
|
|
|
.c.obj::
|
2013-12-02 08:30:29 +00:00
|
|
|
$(CC) $(CFLAGS) -Fd.\ -c $<
|
2006-08-30 20:47:16 +00:00
|
|
|
|
2013-12-02 08:30:29 +00:00
|
|
|
include Makefile.common
|
|
|
|
|
|
|
|
# if you add files here, be sure to include them also in Makefile.am EXTRA_DIST
|
|
|
|
# XXX - if the codec files weren't in subdirectories, we could just do
|
|
|
|
# LIBCODEC_OBJECTS = $(LIBCODEC_SRC:.c=.obj), and wouldn't need rules
|
|
|
|
# for each of the codecs below
|
|
|
|
#
|
|
|
|
LIBCODEC_OBJECTS= \
|
2013-12-01 03:53:57 +00:00
|
|
|
codecs.obj \
|
2013-06-25 15:32:49 +00:00
|
|
|
G711udecode.obj \
|
2013-11-30 15:42:14 +00:00
|
|
|
G711adecode.obj \
|
|
|
|
G722decode.obj \
|
|
|
|
G726decode.obj \
|
2013-12-01 09:18:19 +00:00
|
|
|
sbc.obj
|
2006-08-30 20:47:16 +00:00
|
|
|
|
2013-12-02 08:30:29 +00:00
|
|
|
codecs.lib : $(LIBCODEC_OBJECTS)
|
|
|
|
link /lib /out:codecs.lib $(LIBCODEC_OBJECTS)
|
2006-08-30 20:47:16 +00:00
|
|
|
|
2013-12-01 03:53:57 +00:00
|
|
|
codecs.obj: codecs.c codecs.h
|
|
|
|
$(CC) $(CFLAGS) -Fd.\ -c codecs.c /Fo%|fF.obj
|
|
|
|
|
2006-08-30 20:47:16 +00:00
|
|
|
G711adecode.obj: G711a\G711adecode.c G711a\G711adecode.h G711a\G711atable.h
|
2008-08-14 23:51:37 +00:00
|
|
|
$(CC) $(CFLAGS) -Fd.\ -c G711a\G711adecode.c /Fo%|fF.obj
|
2006-08-30 20:47:16 +00:00
|
|
|
|
|
|
|
G711udecode.obj: G711u\G711udecode.c G711u\G711udecode.h G711u\G711utable.h
|
2008-08-14 23:51:37 +00:00
|
|
|
$(CC) $(CFLAGS) -Fd.\ -c G711u\G711udecode.c /Fo%|fF.obj
|
2006-08-30 20:47:16 +00:00
|
|
|
|
2013-11-30 15:42:14 +00:00
|
|
|
G722decode.obj: G722\G722decode.c G722\G722decode.h
|
|
|
|
$(CC) $(CFLAGS) -Fd.\ -c G722\G722decode.c /Fo%|fF.obj
|
|
|
|
|
|
|
|
G726decode.obj: G726\G726decode.c G726\G726decode.h
|
|
|
|
$(CC) $(CFLAGS) -Fd.\ -c G726\G726decode.c /Fo%|fF.obj
|
|
|
|
|
2014-02-12 01:56:50 +00:00
|
|
|
sbc.obj: sbc\sbc.c sbc\sbc_private.h
|
2013-12-01 09:18:19 +00:00
|
|
|
$(CC) $(CFLAGS) -Fd.\ -c sbc\sbc.c /Fo%|fF.obj
|
2013-11-30 15:42:14 +00:00
|
|
|
|
2006-08-30 20:47:16 +00:00
|
|
|
clean:
|
2013-12-02 08:30:29 +00:00
|
|
|
rm -f $(LIBCODEC_OBJECTS) codecs.lib *.pdb *.sbr
|
2006-08-30 20:47:16 +00:00
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
|
|
|
|
maintainer-clean: distclean
|
|
|
|
|
2011-02-02 01:19:53 +00:00
|
|
|
checkapi:
|
2012-04-04 20:46:49 +00:00
|
|
|
$(PERL) ../tools/checkAPIs.pl -g abort -g termoutput -build \
|
2013-12-02 08:30:29 +00:00
|
|
|
$(LIBCODEC_SRC)
|