$NetBSD: patch-aa,v 1.4 2023/07/09 15:09:01 nia Exp $ --- makefile.orig 1997-12-19 23:00:00.000000000 +0000 +++ makefile @@ -10,18 +10,18 @@ ############################################################################### # Configuration for g++ on Unix. Also works for gcc if you set CC = g++ -#CC = g++ -#OBJ = .o -#EXE = -#DIFF = diff -s -#RM = rm -#CP = cp -#SUPP_DIR = ./rdp_supp/ -#CFLAGS = -I$(SUPP_DIR) -D_POSIX_SOURCE -Wmissing-prototypes -Wstrict-prototypes -fno-common -Wall -ansi -pedantic -g -#LINK = $(CC) -o ./ -#MATHS = -lm -#HERE = ./ -#OBJ_ONLY = -c +#CC = g++ +OBJ = .o +EXE = +DIFF = diff -s +RM = rm +CP = cp +SUPP_DIR = ./rdp_supp/ +CFLAGS += -I$(SUPP_DIR) -D_POSIX_SOURCE -Wmissing-prototypes -Wstrict-prototypes -fno-common -Wall -ansi -pedantic +LINK = $(CC) $(LDFLAGS) -o ./ +MATHS = -lm +HERE = ./ +OBJ_ONLY = -c # End of gcc on Unix configuration # Configuration for gcc on DOS using djpgg. @@ -57,18 +57,18 @@ # End of Sun acc 2.0 on SunOS configuration # Configuration for Borland C++ 5.0 under Windows-95 -CC = bcc32 -OBJ = .obj -EXE = .exe -DIFF = fc -RM = del -CP = copy -SUPP_DIR = rdp_supp\\ -CFLAGS = -I$(SUPP_DIR) -A -c -P -w -LINK = $(CC) -e -MATHS = -HERE = -OBJ_ONLY = -c +#CC = bcc32 +#OBJ = .obj +#EXE = .exe +#DIFF = fc +#RM = del +#CP = copy +#SUPP_DIR = rdp_supp\\ +#CFLAGS = -I$(SUPP_DIR) -A -c -P -w +#LINK = $(CC) -e +#MATHS = +#HERE = +#OBJ_ONLY = -c # End of Borland C++ 5.0 under Windows-95 configuration # Configuration for Borland C 3.1 on MS-DOS @@ -217,7 +217,7 @@ mvmasm$(EXE): mvmasm$(OBJ) mvm_aux$(OBJ) # compile the mvmsim simulator mvmsim$(EXE): mvmsim$(OBJ) $(RDP_SUPP) - $(LINK)mvmsim$(EXE) mvmsim$(OBJ) $(RDP_SUPP) + $(LINK)mvmsim$(EXE) mvmsim$(OBJ) $(RDP_SUPP) $(MATHS) # test the single-pass compiler, assembler and simulator ml_test: miniloop$(EXE) mvmasm$(EXE) mvmsim$(EXE) testloop.m