aboutsummaryrefslogtreecommitdiff
path: root/dist/build/cxx/rules.make
blob: 6056a1203366344444c68bb9ec04dfbc18a805a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# file      : build/cxx/rules.make
# author    : Boris Kolpackov <boris@codesynthesis.com>
# copyright : Copyright (c) 2006-2010 Code Synthesis Tools CC
# license   : GNU GPL v2 + exceptions; see accompanying LICENSE file

include $(root)/build/config.make

# Rules.
#
%.o: %.cxx
	$(CXX) $(CPPFLAGS) $(EXTRA_CPPFLAGS) $(CXXFLAGS) -c $< -o $@

%: %.o
	$(LD) $(LDFLAGS) -o $@ $^ $(LIBS)