https://github.com/root-project/root
Tip revision: fce093c2612c47b340464275762fca70fb553d46 authored by Fons Rademakers on 15 April 2011, 15:32:55 UTC
tag patch release v5-28-00c.
tag patch release v5-28-00c.
Tip revision: fce093c
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 $<