2013-09-26 17:14:40 +02:00

19 lines
448 B
Plaintext

$NetBSD: patch-aa,v 1.2 2002/09/17 17:02:30 abs Exp $
--- Makefile.orig Sat Jun 16 04:39:17 2001
+++ Makefile
@@ -1,3 +1,12 @@
+OPSYS!= uname -s
+# On NetBSD -nostdlib will exclude the ELF note that tags binaries as native.
+.if (${OPSYS} == NetBSD)
+COMPILEFLAGS=-D_main=main -DWINDOWS
+.else
+COMPILEFLAGS=-nostdlib
+.endif
+
all : burnP5 burnP6 burnK6 burnK7 burnBX burnMMX
+
.S:
- gcc -s -nostdlib -o $@ $<
+ gcc -s ${COMPILEFLAGS} -o $@ $<