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