Last change
on this file since 10367 was 7995, checked in by bird, 24 years ago |
Don't test for WAT, but for WMAKE when it comes to +=.
|
File size:
1.1 KB
|
Line | |
---|
1 | # $Id: common.mk,v 1.7 2002-02-23 23:27:18 bird Exp $
|
---|
2 | #
|
---|
3 | # Common definitions for tools.
|
---|
4 | #
|
---|
5 | # Requires that ODIN32_TCOMMON is defined to point to the
|
---|
6 | # /tools/common directory
|
---|
7 | #
|
---|
8 | #
|
---|
9 | # Copyright (c) 2000 knut st. osmundsen (knut.stange.osmundsen@mynd.no)
|
---|
10 | #
|
---|
11 | # Project Odin Software License can be found in LICENSE.TXT
|
---|
12 | #
|
---|
13 |
|
---|
14 |
|
---|
15 | #
|
---|
16 | # We use exception, so we'll have to enable them.
|
---|
17 | #
|
---|
18 | !ifndef WMAKE
|
---|
19 | CXXFLAGS = $(CXXFLAGS) $(CXXEXCEPTIONS)
|
---|
20 | !else
|
---|
21 | CXXFLAGS += $(CXXEXCEPTIONS)
|
---|
22 | !endif
|
---|
23 |
|
---|
24 |
|
---|
25 | #
|
---|
26 | # Make a suggestion of which common.<a|lib> library to use.
|
---|
27 | # Not defined OMF indicates VAC or Watcom.
|
---|
28 | # OMF=0 indicates GCC+aout
|
---|
29 | # OMF=1 indicates GCC+OMF
|
---|
30 | #
|
---|
31 | !ifndef GCC
|
---|
32 | COMMONLIB = $(ODIN32_TCOMMON)\$(OBJDIR)\common.lib
|
---|
33 | !else
|
---|
34 | !if $(OMF) == 0
|
---|
35 | COMMONLIB = $(ODIN32_TCOMMON)\$(OBJDIR)\common.a
|
---|
36 | !else
|
---|
37 | COMMONLIB = $(ODIN32_TCOMMON)\$(OBJDIR)\common.lib
|
---|
38 | !endif
|
---|
39 | !endif
|
---|
40 |
|
---|
41 |
|
---|
42 | #
|
---|
43 | # Add ODIN32_TCOMMON to the C and C++ includes.
|
---|
44 | #
|
---|
45 | CINCLUDES = -I$(ODIN32_TCOMMON) $(CINCLUDES)
|
---|
46 |
|
---|
47 |
|
---|
48 | #
|
---|
49 | # No internal libs cause we define our own internal libs.
|
---|
50 | #
|
---|
51 | NO_INTERNAL_LIBS = 1
|
---|
52 | INTLIBS = common_lib
|
---|
53 |
|
---|
54 |
|
---|
55 | #
|
---|
56 | # Macro for the post include.
|
---|
57 | #
|
---|
58 | ODIN32_TCOMMON_POST_INC = $(ODIN32_TCOMMON)/common.post.mk
|
---|
59 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.