File: Makefile.msc

package info (click to toggle)
pythia8 8.1.65-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 22,660 kB
  • sloc: cpp: 59,593; xml: 30,509; php: 6,649; sh: 796; makefile: 353; ansic: 33
file content (171 lines) | stat: -rw-r--r-- 5,147 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
# Makefile.msc for Pythia8 on Win32/NMAKE
# Author: Bertrand Bellenot, 02/05/2007, 04/11/2009
!IF "$(CFG)" == ""
CFG = Win32 Release
!MESSAGE No configuration specified. Defaulting to Win32 Release.
!ENDIF 

!IF "$(CFG)" != "Win32 Release" && "$(CFG)" != "Win32 Debug"
!MESSAGE Invalid configuration "$(CFG)" specified.
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE 
!MESSAGE NMAKE /f "Makefile.msc" CFG="Win32 Debug"
!MESSAGE 
!MESSAGE Possible choices for configuration are:
!MESSAGE 
!MESSAGE "Win32 Release" (based on "Win32 (x86) Static Library")
!MESSAGE "Win32 Debug" (based on "Win32 (x86) Static Library")
!MESSAGE 
!ERROR An invalid configuration is specified.
!ENDIF 

!IF "$(OS)" == "Windows_NT"
NULL=
!ELSE 
NULL=nul
!ENDIF 

OutPutOpt     = -out:

# Win32 system with Microsoft Visual C/C++
!include <win32.mak>
CC            = $(cc)
CXX           = $(cc)
CXXFLAGS      = -EHsc -nologo -GR -DWIN32 -W3 -FIiso646.h \
                -DVISUAL_CPLUSPLUS -D_WINDOWS -Iinclude
LD            = $(link)

!IF  "$(CFG)" == "Win32 Release"
CXXOPT        = -O2 -MD -DNDEBUG
LDOPT         = 
OUTDIR        = ./Release
!ELSEIF  "$(CFG)" == "Win32 Debug"
CXXOPT        = -Z7 -MDd
LDOPT         = 
OUTDIR        = ./Debug
!ENDIF 

# Check if nmake version is 8.xx or 9.xx
!if ([nmake /? 2>&1 | findstr /c:"Version 8\." > nul ] == 0) || \
    ([nmake /? 2>&1 | findstr /c:"Version 9\." > nul ] == 0)
MT_EXE        = mt -nologo -manifest $@.manifest -outputresource:$@;1
MT_DLL        = mt -nologo -manifest $@.manifest -outputresource:$@;2
EXTRAFLAGS    = -D_CRT_SECURE_NO_DEPRECATE
!else
MT_EXE        = 
MT_DLL        = 
EXTRAFLAGS    = -G5
!endif

####### Files

SRCDIR  = src
DUMDIR  = lhapdfdummy
INCDIR  = include
LIBDIR  = lib
LIBRARY = libPythia8
LIBDLL  = $(LIBDIR)/$(LIBRARY).dll
LIBLIB  = $(LIBDIR)/$(LIBRARY).lib

LDFLAGS = -lib /nologo /out:$(LIBLIB)

OBJS =   $(OUTDIR)/Analysis.obj \
         $(OUTDIR)/Basics.obj \
         $(OUTDIR)/BeamParticle.obj \
         $(OUTDIR)/BeamRemnants.obj \
         $(OUTDIR)/BeamShape.obj \
         $(OUTDIR)/BoseEinstein.obj \
         $(OUTDIR)/Event.obj \
         $(OUTDIR)/FragmentationFlavZpT.obj \
         $(OUTDIR)/FragmentationSystems.obj \
         $(OUTDIR)/HadronLevel.obj \
         $(OUTDIR)/HadronScatter.obj \
         $(OUTDIR)/HelicityBasics.obj \
         $(OUTDIR)/HelicityMatrixElements.obj \
         $(OUTDIR)/HiddenValleyFragmentation.obj \
         $(OUTDIR)/History.obj \
         $(OUTDIR)/Info.obj \
         $(OUTDIR)/LesHouches.obj \
         $(OUTDIR)/MergingHooks.obj \
         $(OUTDIR)/MiniStringFragmentation.obj \
         $(OUTDIR)/MultipartonInteractions.obj \
         $(OUTDIR)/ParticleData.obj \
         $(OUTDIR)/ParticleDecays.obj \
         $(OUTDIR)/PartonDistributions.obj \
         $(OUTDIR)/PartonLevel.obj \
         $(OUTDIR)/PartonSystems.obj \
         $(OUTDIR)/PhaseSpace.obj \
         $(OUTDIR)/ProcessContainer.obj \
         $(OUTDIR)/ProcessLevel.obj \
         $(OUTDIR)/Pythia.obj \
         $(OUTDIR)/PythiaStdlib.obj \
         $(OUTDIR)/ResonanceDecays.obj \
         $(OUTDIR)/ResonanceWidths.obj \
         $(OUTDIR)/RHadrons.obj \
         $(OUTDIR)/Settings.obj \
         $(OUTDIR)/SigmaCompositeness.obj \
         $(OUTDIR)/SigmaEW.obj \
         $(OUTDIR)/SigmaExtraDim.obj \
         $(OUTDIR)/SigmaGeneric.obj \
         $(OUTDIR)/SigmaHiggs.obj \
         $(OUTDIR)/SigmaLeftRightSym.obj \
         $(OUTDIR)/SigmaLeptoquark.obj \
         $(OUTDIR)/SigmaNewGaugeBosons.obj \
         $(OUTDIR)/SigmaOnia.obj \
         $(OUTDIR)/SigmaProcess.obj \
         $(OUTDIR)/SigmaQCD.obj \
         $(OUTDIR)/SigmaSUSY.obj \
         $(OUTDIR)/SigmaTotal.obj \
         $(OUTDIR)/SpaceShower.obj \
         $(OUTDIR)/StandardModel.obj \
         $(OUTDIR)/StringFragmentation.obj \
         $(OUTDIR)/SusyCouplings.obj \
         $(OUTDIR)/SusyLesHouches.obj \
         $(OUTDIR)/SusyResonanceWidths.obj \
         $(OUTDIR)/TauDecays.obj \
         $(OUTDIR)/TimeShower.obj \
         $(OUTDIR)/UserHooks.obj \
# If you link to HepMC you also need HepMCInterface
#         $(OUTDIR)/HepMCInterface.obj \
# If you link to LHAPDF you don't want the last line
         $(OUTDIR)/LHAPDFDummy.obj

LIBS : $(OUTDIR) $(LIBDIR) $(BINDIR) $(LIBLIB)

.PHONY: $(LIBS) all

all: $(LIBS)

"$(OUTDIR)" :
    @if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"

"$(LIBDIR)" :
    @if not exist "$(LIBDIR)/$(NULL)" mkdir "$(LIBDIR)"

$(LIBLIB) : $(OBJS)
    $(LD) $(LDFLAGS) $(LDOPT) @<<
  $(OBJS)
<<

.SUFFIXES: .h .cc .obj

{$(INCDIR)}.h{$(OUTDIR)}.obj:
    $(CXX) $(CXXFLAGS) $(EXTRAFLAGS) $(CXXOPT) /Fo"$(OUTDIR)/" -c $(SRCDIR)\$(@B).cc

{$(SRCDIR)}.cc{$(OUTDIR)}.obj:
    $(CXX) $(CXXFLAGS) $(EXTRAFLAGS) $(CXXOPT) /Fo"$(OUTDIR)/" -c $<

{$(DUMDIR)}.cc{$(OUTDIR)}.obj:
    $(CXX) $(CXXFLAGS) $(EXTRAFLAGS) $(CXXOPT) /Fo"$(OUTDIR)/" -c $<

clean:
   -@erase /q /s *.obj >nul 2>&1
   -@rmdir /q /s Debug >nul 2>&1
   -@rmdir /q /s Release >nul 2>&1

distclean:      clean
   -@erase /q "$(LIBDIR)\*.*" >nul 2>&1
   -@rmdir /q /s lib >nul 2>&1