CXX=g++
C=gcc
#CFLAGS=-O3 -march=armv8-a+crypto  -lrt -ftree-vectorize   -flax-vector-conversions -mfpu=crypto-neon-fp-armv8

CFLAGS=-O3  -march=armv8-a+crypto+crc  -lrt -ftree-vectorize   -flax-vector-conversions 




OBJ = pixmap_io.o lwarm.o 

%.o: %.c 
	$(C) -c -o $@ $< $(CFLAGS)

%.o: %.cpp 
	$(CXX) -c -o $@ $< $(CFLAGS)

lwarm: $(OBJ)
	$(CXX) -o $@ $^ $(CFLAGS)

clean:
	rm -rf $(OBJ) lwarm