| # Makefile for POWER-specific files |
| # Copyright (C) 2020 Matheus Castanho <msc@linux.ibm.com>, IBM |
| # For conditions of distribution and use, see copyright notice in zlib.h |
| |
| CC= |
| CFLAGS= |
| SFLAGS= |
| INCLUDES= |
| SUFFIX= |
| |
| P8FLAGS=-mcpu=power8 |
| NOLTOFLAG= |
| |
| SRCDIR=. |
| SRCTOP=../.. |
| TOPDIR=$(SRCTOP) |
| |
| all: power.o \ |
| power.lo \ |
| adler32_power8.o \ |
| adler32_power8.lo \ |
| slide_hash_power8.o \ |
| slide_hash_power8.lo |
| |
| power.o: |
| $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $(SRCDIR)/power.c |
| |
| power.lo: |
| $(CC) $(SFLAGS) $(INCLUDES) -c -o $@ $(SRCDIR)/power.c |
| |
| adler32_power8.o: |
| $(CC) $(CFLAGS) $(P8FLAGS) $(NOLTOFLAG) $(INCLUDES) -c -o $@ $(SRCDIR)/adler32_power8.c |
| |
| adler32_power8.lo: |
| $(CC) $(SFLAGS) $(P8FLAGS) $(NOLTOFLAG) $(INCLUDES) -c -o $@ $(SRCDIR)/adler32_power8.c |
| |
| slide_hash_power8.o: |
| $(CC) $(CFLAGS) $(P8FLAGS) $(NOLTOFLAG) $(INCLUDES) -c -o $@ $(SRCDIR)/slide_hash_power8.c |
| |
| slide_hash_power8.lo: |
| $(CC) $(SFLAGS) $(P8FLAGS) $(NOLTOFLAG) $(INCLUDES) -c -o $@ $(SRCDIR)/slide_hash_power8.c |
| |
| mostlyclean: clean |
| clean: |
| rm -f *.o *.lo *~ |
| rm -rf objs |
| rm -f *.gcda *.gcno *.gcov |
| |
| distclean: |
| rm -f Makefile |