-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·54 lines (38 loc) · 1.2 KB
/
Copy pathMakefile
File metadata and controls
executable file
·54 lines (38 loc) · 1.2 KB
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
# Makefile for the ROOT test programs.
# This Makefile shows nicely how to compile and link applications
# using the ROOT libraries on all supported platforms.
#
# Copyright (c) 2000 Rene Brun and Fons Rademakers
#
# Author: Fons Rademakers, 29/2/2000
#ARCH = linux
ObjSuf = o
SrcSuf = C
ExeSuf =
DllSuf = so
OutPutOpt = -o
CXX = g++
CXXFLAGS = -O -Wall -fPIC -g
LD = g++
LDFLAGS =
SOFLAGS = -shared
ROOTCFLAGS := $(shell $(ROOTSYS)/bin/root-config --cflags)
ROOTLIBS := $(shell $(ROOTSYS)/bin/root-config --libs)
ROOTGLIBS := $(shell $(ROOTSYS)/bin/root-config --glibs)
CXXFLAGS += $(ROOTCFLAGS)
LIBS = $(ROOTLIBS) -lHtml -lMinuit
GLIBS = $(ROOTGLIBS) $(SYSLIBS)
#------------------------------------------------------------------------------
.SUFFIXES: .$(SrcSuf) .$(ObjSuf) .$(DllSuf)
.PHONY:
all: mixingfit
mixingfit: MixingFit.C MixingFit.h Graphics.o
$(LD) $(CXXFLAGS) $(LDFLAGS) $^ $(LIBS) $(OutPutOpt) $@
@echo "$@ done"
Graphics.o: Graphics.C MixingFit.h
$(CXX) $(CXXFLAGS) -c -o $@ $<
@echo "$@ done"
clean:
@rm -f mixingfit $(OBJS) core
.SUFFIXES: .$(SrcSuf)
###