Imported Upstream version 6.0
[platform/upstream/dos2unix.git] / bcc.mak
1 !include version.mk\r
2 \r
3 CC      = bcc\r
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
7 \r
8 all: dos2unix.exe unix2dos.exe mac2unix.exe unix2mac.exe\r
9 \r
10 dos2unix.exe: dos2unix.obj querycp.obj common.obj\r
11         bcc -mc dos2unix.obj querycp.obj common.obj $(WILDARGS) noehc.lib\r
12 \r
13 unix2dos.exe: unix2dos.obj querycp.obj common.obj\r
14         bcc -mc unix2dos.obj querycp.obj common.obj $(WILDARGS) noehc.lib\r
15 \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
22 \r
23 \r
24 #.c.obj:\r
25 #       $(CC) -c $(CFLAGS) $<\r
26 \r
27 dos2unix.obj :  dos2unix.c dos2unix.h querycp.h common.h\r
28         $(CC) -c $(CFLAGS) -o$@ dos2unix.c\r
29 \r
30 unix2dos.obj :  unix2dos.c unix2dos.h querycp.h common.h\r
31         $(CC) -c $(CFLAGS) -o$@ unix2dos.c\r
32 \r
33 querycp.obj :  querycp.c querycp.h querycp.h\r
34         $(CC) -c $(CFLAGS) -o$@ querycp.c\r
35 \r
36 common.obj :  querycp.c querycp.h common.h\r
37         $(CC) -c $(CFLAGS) -o$@ common.c\r
38 \r
39 mac2unix.exe: dos2unix.exe\r
40         copy /v dos2unix.exe mac2unix.exe\r
41 \r
42 unix2mac.exe: unix2dos.exe\r
43         copy /v unix2dos.exe unix2mac.exe\r
44 \r
45 \r
46 strip :\r
47         tdstrip dos2unix.exe\r
48         tdstrip unix2dos.exe\r
49         tdstrip mac2unix.exe\r
50         tdstrip unix2mac.exe\r
51 \r
52 clean:\r
53         del *.obj\r
54         del *.exe\r
55 \r