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