diff options
author | Michael Krelin <hacker@klever.net> | 2007-06-17 19:29:08 +0000 |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2007-06-17 19:29:08 +0000 |
commit | f881476e2a4f25aa2cc819885950b05f3a0c6784 (patch) | |
tree | ace792898bc4db5b761f899ff40bd1c66155257a /packages/simh/files/makefile.patch | |
parent | 3bc99f3297ebf23dffd56f5afbe178a8d4a2084e (diff) |
packages/simh: added a The Computer History Simulation Project package.
it's nice to have the power of pdp-11 in your pocket, isn't it?
Diffstat (limited to 'packages/simh/files/makefile.patch')
-rw-r--r-- | packages/simh/files/makefile.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/packages/simh/files/makefile.patch b/packages/simh/files/makefile.patch new file mode 100644 index 0000000000..dce99d81f5 --- /dev/null +++ b/packages/simh/files/makefile.patch @@ -0,0 +1,36 @@ +diff --git a/makefile b/makefile +index 4973273..10cc672 100644 +--- a/makefile ++++ b/makefile +@@ -10,19 +10,15 @@ OS_CCDEFS = -lsocket -lnsl -lpthread -D_GNU_SOURCE + else
+ OS_CCDEFS = -D_GNU_SOURCE
+ endif
+-ifeq ($(OSTYPE),macos)
+-CC = gcc -std=c99 -O2 -U__STRICT_ANSI__ -g -lm -lrt $(OS_CCDEFS) -I .
+-else
+-CC = gcc -std=c99 -O2 -U__STRICT_ANSI__ -g -lm $(OS_CCDEFS) -I .
+-endif
++CC := ${CC} -std=c99 -U__STRICT_ANSI__ -lm -lrt $(OS_CCDEFS) -I .
+ ifeq ($(USE_NETWORK),)
+ else
+-NETWORK_OPT = -DUSE_NETWORK -isystem /usr/local/include /usr/local/lib/libpcap.a
++NETWORK_OPT = -DUSE_NETWORK -DNEED_PCAP_SENDPACKET -lpcap
+ endif
+ else
+ #Win32 Environments
+ LDFLAGS = -lm -lwsock32 -lwinmm
+-CC = gcc -std=c99 -U__STRICT_ANSI__ -O0 -I.
++CC := ${CC} -std=c99 -U__STRICT_ANSI__ -O0 -I.
+ EXE = .exe
+ ifeq ($(USE_NETWORK),)
+ else
+@@ -30,6 +26,8 @@ NETWORK_OPT = -DUSE_NETWORK -lwpcap -lpacket + endif
+ endif
+
++CC := ${CC} ${CPPFLAGS} ${CFLAGS}
++
+ #
+ # Common Libraries
+ #
|