PAR: prototype of common PARfiles generation
[u/mrichter/AliRoot.git] / cmake / PARfiles / Makefile.in
CommitLineData
b24da1d3 1# Makefile for @PARMODULE@ -- automatically generated
2
3# From ROOT
4include Makefile.arch
5
6# Name of this module
7PAR_MODULE := @PARMODULE@
8
9# Get C++ flags from AliRoot's CMake, not ROOT -- append AliRoot/AliPhysics includes
10PAR_INCLUDES = -I. -I$(ALICE_ROOT)/include -I$(ALICE_PHYSICS)/include -I$(ROOTSYS)/include
11PAR_CXXFLAGS = @CMAKE_CXX_FLAGS@ $(PAR_INCLUDES)
12
13# Get linker flags from AliRoot's CMake, not ROOT
14PAR_SOFLAGS = @CMAKE_SHARED_LINKER_FLAGS@
15
16SRCS = $(wildcard *.cxx)
17HDRS = $(SRCS:.cxx=.h)
18DHDR = @PARMODULE@LinkDef.h
19
20SRCS += G__@PARMODULE@.cxx
21OBJS = $(SRCS:.cxx=.o)
22
23# Compile sources into objects
24%.o: %.cxx %.h
25 @CMAKE_CXX_COMPILER@ $(PAR_CXXFLAGS) -c $< -o $@
26
27# Generate library from objects
28lib@PARMODULE@.so: $(OBJS)
29 @CMAKE_LINKER@ $(PAR_SOFLAGS) $^ -o $@ $(EXPLLINKLIBS)
30
31# Generate dictionary
32G__@PARMODULE@.cxx G__@PARMODULE@.h: $(HDRS) $(DHDR)
33 rootcint -f $@ -c $(PAR_INCLUDES) $^
34
35# Delete all
36clean:
37 rm -f $(OBJS) *.so G__@PARMODULE@.*