$NetBSD: patch-aa,v 1.7 2004/12/22 21:07:01 skrll Exp $ --- Makefile.orig 2004-10-30 18:32:50.000000000 +0100 +++ Makefile @@ -3,28 +3,30 @@ # Note: -O2 is sometimes broken in GCC when setjump/longjump is being # used. Try -O2 only with released simulators. # -ifeq ($(WIN32),) +#ifeq ($(WIN32),) #Unix Environments -ifeq ($(OSTYPE),solaris) -OS_CCDEFS = -lsocket -lnsl -lpthread -D_GNU_SOURCE -else -OS_CCDEFS = -D_GNU_SOURCE -endif -CC = gcc -std=c99 -O2 -U__STRICT_ANSI__ -g -lm $(OS_CCDEFS) -I . -ifeq ($(USE_NETWORK),) -else -NETWORK_OPT = -DUSE_NETWORK -isystem /usr/local/include /usr/local/lib/libpcap.a -endif -else +#ifeq ($(OSTYPE),solaris) +#OS_CCDEFS = -lsocket -lnsl -lpthread -D_GNU_SOURCE +#else +#OS_CCDEFS = -D_GNU_SOURCE +#endif +#CC = gcc -std=c99 -O2 -U__STRICT_ANSI__ -g -lm $(OS_CCDEFS) -I . +CC = gcc -O2 -g -lm -I . -DDONT_USE_PCAP_FINDALLDEVS -DNEED_PCAP_SENDPACKET +#ifeq ($(USE_NETWORK),) +#else +#NETWORK_OPT = -DUSE_NETWORK -isystem /usr/local/include /usr/local/lib/libpcap.a +NETWORK_OPT = -DUSE_NETWORK -lpcap +#endif +#else #Win32 Environments -LDFLAGS = -lm -lwsock32 -CC = gcc -std=c99 -U__STRICT_ANSI__ -O0 -I. -EXE = .exe -ifeq ($(USE_NETWORK),) -else -NETWORK_OPT = -DUSE_NETWORK -lwpcap -lpacket -endif -endif +#LDFLAGS = -lm -lwsock32 +#CC = gcc -std=c99 -U__STRICT_ANSI__ -O0 -I. +#EXE = .exe +#ifeq ($(USE_NETWORK),) +#else +#NETWORK_OPT = -DUSE_NETWORK -lwpcap -lpacket +#endif +#endif # @@ -252,11 +254,11 @@ ALL = ${BIN}pdp1${EXE} ${BIN}pdp4${EXE} all : ${ALL} clean : -ifeq ($(WIN32),) +#ifeq ($(WIN32),) ${RM} ${ALL} -else - if exist BIN\*.exe del /q BIN\*.exe -endif +#else +# if exist BIN\*.exe del /q BIN\*.exe +#endif # # Individual builds #