a255a3f6f84ad5eb88f27871c105843a4916ae6e
[obnox/wireshark/wip.git] / codecs / Makefile.nmake
1 ## Makefile for building codecs.lib with Microsoft C and nmake
2 ## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
3 #
4 # $Id$
5
6 include ..\config.nmake
7
8 ############### no need to modify below this line #########
9
10 CFLAGS=-WX -DHAVE_CONFIG_H $(GLIB_CFLAGS) -D_U_="" $(LOCAL_CFLAGS)
11
12 .c.obj::
13         $(CC) $(CFLAGS)  -Fd.\ -c $<
14
15 CODEC_OBJECTS= \
16         G711udecode.obj \
17         G711adecode.obj
18
19
20 codecs.lib      :  $(CODEC_OBJECTS) 
21         link /lib /out:codecs.lib $(CODEC_OBJECTS) 
22
23
24 G711adecode.obj: G711a\G711adecode.c G711a\G711adecode.h G711a\G711atable.h
25         $(CC) $(CFLAGS) -Fd.\ -c G711a\G711adecode.c -o $@
26
27 G711udecode.obj: G711u\G711udecode.c G711u\G711udecode.h G711u\G711utable.h
28         $(CC) $(CFLAGS) -Fd.\ -c G711u\G711udecode.c -o $@
29
30 clean:
31         rm -f $(CODEC_OBJECTS) codecs.lib *.pdb
32
33 distclean: clean
34
35 maintainer-clean: distclean
36
37 checkapi: 
38         $(PERL) ../tools/checkAPIs.pl \
39         G711a/G711adecode.c \
40         G711u/G711udecode.c