aboutsummaryrefslogtreecommitdiff
path: root/dist/build/cxx/rules.nmake
blob: 1a5e89c7e4f5dca16a8192f75d02a657a9f56d65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# file      : build/cxx/rules.nmake
# copyright : Copyright (c) 2006-2011 Code Synthesis Tools CC
# license   : GNU GPL v2 + exceptions; see accompanying LICENSE file

!include $(root)\build\config.nmake

# Rules.
#
.SUFFIXES: .cxx .exe .obj

.cxx.obj:
	$(CXX) $(CPPFLAGS) $(EXTRA_CPPFLAGS) $(CXXFLAGS) /c /TP $< /Fo$@

.obj.exe:
	$(LD) $(LDFLAGS) /OUT:$@ $** $(LIBS)
!if "$(POSTLD)" != ""
	$(POSTLD) $@ $** $(LIBS)
!endif