Merge pull request #10 from ccawley2011/watcom
[debian-nspark.git] / msdos / makefile
blobdc7d76c31179267399c934fb2bb1ef1957f6058c
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
11 INSTALLDIR= d:\util
13 # BB added next two lines
14 NAME = nspark
15 CONFIGFILE = $(NAME).cfg
17 # Borland C/C++
18 CC=BCC +$(CONFIGFILE)
19 LD=TLINK
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
33 # version.
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.
49 LDFLAGS= /x/c/P-
50 # BB changed next line
51 #PROG= nspark.exe
52 PROG= $(NAME).exe
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
59 LIBS=
61 # BB overrule default implicite rule.
62 .c.obj:
63 $(CC) -c {$< }
65 # BB changed next line
66 #all: $(PROG)
67 .AUTODEPEND:
69 all: $(CONFIGFILE) $(PROG)
71 $(PROG): $(CONFIGFILE) $(OBJS)
72 # BB commented out next line
73 # set LINK=$(LDFLAGS)
74 # BB changed next line
75 # $(LD) $(OBJS), $(PROG);
76 $(LD) $(LDFLAGS) @&&|
77 c0c.obj+ # Using compact memory model
78 arc.obj+
79 arcfs.obj+
80 compress.obj+
81 crc.obj+
82 date.obj+
83 error.obj+
84 io.obj+
85 main.obj+
86 misc.obj+
87 msdos.obj+
88 pack.obj+
89 store.obj+
90 unarc.obj
91 $(NAME)
92 # no map file
93 cc.lib # using compact memory model
95 !ifdef COMPRESS
96 # create directory uncompr for uncompressed .exe
97 if not exist uncompr\nul md uncompr
98 copy $(PROG) uncompr\$(PROG)
99 $(COMPRESS) $(PROG)
100 !endif
103 $(CONFIGFILE): makefile
104 copy &&|
105 -mc # using compact memory model
113 -vi-
114 -H=$(NAME).SYM
115 # BB remove next two lines when you are using a turboc.cfg file.
116 # and change CC to BCC @$(CONFIGFILE).
117 -I$(INCLUDEPATH)
118 -L$(LIBPATH)
119 -DMSDOS3
120 -DVERSION="$(VERSION)"
121 -DMAINTAINER="$(MAINTAINER)"
122 -UMSDOS
123 | $(CONFIGFILE)
125 install: $(PROG)
126 copy $(PROG) $(INSTALLDIR)
128 clean:
129 del $(PROG)
130 del *.obj
131 del *.bak
132 del *.map
133 del mklog
134 # BB added next four lines
135 del *.bk?
136 del $(CONFIGFILE)
137 del $(NAME).sym
138 del *.$$$