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 9default: check_gcclib all 10 11GCCLIB = /djgpp/lib/gcc-lib/djgpp/3.31 12MAKEFILE = 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 21WATT32_ROOT = $(subst \,/,$(WATT_ROOT)) 22 23 24ifeq ($(wildcard $(GCCLIB)/libgcc.a),) 25check_gcclib: 26 @echo libgcc.a not found. Set \"$(GCCLIB)\" to \"/djgpp/lib/gcc-lib/djgpp/3.X\" 27endif 28 29 30# 31# Include 32-bit driver support 32# 33USE_32BIT_DRIVERS = 0 34 35# 36# Use loadable driver modules instead of statically linking 37# all drivers. 38# 39USE_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# 45USE_SECTION_LOCKING = 0 46 47# 48# Set to 1 to use exception handler lib (only for me) 49# 50USE_EXCEPT = 0 51 52CC = gcc.exe 53LD = ld.exe 54ASM = nasm.exe -fbin -dDEBUG 55YACC = bison.exe 56LEX = flex.exe 57 58CFLAGS = -g -gcoff -O2 -Wall -I. -I$(WATT32_ROOT)/inc 59 60ifeq ($(USE_EXCEPT),1) 61 CFLAGS += -DUSE_EXCEPT 62 EXC_LIB = d:/prog/mw/except/lib/libexc.a 63endif 64 65ifeq ($(USE_SECTION_LOCKING),1) 66 CFLAGS += -DUSE_SECTION_LOCKING 67endif 68 69ifeq ($(USE_32BIT_DRIVERS),1) 70 CFLAGS += -DUSE_32BIT_DRIVERS 71endif 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