From 609e2411f20754c8ee41d61c56c036e94338a114 Mon Sep 17 00:00:00 2001 From: Richard Cornwell Date: Sun, 20 Feb 2022 13:33:41 -0500 Subject: [PATCH] SCP: Updated to current. --- makefile | 67 +++++++++++++++++++++++++---------------------------- sim_ether.c | 7 ++++++ 2 files changed, 39 insertions(+), 35 deletions(-) diff --git a/makefile b/makefile index fab02f2..b7f182c 100644 --- a/makefile +++ b/makefile @@ -100,43 +100,38 @@ ifeq (old,$(shell gmake --version /dev/null 2>&1 | grep 'GNU Make' | awk '{ if ( $(warning *** Warning *** GNU Make Version $(GMAKE_VERSION) is too old to) $(warning *** Warning *** fully process this makefile) endif +SIM_MAJOR=$(shell grep SIM_MAJOR sim_rev.h | awk '{ print $$3 }') BUILD_SINGLE := ${MAKECMDGOALS} $(BLANK_SUFFIX) BUILD_MULTIPLE_VERB = is # building the pdp1, pdp11, tx-0, or any microvax simulator could use video support -ifneq (,$(or $(findstring XXpdp1XX,$(addsuffix XX,$(addprefix XX,${MAKECMDGOALS}))),$(findstring pdp11,${MAKECMDGOALS}),$(findstring tx-0,${MAKECMDGOALS}),$(findstring microvax1,${MAKECMDGOALS}),$(findstring microvax2,${MAKECMDGOALS}),$(findstring microvax3900,${MAKECMDGOALS}),$(findstring microvax2000,${MAKECMDGOALS}),$(findstring vaxstation3100,${MAKECMDGOALS}),$(findstring XXvaxXX,$(addsuffix XX,$(addprefix XX,${MAKECMDGOALS}))))) - VIDEO_USEFUL = true -endif -# building the besm6 needs both video support and fontfile support -ifneq (,$(findstring besm6,${MAKECMDGOALS})) - VIDEO_USEFUL = true - BESM6_BUILD = true -endif -# building the Imlac needs video support -ifneq (,$(findstring imlac,${MAKECMDGOALS})) - VIDEO_USEFUL = true -endif -# building the TT2500 needs video support -ifneq (,$(findstring tt2500,${MAKECMDGOALS})) - VIDEO_USEFUL = true -endif -# building the PDP6, KA10 or KI10 needs video support -ifneq (,$(or $(findstring pdp6,${MAKECMDGOALS}),$(findstring pdp10-ka,${MAKECMDGOALS}),$(findstring pdp10-ki,${MAKECMDGOALS}))) - VIDEO_USEFUL = true -endif -# building the KA10, KI10, KL10, KS10 networking can be used. -ifneq (,$(or $(findstring pdp10-ka,${MAKECMDGOALS}),$(findstring pdp10-ki,${MAKECMDGOALS},$(findstring pdp10-kl,${MAKECMDGOALS},$(findstring pdp10-ks,{MAKECMDGOALS}))))) - NETWORK_USEFUL = true -endif -# building the SEL32 networking can be ussed -ifneq (,$(findstring sel32,${MAKECMDGOALS})) - NETWORK_USEFUL = true +ifneq (3,${SIM_MAJOR}) + ifneq (,$(or $(findstring XXpdp1XX,$(addsuffix XX,$(addprefix XX,${MAKECMDGOALS}))),$(findstring pdp11,${MAKECMDGOALS}),$(findstring tx-0,${MAKECMDGOALS}),$(findstring microvax1,${MAKECMDGOALS}),$(findstring microvax2,${MAKECMDGOALS}),$(findstring microvax3900,${MAKECMDGOALS}),$(findstring microvax2000,${MAKECMDGOALS}),$(findstring vaxstation3100,${MAKECMDGOALS}),$(findstring XXvaxXX,$(addsuffix XX,$(addprefix XX,${MAKECMDGOALS}))))) + VIDEO_USEFUL = true + endif + # building the besm6 needs both video support and fontfile support + ifneq (,$(findstring besm6,${MAKECMDGOALS})) + VIDEO_USEFUL = true + BESM6_BUILD = true + endif + # building the Imlac needs video support + ifneq (,$(findstring imlac,${MAKECMDGOALS})) + VIDEO_USEFUL = true + endif + # building the TT2500 needs video support + ifneq (,$(findstring tt2500,${MAKECMDGOALS})) + VIDEO_USEFUL = true + endif + # building the PDP6, KA10 or KI10 needs video support + ifneq (,$(or $(findstring pdp6,${MAKECMDGOALS}),$(findstring pdp10-ka,${MAKECMDGOALS}),$(findstring pdp10-ki,${MAKECMDGOALS}))) + VIDEO_USEFUL = true + endif endif # building the PDP-7 needs video support ifneq (,$(findstring pdp7,${MAKECMDGOALS})) VIDEO_USEFUL = true endif -# building the pdp11, pdp10, or any vax simulator could use networking support -ifneq (,$(or $(findstring pdp11,${MAKECMDGOALS}),$(findstring pdp10,${MAKECMDGOALS}),$(findstring vax,${MAKECMDGOALS}),$(findstring infoserver,${MAKECMDGOALS}),$(findstring 3b2,${MAKECMDGOALS})$(findstring all,${MAKECMDGOALS}))) +# building the pdp11, any pdp10, any 3b2, or any vax simulator could use networking support +ifneq (,$(findstring pdp11,${MAKECMDGOALS})$(findstring pdp10,${MAKECMDGOALS})$(findstring vax,${MAKECMDGOALS})$(findstring infoserver,${MAKECMDGOALS})$(findstring 3b2,${MAKECMDGOALS})$(findstring all,${MAKECMDGOALS})) NETWORK_USEFUL = true ifneq (,$(findstring all,${MAKECMDGOALS})) BUILD_MULTIPLE = s @@ -184,11 +179,13 @@ endif find_exe = $(abspath $(strip $(firstword $(foreach dir,$(strip $(subst :, ,${PATH})),$(wildcard $(dir)/$(1)))))) find_lib = $(firstword $(abspath $(strip $(firstword $(foreach dir,$(strip ${LIBPATH}),$(foreach ext,$(strip ${LIBEXT}),$(wildcard $(dir)/lib$(1).$(ext)))))))) find_include = $(abspath $(strip $(firstword $(foreach dir,$(strip ${INCPATH}),$(wildcard $(dir)/$(1).h))))) -ifneq (0,$(TESTS)) - find_test = RegisterSanityCheck $(abspath $(wildcard $(1)/tests/$(2)_test.ini)) host_nic_phy_hw_addr, 0, sizeof(dev->host_nic_phy_hw_addr));