Add a dos installer, and improve the makefile on dos #1
10
MAKEFILE.TC
10
MAKEFILE.TC
@ -18,7 +18,7 @@ CFLAGS = -A -w -ml -I.\include
|
||||
|
||||
SRCDIR = src
|
||||
INCDIR = include
|
||||
BUILDDIR = build
|
||||
BUILDDIR = BUILD
|
||||
INSTALL_FILE = INSTALL.BAT
|
||||
README_DOS = READ-DOS.TXT
|
||||
|
||||
@ -46,27 +46,35 @@ $(BUILDDIR):
|
||||
|
||||
# Individual exe rules (unchanged)
|
||||
$(BUILDDIR)\cnadd.exe: $(SRCDIR)\cnadd.c $(INCDIR)\platform.h $(INCDIR)\config.h
|
||||
if not exist $(BUILDDIR) mkdir $(BUILDDIR)
|
||||
$(CC) $(CFLAGS) -e$(BUILDDIR)\cnadd.exe $(SRCDIR)\cnadd.c
|
||||
|
||||
$(BUILDDIR)\cndump.exe: $(SRCDIR)\cndump.c $(INCDIR)\platform.h $(INCDIR)\config.h
|
||||
if not exist $(BUILDDIR) mkdir $(BUILDDIR)
|
||||
$(CC) $(CFLAGS) -e$(BUILDDIR)\cndump.exe $(SRCDIR)\cndump.c
|
||||
|
||||
$(BUILDDIR)\cncount.exe: $(SRCDIR)\cncount.c $(INCDIR)\platform.h $(INCDIR)\config.h
|
||||
if not exist $(BUILDDIR) mkdir $(BUILDDIR)
|
||||
$(CC) $(CFLAGS) -e$(BUILDDIR)\cncount.exe $(SRCDIR)\cncount.c
|
||||
|
||||
$(BUILDDIR)\cndel.exe: $(SRCDIR)\cndel.c $(INCDIR)\platform.h $(INCDIR)\config.h
|
||||
if not exist $(BUILDDIR) mkdir $(BUILDDIR)
|
||||
$(CC) $(CFLAGS) -e$(BUILDDIR)\cndel.exe $(SRCDIR)\cndel.c
|
||||
|
||||
$(BUILDDIR)\cnfind.exe: $(SRCDIR)\cnfind.c $(INCDIR)\platform.h $(INCDIR)\config.h
|
||||
if not exist $(BUILDDIR) mkdir $(BUILDDIR)
|
||||
$(CC) $(CFLAGS) -e$(BUILDDIR)\cnfind.exe $(SRCDIR)\cnfind.c
|
||||
|
||||
$(BUILDDIR)\cnhelp.exe: $(SRCDIR)\cnhelp.c
|
||||
if not exist $(BUILDDIR) mkdir $(BUILDDIR)
|
||||
$(CC) $(CFLAGS) -e$(BUILDDIR)\cnhelp.exe $(SRCDIR)\cnhelp.c
|
||||
|
||||
$(BUILDDIR)\$(INSTALL_FILE): $(INSTALL_FILE)
|
||||
if not exist $(BUILDDIR) mkdir $(BUILDDIR)
|
||||
copy $(INSTALL_FILE) $(BUILDDIR)\$(INSTALL_FILE)
|
||||
|
||||
$(BUILDDIR)\$(README_DOS): $(README_DOS)
|
||||
if not exist $(BUILDDIR) mkdir $(BUILDDIR)
|
||||
copy $(README_DOS) $(BUILDDIR)\$(README_DOS)
|
||||
|
||||
clean:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user