diff --git a/.gitignore b/.gitignore index 63ee468..2779cd5 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,8 @@ .DS_Store build/ dist-dos/ +*.obj +*.OBJ +*.log +*.LOG + diff --git a/MAKEFILE.TC b/MAKEFILE.TC index 5646ba8..823cbd1 100644 --- a/MAKEFILE.TC +++ b/MAKEFILE.TC @@ -25,19 +25,26 @@ README_DOS = READ-DOS.TXT .c.obj: $(CC) $(CFLAGS) -c -o$*.obj $< -all: $(BUILDDIR) - $(BUILDDIR)\cnadd.exe \ - $(BUILDDIR)\cndump.exe \ - $(BUILDDIR)\cncount.exe \ - $(BUILDDIR)\cndel.exe \ - $(BUILDDIR)\cnfind.exe \ - $(BUILDDIR)\cnhelp.exe \ - $(BUILDDIR)\$(INSTALL_FILE) \ - $(BUILDDIR)\$(README_DOS) +# ──────────────────────────────────────────────── +# Main targets – split to avoid long command lines +# ──────────────────────────────────────────────── + +all: build-exes build-support-files + +build-exes: $(BUILDDIR)\cnadd.exe \ + $(BUILDDIR)\cndump.exe \ + $(BUILDDIR)\cncount.exe \ + $(BUILDDIR)\cndel.exe \ + $(BUILDDIR)\cnfind.exe \ + $(BUILDDIR)\cnhelp.exe + +build-support-files: $(BUILDDIR)\$(INSTALL_FILE) \ + $(BUILDDIR)\$(README_DOS) $(BUILDDIR): if not exist $(BUILDDIR) mkdir $(BUILDDIR) +# Individual exe rules (unchanged) $(BUILDDIR)\cnadd.exe: $(SRCDIR)\cnadd.c $(INCDIR)\platform.h $(INCDIR)\config.h $(CC) $(CFLAGS) -e$(BUILDDIR)\cnadd.exe $(SRCDIR)\cnadd.c