aboutsummaryrefslogtreecommitdiff
path: root/dist/build/cxx/rules.nmake
blob: 106915fbff9936fc350d6996266fdb47211bb0a7 (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-2017 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