https://github.com/root-project/root
Tip revision: 3f1889057d5dd33d1d2bb50c3caed8b8f54615a4 authored by Fons Rademakers on 21 June 2011, 07:47:35 UTC
tag patch release v5-26-00f.
tag patch release v5-26-00f.
Tip revision: 3f18890
Makefile
# 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
include ../Makefile.arch
#------------------------------------------------------------------------------
ifeq ($(PLATFORM),win32)
EXTRALIBS = "$(ROOTSYS)/lib/libGuiHtml.lib" "$(ROOTSYS)/lib/libHtml.lib"
ifneq (,$(findstring $(VC_MAJOR),14 15))
MT_MANIFEST = mt -nologo -manifest $(PROGRAMS).manifest -outputresource:$(PROGRAMS)\;2
else
MT_MANIFEST =
endif
else
EXTRALIBS = -lGuiHtml -lHtml -lThread
MT_MANIFEST =
endif
RIDES := $(wildcard *.$(SrcSuf)) RIDEDict.$(SrcSuf)
RIDEO := $(RIDES:.$(SrcSuf)=.$(ObjSuf))
RIDE = RIDE$(ExeSuf)
OBJS = $(RIDEO)
PROGRAMS = $(RIDE)
.SUFFIXES: .$(SrcSuf) .$(ObjSuf) $(ExeSuf)
all: $(PROGRAMS)
$(RIDE): $(RIDEO)
$(LD) $(LDFLAGS) $^ $(GLIBS) $(EXTRALIBS) $(OutPutOpt)$@
$(MT_MANIFEST)
@echo "$@ done"
#########################################
RIDEDict.$(SrcSuf): TGRootIDE.h LinkDef.h
@echo "Generating dictionary $@..."
@rootcint -f $@ -c $^
clean:
@rm -f $(OBJS) core
distclean: clean
@rm -f $(PROGRAMS) *Dict.* *.def *.exp \
*.root *.ps *.so *.lib *.dll *.pdb *.ilk \
*.manifest *.d *.def
.SUFFIXES: .$(SrcSuf)
.$(SrcSuf).$(ObjSuf):
$(CXX) $(CXXFLAGS) -c $<