Changed the delete rule to delete only one file at a time since the Borland Make (or DOS del) only takes up to 255 characters per command.
This commit is contained in:
@@ -146,6 +146,8 @@ OBJS = ${CORE1_OBJ} \
|
|||||||
${HANDLER_OBJ} \
|
${HANDLER_OBJ} \
|
||||||
${OBJECT_OBJ}
|
${OBJECT_OBJ}
|
||||||
|
|
||||||
|
DEL = ${OBJS:.obj=.del}
|
||||||
|
|
||||||
# Compiler definitions
|
# Compiler definitions
|
||||||
#
|
#
|
||||||
BCC_CFG = bcc32.cfg
|
BCC_CFG = bcc32.cfg
|
||||||
@@ -162,20 +164,13 @@ LFLAGS = /E /P4096
|
|||||||
all: $(BCC_CFG) $(OBJS) makefile.b32 $(LIBRARY)
|
all: $(BCC_CFG) $(OBJS) makefile.b32 $(LIBRARY)
|
||||||
@echo Finished!
|
@echo Finished!
|
||||||
|
|
||||||
clean:
|
clean: ${DEL}
|
||||||
del ${CORE1_OBJ}
|
|
||||||
del ${CORE2_OBJ}
|
|
||||||
del ${CORE3_OBJ}
|
|
||||||
del ${PORT_OBJ}
|
|
||||||
del ${HANDLER_OBJ}
|
|
||||||
del ${OBJECT_OBJ}
|
|
||||||
del ${LIBRARY}
|
del ${LIBRARY}
|
||||||
del $(BCC_CFG)
|
del ${BCC_CFG}
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generic rules
|
# Generic rules
|
||||||
#
|
#
|
||||||
.SUFFIXES: .cpp .c .sbr .obj
|
.SUFFIXES: .cpp .c .sbr .obj .del
|
||||||
|
|
||||||
#
|
#
|
||||||
# cc generic rule
|
# cc generic rule
|
||||||
@@ -184,6 +179,10 @@ clean:
|
|||||||
$(CC) +$(BCC_CFG) -o$@ $<
|
$(CC) +$(BCC_CFG) -o$@ $<
|
||||||
$(TLIB) $(LIBRARY) $(LFLAGS) -+"$@"
|
$(TLIB) $(LIBRARY) $(LFLAGS) -+"$@"
|
||||||
|
|
||||||
|
# delete rule - to delete one at a time
|
||||||
|
.obj.del:
|
||||||
|
del $**
|
||||||
|
|
||||||
# Compiler configuration file
|
# Compiler configuration file
|
||||||
$(BCC_CFG) :
|
$(BCC_CFG) :
|
||||||
Copy &&|
|
Copy &&|
|
||||||
|
|||||||
Reference in New Issue
Block a user