libglade helpers.
[mediadatabase.git] / common.mk
blob51f5f923954f3418549e7240b7c6da1a6ee8f900
1 ##############################################################################
3 # $Id: common.mk,v 1.2 2004/09/01 05:00:35 nedko Exp $
5 # DESCRIPTION:
6 # Top level Makefile for mediadatabase
8 # AUTHOR:
9 # Nedko Arnaudov <nedko@users.sourceforge.net>
11 # LICENSE:
12 # GNU GENERAL PUBLIC LICENSE version 2
14 ##############################################################################
16 ifndef VERBOSE_BUILD
17 TOOL_PREFIX := @
18 endif
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 ##############################################################################
37 # Modifications log:
39 # !!! WARNING !!! Following lines are automatically updated by the CVS system.
41 # $Log: common.mk,v $
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 ##############################################################################