2 # Common defines for libpcap and 16/32-bit network drivers (djgpp)
4 # @(#) $Header: /tcpdump/master/libpcap/msdos/common.dj,v 1.2 2004-12-19 19:36:33 guy Exp $ (LBL)
6 .SUFFIXES: .exe .wlm .dxe .l .y
9 default: check_gcclib all
11 GCCLIB = /djgpp/lib/gcc-lib/djgpp/3.31
12 MAKEFILE = Makefile.dj
15 # DLX 2.91+ lib. Change path to suite.
16 # Not used anymore. Uses DXE3 now.
18 # DLX_LIB = $(DJDIR)/contrib/dlx.291/libdlx.a
19 # DLX_LINK = $(DJDIR)/bin/dlxgen.exe
21 WATT32_ROOT = $(subst \,/,$(WATT_ROOT))
24 ifeq ($(wildcard $(GCCLIB)/libgcc.a),)
26 @echo libgcc.a not found. Set \"$(GCCLIB)\" to \"/djgpp/lib/gcc-lib/djgpp/3.X\"
31 # Include 32-bit driver support
36 # Use loadable driver modules instead of statically linking
42 # Put interrupt sensitive code/data in locked sections
43 # Do `make clean' in all affected directories after changing this.
45 USE_SECTION_LOCKING = 0
48 # Set to 1 to use exception handler lib (only for me)
54 ASM = nasm.exe -fbin -dDEBUG
58 CFLAGS = -g -gcoff -O2 -Wall -I. -I$(WATT32_ROOT)/inc
60 ifeq ($(USE_EXCEPT),1)
61 CFLAGS += -DUSE_EXCEPT
62 EXC_LIB = d:/prog/mw/except/lib/libexc.a
65 ifeq ($(USE_SECTION_LOCKING),1)
66 CFLAGS += -DUSE_SECTION_LOCKING
69 ifeq ($(USE_32BIT_DRIVERS),1)
70 CFLAGS += -DUSE_32BIT_DRIVERS
78 $(CC) -c $(CFLAGS) -x assembler-with-cpp -o $@ $<