mirror of
https://github.com/Interlisp/maiko.git
synced 2026-04-27 20:58:44 +00:00
Define RM in makefile if it is not already defined (#326)
Some versions of "make" do not predefine make variable RM (looking at you, FreeBSD) so if it has NOT been defined we define it as "rm -f" Also, update the cleanup target to use $(RM) rather than refering directly to "rm".
This commit is contained in:
@@ -9,6 +9,7 @@ LIBDIR = ../lib
|
||||
BINDIR = ./
|
||||
RANLIB = ranlib
|
||||
AR = ar rcv
|
||||
RM ?= rm -f
|
||||
|
||||
# Compiler flags
|
||||
CLANG_CFLAGS = -std=gnu99 -fno-strict-aliasing
|
||||
|
||||
@@ -871,7 +871,7 @@ $(OBJECTDIR)lpy.tab.o : $(SRCDIR)lpy.tab.c $(REQUIRED-INCS) $(INCDIR)lpdefs.h $
|
||||
################################################################################
|
||||
|
||||
cleanup :
|
||||
rm -rf $(OBJECTDIR) $(OSARCHDIR)
|
||||
$(RM) -r $(OBJECTDIR) $(OSARCHDIR)
|
||||
|
||||
.c.o:
|
||||
$(CC) $(RFLAGS) $*.c -o $@
|
||||
|
||||
Reference in New Issue
Block a user