Fix path and name.
[metze/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=-DHAVE_CONFIG_H /I.. /I../wiretap $(GTK_CFLAGS) $(GLIB_CFLAGS) \
11         /I$(PCAP_DIR)\WPCAP\LIBPCAP /I$(PCAP_DIR)\WPCAP\LIBPCAP\bpf \
12         /I$(PCAP_DIR)\WPCAP\LIBPCAP\lbl \
13         /I$(PCAP_DIR)\include /I$(NET_SNMP_DIR)\include \
14         /I$(NET_SNMP_DIR)\win32 /Zm800 -D_U_="" -D_NEED_VAR_IMPORT_ $(LOCAL_CFLAGS) \
15
16 .c.obj::
17         $(CC) $(CFLAGS)  -Fd.\ -c $<
18
19 CODEC_OBJECTS= \
20         G711udecode.obj \
21         G711adecode.obj
22
23
24 codecs.lib      :  $(CODEC_OBJECTS) 
25         link /lib /out:codecs.lib $(CODEC_OBJECTS) 
26
27
28 G711adecode.obj: G711a\G711adecode.c G711a\G711adecode.h G711a\G711atable.h
29         $(CC) $(CFLAGS) -c /Zi /W1 /Od G711a\G711adecode.c -o $@
30
31 G711udecode.obj: G711u\G711udecode.c G711u\G711udecode.h G711u\G711utable.h
32         $(CC) $(CFLAGS) -c /Zi /W1 /Od G711u\G711udecode.c -o $@
33
34 clean:
35         rm -f $(CODEC_OBJECTS) codecs.lib *.pdb
36
37 distclean: clean
38
39 maintainer-clean: distclean
40
41