Blame nc110.local.patch

Lucio Andrés Illanes Albornoz (arab, vxp) 30e09b
--- nc110/Makefile.orig	1996-03-20 03:16:06.000000000 +0000
Lucio Andrés Illanes Albornoz (arab, vxp) 9e8693
+++ nc110/Makefile	2016-06-28 17:26:50.985424240 +0000
Lucio Andrés Illanes Albornoz (arab, vxp) 9e8693
@@ -9,12 +9,12 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 9e8693
 # pick gcc if you'd rather , and/or do -g instead of -O if debugging
Lucio Andrés Illanes Albornoz (arab, vxp) 9e8693
 # debugging
Lucio Andrés Illanes Albornoz (arab, vxp) 9e8693
 # DFLAGS = -DTEST -DDEBUG
Lucio Andrés Illanes Albornoz (arab, vxp) 9e8693
-CFLAGS = -O
Lucio Andrés Illanes Albornoz (arab, vxp) 9e8693
+CFLAGS = -O $(CFLAGS_EXTRA)
Lucio Andrés Illanes Albornoz (arab, vxp) 9e8693
 XFLAGS = 	# xtra cflags, set by systype targets
Lucio Andrés Illanes Albornoz (arab, vxp) 9e8693
 XLIBS =		# xtra libs if necessary?
Lucio Andrés Illanes Albornoz (arab, vxp) 9e8693
 # -Bstatic for sunos,  -static for gcc, etc.  You want this, trust me.
Lucio Andrés Illanes Albornoz (arab, vxp) 9e8693
 STATIC =
Lucio Andrés Illanes Albornoz (arab, vxp) 9e8693
-CC = cc $(CFLAGS)
Lucio Andrés Illanes Albornoz (arab, vxp) 9e8693
+CC = cc ${CFLAGS}
Lucio Andrés Illanes Albornoz (arab, vxp) 9e8693
 LD = $(CC) -s	# linker; defaults to stripped executables
Lucio Andrés Illanes Albornoz (arab, vxp) 9e8693
 o = o		# object extension
Lucio Andrés Illanes Albornoz (arab, vxp) 9e8693
 
Lucio Andrés Illanes Albornoz (arab, vxp) 9e8693
@@ -28,7 +28,7 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 9e8693
 ### HARD TARGETS
Lucio Andrés Illanes Albornoz (arab, vxp) 9e8693
 
Lucio Andrés Illanes Albornoz (arab, vxp) 9e8693
 nc:	netcat.c
Lucio Andrés Illanes Albornoz (arab, vxp) 9e8693
-	$(LD) $(DFLAGS) $(XFLAGS) $(STATIC) -o nc netcat.c $(XLIBS)
Lucio Andrés Illanes Albornoz (arab, vxp) 9e8693
+	$(LD) $(CFLAGS) $(LDFLAGS) $(DFLAGS) $(XFLAGS) $(STATIC) -o nc netcat.c $(XLIBS)
Lucio Andrés Illanes Albornoz (arab, vxp) 9e8693
 
Lucio Andrés Illanes Albornoz (arab, vxp) 9e8693
 nc-dos:
Lucio Andrés Illanes Albornoz (arab, vxp) 9e8693
 	@echo "DOS?!  Maybe someday, but not now"
Lucio Andrés Illanes Albornoz (arab, vxp) 30e09b
@@ -109,6 +109,10 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 30e09b
 next:
Lucio Andrés Illanes Albornoz (arab, vxp) 30e09b
 	make -e $(ALL) $(MFLAGS) XFLAGS='-DNEXT' STATIC=-Bstatic
Lucio Andrés Illanes Albornoz (arab, vxp) 30e09b
 
Lucio Andrés Illanes Albornoz (arab, vxp) 30e09b
+# midipix
Lucio Andrés Illanes Albornoz (arab, vxp) 30e09b
+midipix:
Lucio Andrés Illanes Albornoz (arab, vxp) 30e09b
+	make -e $(ALL) $(MFLAGS) XFLAGS='-DLINUX' STATIC=-static
Lucio Andrés Illanes Albornoz (arab, vxp) 30e09b
+
Lucio Andrés Illanes Albornoz (arab, vxp) 30e09b
 # start with this for a new architecture, and see what breaks.
Lucio Andrés Illanes Albornoz (arab, vxp) 30e09b
 generic:
Lucio Andrés Illanes Albornoz (arab, vxp) 30e09b
 	make -e $(ALL) $(MFLAGS) XFLAGS='-DGENERIC' STATIC=
Lucio Andrés Illanes Albornoz (arab, vxp) 30e09b
--- nc110/generic.h.orig	1996-02-18 01:36:43.000000000 +0000
Lucio Andrés Illanes Albornoz (arab, vxp) 30e09b
+++ nc110/generic.h	2016-06-15 18:44:06.379382216 +0000
Lucio Andrés Illanes Albornoz (arab, vxp) 30e09b
@@ -360,6 +360,14 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 30e09b
 #undef HAVE_SELECT_X
Lucio Andrés Illanes Albornoz (arab, vxp) 30e09b
 #endif /* NeXTSTEP 3.2 motorola */
Lucio Andrés Illanes Albornoz (arab, vxp) 30e09b
 
Lucio Andrés Illanes Albornoz (arab, vxp) 30e09b
+/* midipix */
Lucio Andrés Illanes Albornoz (arab, vxp) 30e09b
+#ifdef MIDIPIX
Lucio Andrés Illanes Albornoz (arab, vxp) 30e09b
+#undef UTMPX
Lucio Andrés Illanes Albornoz (arab, vxp) 30e09b
+#undef HAVE_SYSINFO
Lucio Andrés Illanes Albornoz (arab, vxp) 30e09b
+#undef HAVE_SELECT_H
Lucio Andrés Illanes Albornoz (arab, vxp) 30e09b
+#undef HAVE_TTYENT_H
Lucio Andrés Illanes Albornoz (arab, vxp) 30e09b
+#endif /* midipix */
Lucio Andrés Illanes Albornoz (arab, vxp) 30e09b
+
Lucio Andrés Illanes Albornoz (arab, vxp) 30e09b
 /* Make some "generic" assumptions if all else fails */
Lucio Andrés Illanes Albornoz (arab, vxp) 30e09b
 #ifdef GENERIC
Lucio Andrés Illanes Albornoz (arab, vxp) 30e09b
 #undef HAVE_FLOCK