# -*- Makefile -*- (for emacs)
# Models/Feynrules/python/Makefile-FR.  Generated from Makefile-FR.in by configure.
#
# Herwig 7.3.0
#
# This Makefile is intended for compiling Herwig plugins
# You can find example plugins in the Contrib directory
#
# This Makefile received very little testing, 
# any bug reports are very welcome!
#

#
# C++ flags
# 
.PRECIOUS: %.o
.PHONY: all clean

CXX = g++

CXXFLAGS = -Wall -Wextra -pedantic -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer 

# add additional package header directories here
CPPFLAGS = -I/usr/include -I/usr/include 

# add additional libraries here
LDFLAGS = 

ALLCCFILES=$(shell echo *.cc)
all : FeynrulesModel.so 
ALLOBJFILES=$(ALLCCFILES:.cc=.o)

%.so : $(ALLOBJFILES)
	$(CXX) -shared -fPIC $(CXXFLAGS) $(LDFLAGS) $^ -o $@  

%.o : %.cc
	$(CXX) -fPIC $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@

clean:
	@echo "Removing all generated files"
	@rm -f FeynrulesModel.so $(ALLOBJFILES) $(ALLCCFILES) *.h
	@rm -f *.run *.log *.out *.tex *.dot *.svg 
	@rm -f *.model *.spc *.in *.template Makefile
