# -*- 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 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g

# 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
