fix borland make error
All checks were successful
Build / build (push) Successful in 14s

This commit is contained in:
Greg Gauthier 2026-02-04 18:56:10 +00:00
parent 04611b6b9d
commit da2ec0b2a2
2 changed files with 21 additions and 9 deletions

5
.gitignore vendored
View File

@ -5,3 +5,8 @@
.DS_Store .DS_Store
build/ build/
dist-dos/ dist-dos/
*.obj
*.OBJ
*.log
*.LOG

View File

@ -25,19 +25,26 @@ README_DOS = READ-DOS.TXT
.c.obj: .c.obj:
$(CC) $(CFLAGS) -c -o$*.obj $< $(CC) $(CFLAGS) -c -o$*.obj $<
all: $(BUILDDIR) # ────────────────────────────────────────────────
$(BUILDDIR)\cnadd.exe \ # Main targets split to avoid long command lines
# ────────────────────────────────────────────────
all: build-exes build-support-files
build-exes: $(BUILDDIR)\cnadd.exe \
$(BUILDDIR)\cndump.exe \ $(BUILDDIR)\cndump.exe \
$(BUILDDIR)\cncount.exe \ $(BUILDDIR)\cncount.exe \
$(BUILDDIR)\cndel.exe \ $(BUILDDIR)\cndel.exe \
$(BUILDDIR)\cnfind.exe \ $(BUILDDIR)\cnfind.exe \
$(BUILDDIR)\cnhelp.exe \ $(BUILDDIR)\cnhelp.exe
$(BUILDDIR)\$(INSTALL_FILE) \
build-support-files: $(BUILDDIR)\$(INSTALL_FILE) \
$(BUILDDIR)\$(README_DOS) $(BUILDDIR)\$(README_DOS)
$(BUILDDIR): $(BUILDDIR):
if not exist $(BUILDDIR) mkdir $(BUILDDIR) if not exist $(BUILDDIR) mkdir $(BUILDDIR)
# Individual exe rules (unchanged)
$(BUILDDIR)\cnadd.exe: $(SRCDIR)\cnadd.c $(INCDIR)\platform.h $(INCDIR)\config.h $(BUILDDIR)\cnadd.exe: $(SRCDIR)\cnadd.c $(INCDIR)\platform.h $(INCDIR)\config.h
$(CC) $(CFLAGS) -e$(BUILDDIR)\cnadd.exe $(SRCDIR)\cnadd.c $(CC) $(CFLAGS) -e$(BUILDDIR)\cnadd.exe $(SRCDIR)\cnadd.c