Add a dos installer, and improve the makefile on dos #1
5
.gitignore
vendored
5
.gitignore
vendored
@ -5,3 +5,8 @@
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
build/
|
build/
|
||||||
dist-dos/
|
dist-dos/
|
||||||
|
*.obj
|
||||||
|
*.OBJ
|
||||||
|
*.log
|
||||||
|
*.LOG
|
||||||
|
|
||||||
|
|||||||
15
MAKEFILE.TC
15
MAKEFILE.TC
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user