MySQL realated stuff documented.
[mediadatabase.git] / common.mk
blobd50bfa0b72f0d74970f47f25401d903e7515e8f2
1 ##############################################################################
3 # $Id: common.mk,v 1.3 2005/02/18 21:32:26 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 -DVERSION="\"0.1+\""
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.3 2005/02/18 21:32:26 nedko
43 # Define version
45 # Revision 1.2 2004/09/01 05:00:35 nedko
46 # Use common c/c++ flags
47 # Enable libc features.
49 # Revision 1.1 2004/06/20 12:24:21 nedko
50 # Use dependency files.
51 # Use common tool variables.
53 ##############################################################################