1 ##############################################################################
3 # $Id: common.mk,v 1.2 2004/09/01 05:00:35 nedko Exp $
6 # Top level Makefile for mediadatabase
9 # Nedko Arnaudov <nedko@users.sourceforge.net>
12 # GNU GENERAL PUBLIC LICENSE version 2
14 ##############################################################################
20 CC
:= $(TOOL_PREFIX
)gcc
-c
21 CXX
:= $(TOOL_PREFIX
)g
++ -c
22 LINK
:= $(TOOL_PREFIX
)gcc
23 LINK_CXX
:= $(TOOL_PREFIX
)g
++
24 GENDEP_SED_EXPR
= "s/^\\(.*\\)\\.o *: /$(subst /,\/,$(@:.d=.o)) $(subst /,\/,$@) : /g"
25 GENDEP_C
= $(TOOL_PREFIX
)set
-e
; gcc
-MM
$(CFLAGS
) $< | sed
$(GENDEP_SED_EXPR
) > $@
; [ -s
$@
] ||
rm -f
$@
26 GENDEP_CXX
= $(TOOL_PREFIX
)set
-e
; g
++ -MM
$(CXXFLAGS
) $< | sed
$(GENDEP_SED_EXPR
) > $@
; [ -s
$@
] ||
rm -f
$@
27 CCXXFLAGS
:= -D_GNU_SOURCE
28 CFLAGS
:= $(CCXXFLAGS
)
29 CXXFLAGS
:= $(CCXXFLAGS
)
31 ECHO
:= $(TOOL_PREFIX
)echo
32 RM_BEGIN
:= -$(TOOL_PREFIX
)rm
33 RM_END
:= 2>/dev
/null
; echo
-n
35 ##############################################################################
39 # !!! WARNING !!! Following lines are automatically updated by the CVS system.
42 # Revision 1.2 2004/09/01 05:00:35 nedko
43 # Use common c/c++ flags
44 # Enable libc features.
46 # Revision 1.1 2004/06/20 12:24:21 nedko
47 # Use dependency files.
48 # Use common tool variables.
50 ##############################################################################