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

Last change on this file since 4734 was 4712, checked in by bird, 25 years ago

New makefile style.

File size: 996 bytes
Line 
1# $Id: common.mk,v 1.4 2000-12-02 23:26:57 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# Make a suggestion of which common.<a|lib> library to use.
17# Not defined OMF indicates VAC or Watcom.
18# OMF=0 indicates GCC+aout
19# OMF=1 indicates GCC+OMF
20#
21!ifndef GCC
22COMMONLIB = $(ODIN32_TCOMMON)\$(OBJDIR)\common.lib
23!else
24 !if $(OMF) == 0
25COMMONLIB = $(ODIN32_TCOMMON)\$(OBJDIR)\common.a
26 !else
27COMMONLIB = $(ODIN32_TCOMMON)\$(OBJDIR)\common.lib
28 !endif
29!endif
30
31
32#
33# Add ODIN32_TCOMMON to the C and C++ includes.
34#
35CINCLUDES = -I$(ODIN32_TCOMMON) $(CINCLUDES)
36
37
38#
39# No internal libs cause we define our own internal libs.
40#
41NO_INTERNAL_LIBS = 1
42INTLIBS = $(COMMONLIB)
43
44
45#
46# Macro for the post include.
47#
48ODIN32_TCOMMON_POST_INC = $(ODIN32_TCOMMON)/common.post.mk
49
Note: See TracBrowser for help on using the repository browser.