4 DEFINES = -DMSDOS -DVER_REVISION="$(DOS2UNIX_VERSION)" -DVER_DATE="$(DOS2UNIX_DATE)"
\r
5 CFLAGS = $(DEFINES) -Z -O -w -mc -1
\r
6 WILDARGS = c:/bc4/lib/16bit/wildargs.obj
\r
8 all: dos2unix.exe unix2dos.exe mac2unix.exe unix2mac.exe
\r
10 dos2unix.exe: dos2unix.obj querycp.obj common.obj
\r
11 bcc -mc dos2unix.obj querycp.obj common.obj $(WILDARGS) noehc.lib
\r
13 unix2dos.exe: unix2dos.obj querycp.obj common.obj
\r
14 bcc -mc unix2dos.obj querycp.obj common.obj $(WILDARGS) noehc.lib
\r
16 # remove noehc.lib if you are using Borland C version prior
\r
17 # to 4.0. noeh?.lib, where ? stands for the memory model,
\r
18 # removes the C++ exception handling from the startup-code
\r
19 # which is included by default since Borland 4.0 and
\r
20 # higher. Including noeh?.lib reduces the executable size
\r
21 # significant, provided your source is C only.
\r
25 # $(CC) -c $(CFLAGS) $<
\r
27 dos2unix.obj : dos2unix.c dos2unix.h querycp.h common.h
\r
28 $(CC) -c $(CFLAGS) -o$@ dos2unix.c
\r
30 unix2dos.obj : unix2dos.c unix2dos.h querycp.h common.h
\r
31 $(CC) -c $(CFLAGS) -o$@ unix2dos.c
\r
33 querycp.obj : querycp.c querycp.h querycp.h
\r
34 $(CC) -c $(CFLAGS) -o$@ querycp.c
\r
36 common.obj : querycp.c querycp.h common.h
\r
37 $(CC) -c $(CFLAGS) -o$@ common.c
\r
39 mac2unix.exe: dos2unix.exe
\r
40 copy /v dos2unix.exe mac2unix.exe
\r
42 unix2mac.exe: unix2dos.exe
\r
43 copy /v unix2dos.exe unix2mac.exe
\r
47 tdstrip dos2unix.exe
\r
48 tdstrip unix2dos.exe
\r
49 tdstrip mac2unix.exe
\r
50 tdstrip unix2mac.exe
\r