2007-07-24 16:45:41 -04:00
|
|
|
$OpenBSD: patch-makefile,v 1.11 2007/07/24 20:45:41 kili Exp $
|
|
|
|
--- makefile.orig Tue Feb 6 19:24:54 2007
|
|
|
|
+++ makefile Sun Jul 22 20:02:53 2007
|
|
|
|
@@ -3,32 +3,9 @@
|
2003-02-02 15:24:47 -05:00
|
|
|
# Note: -O2 is sometimes broken in GCC when setjump/longjump is being
|
|
|
|
# used. Try -O2 only with released simulators.
|
|
|
|
#
|
|
|
|
-ifeq ($(WIN32),)
|
2007-07-24 16:45:41 -04:00
|
|
|
-#Unix Environments
|
2005-06-18 23:47:25 -04:00
|
|
|
-ifeq ($(OSTYPE),solaris)
|
|
|
|
-OS_CCDEFS = -lsocket -lnsl -lpthread -D_GNU_SOURCE
|
2003-02-02 15:24:47 -05:00
|
|
|
-else
|
2005-06-18 23:47:25 -04:00
|
|
|
-OS_CCDEFS = -D_GNU_SOURCE
|
|
|
|
-endif
|
2007-07-24 16:45:41 -04:00
|
|
|
-ifeq ($(OSTYPE),macos)
|
2007-05-10 17:01:15 -04:00
|
|
|
-CC = gcc -std=c99 -O2 -U__STRICT_ANSI__ -g -lm -lrt $(OS_CCDEFS) -I .
|
2007-07-24 16:45:41 -04:00
|
|
|
-else
|
|
|
|
-CC = gcc -std=c99 -O2 -U__STRICT_ANSI__ -g -lm $(OS_CCDEFS) -I .
|
|
|
|
-endif
|
2005-06-18 23:47:25 -04:00
|
|
|
-ifeq ($(USE_NETWORK),)
|
|
|
|
-else
|
|
|
|
-NETWORK_OPT = -DUSE_NETWORK -isystem /usr/local/include /usr/local/lib/libpcap.a
|
2003-02-02 15:24:47 -05:00
|
|
|
-endif
|
|
|
|
-else
|
2007-07-24 16:45:41 -04:00
|
|
|
-#Win32 Environments
|
2007-05-10 17:01:15 -04:00
|
|
|
-LDFLAGS = -lm -lwsock32 -lwinmm
|
2005-06-18 23:47:25 -04:00
|
|
|
-CC = gcc -std=c99 -U__STRICT_ANSI__ -O0 -I.
|
2003-02-02 15:24:47 -05:00
|
|
|
-EXE = .exe
|
|
|
|
-ifeq ($(USE_NETWORK),)
|
|
|
|
-else
|
|
|
|
-NETWORK_OPT = -DUSE_NETWORK -lwpcap -lpacket
|
|
|
|
-endif
|
|
|
|
-endif
|
2007-07-24 16:45:41 -04:00
|
|
|
+OS_CCDEFS = -D_GNU_SOURCE $(CFLAGS)
|
|
|
|
+CC = gcc -std=c99 -O2 -U__STRICT_ANSI__ -g -lm $(OS_CCDEFS) -I .
|
|
|
|
+NETWORK_OPT = -DUSE_NETWORK -isystem /usr/local/include -lpcap
|
2003-02-02 15:24:47 -05:00
|
|
|
|
|
|
|
#
|
2007-05-10 17:01:15 -04:00
|
|
|
# Common Libraries
|
2007-07-24 16:45:41 -04:00
|
|
|
@@ -248,11 +225,7 @@ ALL = pdp1 pdp4 pdp7 pdp8 pdp9 pdp15 pdp11 pdp10 \
|
2003-05-28 12:31:07 -04:00
|
|
|
all : ${ALL}
|
|
|
|
|
|
|
|
clean :
|
|
|
|
-ifeq ($(WIN32),)
|
2007-05-10 17:01:15 -04:00
|
|
|
${RM} ${BIN}*
|
2003-05-28 12:31:07 -04:00
|
|
|
-else
|
|
|
|
- if exist BIN\*.exe del /q BIN\*.exe
|
|
|
|
-endif
|
2007-05-10 17:01:15 -04:00
|
|
|
|
2003-05-28 12:31:07 -04:00
|
|
|
#
|
2003-02-02 15:24:47 -05:00
|
|
|
# Individual builds
|