$NetBSD: patch-ac,v 1.2 2001/02/25 22:14:20 jtb Exp $ --- sim/Makefile.orig Fri Nov 14 15:45:53 1997 +++ sim/Makefile @@ -46,14 +46,16 @@ # LFLAGS : any flags specific to the linker. # +all: mcsim + #---------- System Calls ---------- # #>>>> Define any system dependent calls here -ECHO = echo -COPY = cp -DEL = rm -MKDIR = mkdir +ECHO ?= echo +COPY ?= cp +DEL ?= rm +MKDIR ?= mkdir MOD = mod @@ -62,8 +64,8 @@ # #>>>> Define the COMPILER name and LINKER name here only. -CC = gcc -LINK = gcc +#CC = gcc +LINK = $(CC) #>>>> Define PATHS # The include path should be a directory containing header @@ -101,27 +103,27 @@ #>>>> To compile with OPTIMIZATION uncomment the following lines # DEBUG_SYMBOLS = -DNDEBUG -C_OPTIM_FLAG = -O +C_OPTIM_FLAG = L_OPTIM_FLAG = # #>>>> Include any special warning flags # -WARNINGS = -Wall -ansi +WARNINGS = -ansi #-------------------- #**** You shouldn't need to change the next 2 lines. They are dependent #**** only on the above setup. -CFLAGS = $(C_OPTIM_FLAG) $(C_DEBUG_FLAG) $(DEBUG_SYMBOLS) \ +CFLAGS += $(C_OPTIM_FLAG) $(C_DEBUG_FLAG) $(DEBUG_SYMBOLS) \ -I $(INCPATH) $(WARNINGS) -CLFLAGS = $(L_OPTIM_FLAG) $(L_DEBUG_FLAG) +CLFLAGS += $(L_OPTIM_FLAG) $(L_DEBUG_FLAG) # #>>>> Extra link flags. Include libraries here # -LFLAGS = -lm +LFLAGS += -lm