2 # NOTE: NSPARK DOESN'T WORK UNDER MS-DOS RIGHT NOW... COMPRESS.C NEEDS
3 # CALLS TO VMALLOC() ET AL TO ALLOW DATA AREAS > 64KB TO BE ALLOCATED.
5 # nspark makefile (MSDOS, Microsoft V7.0 C Compiler)
7 # SYSTYPE: MSDOS2, MSDOS3, MSDOS4, MSDOS5, MSDOS6, MSDOS7.
9 SYSTYPE
= MSDOS3
# using DRDOS 6 == API level 3.31
13 # BB added next two lines
15 CONFIGFILE
= $(NAME
).cfg
21 # Change the next two lines to your own local settings.
23 # If you want to use the settings in your turboc.cfg file,
24 # remove LIBPATH and INCLUDEPATH from the definition of
25 # $(CONFIGFILE) and change the above definition for CC
26 # to CC=BCC @$(CONFIGFILE). (Not recommended since there may
27 # be other unwanted options set in turboc.cfg.)
28 LIBPATH
= H
:\BORLANDC\LIB
29 INCLUDEPATH
= H
:\BORLANDC\INCLUDE
31 # Uncomment ONE of the next two lines when you have PKLITE or LZEXE.
32 # pklite: optionally add -e to options if you have the professional
34 COMPRESS
= d
:\util\pklite
-b
35 # COMPRESS = d:\util\lzexe
37 # --- You shouldn't need to edit below this line ---
38 # BB: But only if you are using Borland C/C++!
40 # NB: Spaces are not allowed in -D arguments.
41 VERSION
= 1.7.6_dos-beta
42 MAINTAINER
= bob@wop.wtb.tue.nl_
(this_beta_only
!)
44 # BB commented out next three lines for Borland C/C++: use response file
45 #CDEFINES= -mc -a -f- -w+ -O2 -k- -d -v- -vi- -H=$(NAME).SYM -UMSDOS
46 #CMISC= -DVERSION="$(VERSION)" -DMAINTAINER="$(MAINTAINER)" -D$(SYSTYPE)
47 #CFLAGS= $(CDEFINES) $(CMISC)
48 # Borland C/C++ uses TLINK.
50 # BB changed next line
53 SRCS
= main.c arc.c unarc.c store.c pack.c compress.c crc.c \
54 io.c error.c misc.c date.c msdos.c arcfs.c
55 HDRS
= main.h arc.h unarc.h store.h pack.h compress.h crc.h \
56 io.h error.h misc.h date.h os.h spark.h arcfs.h
57 OBJS
= main.obj arc.obj unarc.obj store.obj pack.obj compress.obj crc.obj \
58 io.obj error.obj misc.obj date.obj msdos.obj arcfs.obj
61 # BB overrule default implicite rule.
65 # BB changed next line
69 all: $(CONFIGFILE
) $(PROG
)
71 $(PROG
): $(CONFIGFILE
) $(OBJS
)
72 # BB commented out next line
74 # BB changed next line
75 # $(LD) $(OBJS), $(PROG);
77 c0c.obj
+ # Using compact memory model
93 cc.lib
# using compact memory model
96 # create directory uncompr for uncompressed .exe
97 if not exist uncompr
\nul md uncompr
98 copy
$(PROG
) uncompr\
$(PROG
)
103 $(CONFIGFILE
): makefile
105 -mc
# using compact memory model
115 # BB remove next two lines when you are using a turboc.cfg file.
116 # and change CC to BCC @$(CONFIGFILE).
120 -DVERSION
="$(VERSION)"
121 -DMAINTAINER
="$(MAINTAINER)"
126 copy
$(PROG
) $(INSTALLDIR
)
134 # BB added next four lines