CC	= g++
LD	= g++

BINARIES = glissando_aux
HEADERS = functions.h distrib.h
SOURCES = glissando.cpp functions.cpp
OBJECTS  = $(SOURCES:.cpp=.o) 

CPPOPT = -Wno-deprecated `root-config --cflags` 

# description of the preprocessor parameters:
# _gauss_=1    - use Gaussian wounding profile, =0 - use the hard-sphere profile
# _files_=1    - read the nuclear distributions from external files, =0 - generate randomly
# _profile_=1  - generate the nucleon profile and NN correlation data, =0 - do not
# _weight_=1   - generate data for the NN collision (wounding) profiles and for the 
#                plot of the weight (RDS) ditributions, 0 - do not 
# _rapidity_=1 - generate the data for the rapidity distributions, =0 - do not

COPTD = -D_gauss_=0 -D_files_=0 -D_profile_=1 -D_weight_=1 -D_rapidity_=1
COPT = -c -g -O3 -w ${CPPOPT} ${COPTD}
LLIB = `root-config --libs` -L$(ROOTSYS)/lib -lm -lgcc

all:	$(BINARIES)
	rm *.o

glissando_aux: $(OBJECTS)			
	$(LD) $(LOPT) -o $(EE) glissando_aux $(OBJECTS) $(LLIB)

glissando.o: glissando.cpp functions.h distrib.h 
	$(CC) -o $@ $< $(COPT)

functions.o: functions.cpp functions.h distrib.h
	$(CC) -o $@ $< $(COPT)

