2 # Common defines for libpcap and 16/32-bit network drivers (djgpp)
5 .SUFFIXES: .exe .wlm .dxe .l .y
8 default: check_gcclib all
11 # This value is normally not important. Used by 'dxe3gen' in
12 # msdos/pm_drvr/makefile.dj to make "dynamically loaded modules".
13 # But this is not finished.
15 #GCC_LIB = $(shell gcc -print-libgcc-file-name)
17 MAKEFILE = Makefile.dj
20 # DLX 2.91+ lib. Change path to suite.
21 # Not used anymore. Uses DXE3 now.
23 # DLX_LIB = $(DJDIR)/contrib/dlx.291/libdlx.a
24 # DLX_LINK = $(DJDIR)/bin/dlxgen.exe
26 WATT32_ROOT = $(subst \,/,$(WATT_ROOT))
30 ifeq ($(wildcard $(GCC_LIB)),)
32 @echo libgcc.a not found. Set \"$(GCC_LIB)\" to \"/djgpp/lib/gcc/djgpp/4.X/libgcc.a\"
37 # Include 32-bit driver support
42 # Use loadable driver modules instead of statically linking
48 # Put interrupt sensitive code/data in locked sections
49 # Do `make clean' in all affected directories after changing this.
51 USE_SECTION_LOCKING = 0
54 # Set to 1 to use exception handler lib (only for me)
60 ASM = nasm.exe -fbin -dDEBUG
64 CFLAGS = -g -O2 -Wall -I. -I$(WATT32_ROOT)/inc
66 ifeq ($(USE_EXCEPT),1)
67 CFLAGS += -DUSE_EXCEPT
68 EXC_LIB = d:/prog/mw/except/lib/libexc.a
71 ifeq ($(USE_SECTION_LOCKING),1)
72 CFLAGS += -DUSE_SECTION_LOCKING
75 ifeq ($(USE_32BIT_DRIVERS),1)
76 CFLAGS += -DUSE_32BIT_DRIVERS
80 $(CC) -c $(CFLAGS) -o $@ $<
84 $(CC) -c $(CFLAGS) -x assembler-with-cpp -o $@ $<