]> The Tcpdump Group git mirrors - libpcap/blob - msdos/common.dj
Clean up the ether_hostton() stuff.
[libpcap] / msdos / common.dj
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
8 default: 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)
16 GCC_LIB = .
17 MAKEFILE = 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
26 WATT32_ROOT = $(subst \,/,$(WATT_ROOT))
27
28 OBJ_DIR = djgpp.obj
29
30 ifeq ($(wildcard $(GCC_LIB)),)
31 check_gcclib:
32 @echo libgcc.a not found. Set \"$(GCC_LIB)\" to \"/djgpp/lib/gcc/djgpp/4.X/libgcc.a\"
33 endif
34
35
36 #
37 # Include 32-bit driver support
38 #
39 USE_32BIT_DRIVERS = 0
40
41 #
42 # Use loadable driver modules instead of statically linking
43 # all drivers.
44 #
45 USE_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 #
51 USE_SECTION_LOCKING = 0
52
53 #
54 # Set to 1 to use exception handler lib (only for me)
55 #
56 USE_EXCEPT = 0
57
58 CC = gcc.exe
59 LD = ld.exe
60 ASM = nasm.exe -fbin -dDEBUG
61 YACC = bison.exe
62 LEX = flex.exe
63
64 CFLAGS = -g -O2 -Wall -I. -I$(WATT32_ROOT)/inc
65
66 ifeq ($(USE_EXCEPT),1)
67 CFLAGS += -DUSE_EXCEPT
68 EXC_LIB = d:/prog/mw/except/lib/libexc.a
69 endif
70
71 ifeq ($(USE_SECTION_LOCKING),1)
72 CFLAGS += -DUSE_SECTION_LOCKING
73 endif
74
75 ifeq ($(USE_32BIT_DRIVERS),1)
76 CFLAGS += -DUSE_32BIT_DRIVERS
77 endif
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