1. vinodm
  2. pypy

Source

pypy / pypy / module / cppyy / test / Makefile

all: example01Dict.so datatypesDict.so advancedcppDict.so stltypesDict.so

ROOTSYS := ${ROOTSYS}

ifeq ($(ROOTSYS),)
  genreflex=genreflex
  cppflags=
else
  genreflex=$(ROOTSYS)/bin/genreflex
  cppflags=-I$(ROOTSYS)/include -L$(ROOTSYS)/lib
endif

ifeq ($(shell $(genreflex) --help | grep -- --with-methptrgetter),)
  genreflexflags=
  cppflags2=-O3
else
  genreflexflags=--with-methptrgetter
  cppflags2=-Wno-pmf-conversions -O3
endif

example01Dict.so: example01.cxx example01.h
	$(genreflex) example01.h $(genreflexflags)
	g++ -o $@ example01_rflx.cpp example01.cxx -shared -lReflex $(cppflags) $(cppflags2)

datatypesDict.so: datatypes.cxx datatypes.h
	$(genreflex) datatypes.h $(genreflexflags)
	g++ -o $@ datatypes_rflx.cpp datatypes.cxx -shared -lReflex $(cppflags) $(cppflags2)

advancedcppDict.so: advancedcpp.cxx advancedcpp.h advancedcpp.xml
	$(genreflex) advancedcpp.h $(genreflexflags) --selection=advancedcpp.xml
	g++ -o $@ advancedcpp_rflx.cpp advancedcpp.cxx -shared -lReflex $(cppflags) $(cppflags2)

stltypesDict.so: stltypes.cxx stltypes.h stltypes.xml
	$(genreflex) stltypes.h --selection=stltypes.xml
	g++ -o $@ stltypes_rflx.cpp stltypes.cxx -shared -lReflex $(cppflags) $(cppflags2)