Need help with flags to compile a file

Hi,
I try to compile a file with make/g++. But the file ‘Makefile.arm’ has to be tweaked for Raspberry 4 with DietPi 64bit.

Please can someone tell me how to change the flags, that the compiling process will work without a fault? I don’t find any information how to to this.

Thank you!

Flags to be changed:

CXXFLAGS=-O3 $(PROFILING) -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard -ftree-vectorize -ffast-math \
	      -std=c++0x -Wall \
	      -Wno-unused-function  -Wno-unused-variable -Wno-unused-but-set-variable \
	      -Wno-write-strings

Error-Message:

sudo make -f Makefile.arm
g++ -O3  -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard -ftree-vectorize -ffast-math -std=c++0x -Wall -Wno-unused-function                                               -Wno-unused-variable -Wno-unused-but-set-variable -Wno-write-strings    -c main.cpp
g++: error: unrecognized command-line option ‘-mfpu=crypto-neon-fp-armv8’
g++: error: unrecognized command-line option ‘-mfloat-abi=hard’

The whole ‘Makefile.arm’:

PACKAGES= librtlsdr

CXX=g++

PROFILING=
DEFINES=
PKG_INCLUDES= $(shell pkg-config --cflags $(PACKAGES))
PKG_LIBS= $(shell pkg-config --libs $(PACKAGES))

CXXFLAGS=-O3 $(PROFILING) -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard -ftree-vectorize -ffast-math \
	      -std=c++0x -Wall \
	      -Wno-unused-function  -Wno-unused-variable -Wno-unused-but-set-variable \
	      -Wno-write-strings

INCLUDES= $(PKG_INCLUDES) 

LIBS=-lm $(PKG_LIBS) -lpthread
LDFLAGS=$(PROFILING) -rdynamic

CFILES=main.cpp engine.cpp  dsp_stuff.cpp fm_demod.cpp decoder.cpp crc8.cpp \
	tfa1.cpp tfa2.cpp utils.cpp sdr.cpp whb.cpp crc32.cpp

OBJS = $(CFILES:.cpp=.o)

all: tfrec

tfrec: $(OBJS)
	 $(CXX) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)

.cpp.o:
	$(CXX) $(CXXFLAGS) $(DEFINES) $(INCLUDES) -c $<

ifneq ($(MAKECMDGOALS),clean)
include .depend
endif

.depend: Makefile
	touch .depend
	makedepend $(DEF) $(INCL)  $(CFLAGS) $(CFILES) -f .depend >/dev/null 2>&1 || /bin/true

clean :
	$(RM) $(OBJS) *~
	$(RM) tfrec
	$(RM) .depend