aboutsummaryrefslogtreecommitdiffstats
path: root/filetap/Makefile.nmake
blob: 825db5d26aad947fd43a340efa782595e61c8355 (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
#

include ..\config.nmake
include <win32.mak>
include ..\Makefile.nmake.inc

include Makefile.common

# We use GENERATED_CFLAGS to get around flex's non-LLP64-compliant output
GENERATED_CFLAGS=\
	$(STANDARD_CFLAGS) \
	-DYYMALLOC=malloc -DYYFREE=free \
	/I. /I.. $(GLIB_CFLAGS) \
	$(ZLIB_CFLAGS) /I$(PCAP_DIR)/include \
	-DWS_BUILD_DLL

CFLAGS=$(WARNINGS_ARE_ERRORS) $(GENERATED_CFLAGS)

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

OBJECTS=$(NONGENERATED_C_FILES:.c=.obj)

filetap_LIBS = \
	$(GLIB_LIBS)	\
	..\wsutil\libwsutil.lib \
	$(ZLIB_LIBS)

all: filetap-$(FTAP_VERSION).dll

filetap-$(FTAP_VERSION).lib: filetap-$(FTAP_VERSION).dll
filetap-$(FTAP_VERSION).exp: filetap-$(FTAP_VERSION).dll

filetap-$(FTAP_VERSION).dll : $(OBJECTS) ..\image\filetap.res
	$(link) $(dlllflags) $(conlibsdll) \
		$(LOCAL_LDFLAGS) $(DLL_LDFLAGS) \
		/OUT:filetap-$(FTAP_VERSION).dll \
		/IMPLIB:filetap-$(FTAP_VERSION).lib \
		..\image\filetap.res \
		$(OBJECTS) $(filetap_LIBS)

clean :
	rm -f $(OBJECTS) \
		filetap-*.lib \
		filetap-*.exp \
		filetap-*.dll \
		filetap-*.dll.manifest \
		*.pdb *.sbr

distclean: clean

maintainer-clean: distclean

checkapi:
## 'abort' checking disabled for now pending resolution of existing use of g_assert & g_error
##	$(PERL) ../tools/checkAPIs.pl -g abort -g termoutput $(NONGENERATED_C_FILES)
	$(PERL) ../tools/checkAPIs.pl -g termoutput -build $(NONGENERATED_C_FILES)