source: trunk/tools/common/common.mk@ 7910

Last change on this file since 7910 was 6865, checked in by bird, 24 years ago

Traverse silently thru makefiles.
Corrected dependecy bug which caused relinking all the time.

File size: 1.1 KB
Line 
1# $Id: common.mk,v 1.6 2001-09-30 00:18:10 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 WAT
19CXXFLAGS = $(CXXFLAGS) $(CXXEXCEPTIONS)
20!else
21CXXFLAGS += $(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
32COMMONLIB = $(ODIN32_TCOMMON)\$(OBJDIR)\common.lib
33!else
34 !if $(OMF) == 0
35COMMONLIB = $(ODIN32_TCOMMON)\$(OBJDIR)\common.a
36 !else
37COMMONLIB = $(ODIN32_TCOMMON)\$(OBJDIR)\common.lib
38 !endif
39!endif
40
41
42#
43# Add ODIN32_TCOMMON to the C and C++ includes.
44#
45CINCLUDES = -I$(ODIN32_TCOMMON) $(CINCLUDES)
46
47
48#
49# No internal libs cause we define our own internal libs.
50#
51NO_INTERNAL_LIBS = 1
52INTLIBS = common_lib
53
54
55#
56# Macro for the post include.
57#
58ODIN32_TCOMMON_POST_INC = $(ODIN32_TCOMMON)/common.post.mk
59
Note: See TracBrowser for help on using the repository browser.