CMsgRootMakefile

From GlueXWiki
Revision as of 14:07, 26 June 2009 by Wolin (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

ROOTCFLAGS    = $(shell root-config --cflags)
ROOTLIBS      = $(shell root-config --libs)
ROOTGLIBS     = $(shell root-config --glibs)


CMSGINC  = -I/group/da/ejw/coda/include
CMSGLIBS = -L/group/da/ejw/coda/Linux-i686/lib -lcmsgxx -lcmsg -lcmsgRegex

LIBS    = -lrt


all: hproducer hconsumer



hproducer.o: hproducer.cc 
        $(CXX) $(CXXFLAGS) -c -g hproducer.cc $(ROOTCFLAGS) $(CMSGINC)


hproducer: hproducer.o
        $(CXX) -o hproducer hproducer.o $(ROOTGLIBS) $(CMSGLIBS) $(LIBS)



hconsumer.o: hconsumer.cc 
        $(CXX) $(CXXFLAGS) -c -g hconsumer.cc $(ROOTCFLAGS) $(CMSGINC)


hconsumer: hconsumer.o
        $(CXX) -o hconsumer hconsumer.o $(ROOTGLIBS) $(CMSGLIBS) $(LIBS)