1 | # Makefile for Independent JPEG Group's software
|
---|
2 |
|
---|
3 | # This makefile is suitable for Borland C on MS-DOS or OS/2.
|
---|
4 | # It works with Borland C++ for DOS, revision 3.0 or later,
|
---|
5 | # and has been tested with Borland C++ for OS/2.
|
---|
6 | # Watch out for optimization bugs in the OS/2 compilers --- see notes below!
|
---|
7 | # Thanks to Tom Wright and Ge' Weijers (original DOS) and
|
---|
8 | # Ken Porter (OS/2) for this file.
|
---|
9 |
|
---|
10 | # Read installation instructions before saying "make" !!
|
---|
11 |
|
---|
12 | # Are we under DOS or OS/2?
|
---|
13 | !if !$d(DOS) && !$d(OS2)
|
---|
14 | !if $d(__OS2__)
|
---|
15 | OS2=1
|
---|
16 | !else
|
---|
17 | DOS=1
|
---|
18 | !endif
|
---|
19 | !endif
|
---|
20 |
|
---|
21 | # The name of your C compiler:
|
---|
22 | CC= bcc
|
---|
23 |
|
---|
24 | # You may need to adjust these cc options:
|
---|
25 | !if $d(DOS)
|
---|
26 | CFLAGS= -O2 -mm -w-par -w-stu -w-ccc -w-rch
|
---|
27 | !else
|
---|
28 | CFLAGS= -O1 -w-par -w-stu -w-ccc -w-rch
|
---|
29 | !endif
|
---|
30 | # -O2 enables full code optimization (for pre-3.0 Borland C++, use -O -G -Z).
|
---|
31 | # -O2 is buggy in Borland OS/2 C++ revision 2.0, so use -O1 there for now.
|
---|
32 | # If you have Borland OS/2 C++ revision 1.0, use -O or no optimization at all.
|
---|
33 | # -mm selects medium memory model (near data, far code pointers; DOS only!)
|
---|
34 | # -w-par suppresses warnings about unused function parameters
|
---|
35 | # -w-stu suppresses warnings about incomplete structures
|
---|
36 | # -w-ccc suppresses warnings about compile-time-constant conditions
|
---|
37 | # -w-rch suppresses warnings about unreachable code
|
---|
38 | # Generally, we recommend defining any configuration symbols in jconfig.h,
|
---|
39 | # NOT via -D switches here.
|
---|
40 |
|
---|
41 | # Link-time cc options:
|
---|
42 | !if $d(DOS)
|
---|
43 | LDFLAGS= -mm
|
---|
44 | # memory model option here must match CFLAGS!
|
---|
|
---|