• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Makefile for POWER-specific files
2# Copyright (C) 2020 Matheus Castanho <msc@linux.ibm.com>, IBM
3# For conditions of distribution and use, see copyright notice in zlib.h
4
5CC=
6CFLAGS=
7SFLAGS=
8INCLUDES=
9SUFFIX=
10
11SRCDIR=.
12SRCTOP=../..
13TOPDIR=$(SRCTOP)
14
15P8FLAGS=-mcpu=power8
16
17all: power.o \
18     power.lo \
19     adler32_power8.o \
20     adler32_power8.lo \
21     slide_hash_power8.o \
22     slide_hash_power8.lo
23
24power.o:
25	$(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $(SRCDIR)/power.c
26
27power.lo:
28	$(CC) $(SFLAGS) $(INCLUDES) -c -o $@ $(SRCDIR)/power.c
29
30adler32_power8.o:
31	$(CC) $(CFLAGS) $(P8FLAGS) $(INCLUDES) -c -o $@ $(SRCDIR)/adler32_power8.c
32
33adler32_power8.lo:
34	$(CC) $(SFLAGS) $(P8FLAGS) $(INCLUDES) -c -o $@ $(SRCDIR)/adler32_power8.c
35
36slide_hash_power8.o:
37	$(CC) $(CFLAGS) $(P8FLAGS) $(INCLUDES) -c -o $@ $(SRCDIR)/slide_hash_power8.c
38
39slide_hash_power8.lo:
40	$(CC) $(SFLAGS) $(P8FLAGS) $(INCLUDES) -c -o $@ $(SRCDIR)/slide_hash_power8.c
41
42mostlyclean: clean
43clean:
44	rm -f *.o *.lo *~
45	rm -rf objs
46	rm -f *.gcda *.gcno *.gcov
47
48distclean:
49	rm -f Makefile
50