aboutsummaryrefslogtreecommitdiffstats
path: root/codecs/Makefile.nmake
blob: 1a8dc6e5cbd9bc98a9b2aa22a1be7952f95600ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
## Makefile for building codecs.lib with Microsoft C and nmake
## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
#

include ..\config.nmake
include ..\Makefile.nmake.inc

############### no need to modify below this line #########

CFLAGS=/I.. $(WARNINGS_ARE_ERRORS) $(STANDARD_CFLAGS) \
	$(GLIB_CFLAGS)

.c.obj::
	$(CC) $(CFLAGS) -Fd.\ -c $<

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= \
    codecs.obj \
	G711udecode.obj \
	G711adecode.obj \
	G722decode.obj \
	G726decode.obj \
	sbc.obj

codecs.lib	:  $(LIBCODEC_OBJECTS)
	link /lib /out:codecs.lib $(LIBCODEC_OBJECTS)

codecs.obj: codecs.c codecs.h
	$(CC) $(CFLAGS) -Fd.\ -c codecs.c /Fo%|fF.obj

G711adecode.obj: G711a\G711adecode.c G711a\G711adecode.h G711a\G711atable.h
	$(CC) $(CFLAGS) -Fd.\ -c G711a\G711adecode.c /Fo%|fF.obj

G711udecode.obj: G711u\G711udecode.c G711u\G711udecode.h G711u\G711utable.h
	$(CC) $(CFLAGS) -Fd.\ -c G711u\G711udecode.c /Fo%|fF.obj

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

sbc.obj: sbc\sbc.c sbc\sbc_private.h
	$(CC) $(CFLAGS) -Fd.\ -c sbc\sbc.c /Fo%|fF.obj

clean:
	rm -f $(LIBCODEC_OBJECTS) codecs.lib *.nativecodeanalysis.xml *.pdb *.sbr

distclean: clean

maintainer-clean: distclean

checkapi:
	$(PERL) ../tools/checkAPIs.pl -g abort -g termoutput -build \
	$(LIBCODEC_SRC)