Updates to Tomato RAF including NGINX && PHP
[tomato.git] / release / src / router / libpcap / msdos / common.dj
blob3f64d14e9205499c0f4ea441e54fd1750f5eab08
2 # Common defines for libpcap and 16/32-bit network drivers (djgpp)
4 # @(#) $Header: /tcpdump/master/libpcap/msdos/common.dj,v 1.2 2004-12-19 19:36:33 guy Exp $ (LBL)
6 .SUFFIXES: .exe .wlm .dxe .l .y
7 .PHONY:    check_gcclib
9 default: check_gcclib all
11 GCCLIB   = /djgpp/lib/gcc-lib/djgpp/3.31
12 MAKEFILE = Makefile.dj
15 # DLX 2.91+ lib. Change path to suite.
16 # Not used anymore. Uses DXE3 now.
18 # DLX_LIB  = $(DJDIR)/contrib/dlx.291/libdlx.a
19 # DLX_LINK = $(DJDIR)/bin/dlxgen.exe
21 WATT32_ROOT = $(subst \,/,$(WATT_ROOT))
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
31 # Include 32-bit driver support
33 USE_32BIT_DRIVERS = 0
36 # Use loadable driver modules instead of statically linking
37 # all drivers.
39 USE_32BIT_MODULES = 0
42 # Put interrupt sensitive code/data in locked sections
43 # Do `make clean' in all affected directories after changing this.
45 USE_SECTION_LOCKING = 0
48 # Set to 1 to use exception handler lib (only for me)
50 USE_EXCEPT = 0
52 CC   = gcc.exe
53 LD   = ld.exe
54 ASM  = nasm.exe -fbin -dDEBUG
55 YACC = bison.exe
56 LEX  = flex.exe
58 CFLAGS = -g -gcoff -O2 -Wall -I. -I$(WATT32_ROOT)/inc
60 ifeq ($(USE_EXCEPT),1)
61   CFLAGS += -DUSE_EXCEPT
62   EXC_LIB = d:/prog/mw/except/lib/libexc.a
63 endif
65 ifeq ($(USE_SECTION_LOCKING),1)
66   CFLAGS += -DUSE_SECTION_LOCKING
67 endif
69 ifeq ($(USE_32BIT_DRIVERS),1)
70   CFLAGS += -DUSE_32BIT_DRIVERS
71 endif
73 %.o: %.c
74         $(CC) -c $(CFLAGS) $<
75         @echo
77 %.o: %.s
78         $(CC) -c $(CFLAGS) -x assembler-with-cpp -o $@ $<
79         @echo