aboutsummaryrefslogtreecommitdiff
path: root/dist/build/cxx/rules.make
blob: ad3e75564a65c668e088e32cc63b8e14af29fcb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# file      : build/cxx/rules.make
# author    : Boris Kolpackov <boris@codesynthesis.com>
# copyright : Copyright (c) 2006-2011 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)
ifneq ($(POSTLD),)
	$(POSTLD) $@ $^ $(LIBS)
endif