1 # 2 # Common defines for libpcap and 16/32-bit network drivers (djgpp) 3 # 4 # @(#) $Header: /tcpdump/master/libpcap/msdos/common.dj,v 1.2 2004-12-19 19:36:33 guy Exp $ (LBL) 5 6 .SUFFIXES: .exe .wlm .dxe .l .y 7 .PHONY: check_gcclib 8 9 default: check_gcclib all 10 11 GCCLIB = /djgpp/lib/gcc-lib/djgpp/3.31 12 MAKEFILE = Makefile.dj 13 14 # 15 # DLX 2.91+ lib. Change path to suite. 16 # Not used anymore. Uses DXE3 now. 17 # 18 # DLX_LIB = $(DJDIR)/contrib/dlx.291/libdlx.a 19 # DLX_LINK = $(DJDIR)/bin/dlxgen.exe 20 21 WATT32_ROOT = $(subst \,/,$(WATT_ROOT)) 22 23 24 ifeq ($(wildcard $(GCCLIB)/libgcc.a),) 25 check_gcclib: 26 @echo libgcc.a not found. Set \"$(GCCLIB)\" to \"/djgpp/lib/gcc-lib/djgpp/3.X\" 27 endif 28 29 30 # 31 # Include 32-bit driver support 32 # 33 USE_32BIT_DRIVERS = 0 34 35 # 36 # Use loadable driver modules instead of statically linking 37 # all drivers. 38 # 39 USE_32BIT_MODULES = 0 40 41 # 42 # Put interrupt sensitive code/data in locked sections 43 # Do `make clean' in all affected directories after changing this. 44 # 45 USE_SECTION_LOCKING = 0 46 47 # 48 # Set to 1 to use exception handler lib (only for me) 49 # 50 USE_EXCEPT = 0 51 52 CC = gcc.exe 53 LD = ld.exe 54 ASM = nasm.exe -fbin -dDEBUG 55 YACC = bison.exe 56 LEX = flex.exe 57 58 CFLAGS = -g -gcoff -O2 -Wall -I. -I$(WATT32_ROOT)/inc 59 60 ifeq ($(USE_EXCEPT),1) 61 CFLAGS += -DUSE_EXCEPT 62 EXC_LIB = d:/prog/mw/except/lib/libexc.a 63 endif 64 65 ifeq ($(USE_SECTION_LOCKING),1) 66 CFLAGS += -DUSE_SECTION_LOCKING 67 endif 68 69 ifeq ($(USE_32BIT_DRIVERS),1) 70 CFLAGS += -DUSE_32BIT_DRIVERS 71 endif 72 73 %.o: %.c 74 $(CC) -c $(CFLAGS) $< 75 @echo 76 77 %.o: %.s 78 $(CC) -c $(CFLAGS) -x assembler-with-cpp -o $@ $< 79 @echo 80 81