2 # Common defines for libpcap and 16/32-bit network drivers (djgpp)
5 .SUFFIXES: .exe .wlm .dxe .l .y
8 default: check_gcclib all
10 GCCLIB = /djgpp/lib/gcc-lib/djgpp/3.31
11 MAKEFILE = Makefile.dj
14 # DLX 2.91+ lib. Change path to suite.
15 # Not used anymore. Uses DXE3 now.
17 # DLX_LIB = $(DJDIR)/contrib/dlx.291/libdlx.a
18 # DLX_LINK = $(DJDIR)/bin/dlxgen.exe
20 WATT32_ROOT = $(subst \,/,$(WATT_ROOT))
23 ifeq ($(wildcard $(GCCLIB)/libgcc.a),)
25 @echo libgcc.a not found. Set \"$(GCCLIB)\" to \"/djgpp/lib/gcc-lib/djgpp/3.X\"
30 # Include 32-bit driver support
35 # Use loadable driver modules instead of statically linking
41 # Put interrupt sensitive code/data in locked sections
42 # Do `make clean' in all affected directories after changing this.
44 USE_SECTION_LOCKING = 0
47 # Set to 1 to use exception handler lib (only for me)
53 ASM = nasm.exe -fbin -dDEBUG
57 CFLAGS = -g -gcoff -O2 -Wall -I. -I$(WATT32_ROOT)/inc
59 ifeq ($(USE_EXCEPT),1)
60 CFLAGS += -DUSE_EXCEPT
61 EXC_LIB = d:/prog/mw/except/lib/libexc.a
64 ifeq ($(USE_SECTION_LOCKING),1)
65 CFLAGS += -DUSE_SECTION_LOCKING
68 ifeq ($(USE_32BIT_DRIVERS),1)
69 CFLAGS += -DUSE_32BIT_DRIVERS
77 $(CC) -c $(CFLAGS) -x assembler-with-cpp -o $@ $<