• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Makefile for POWER-specific files
2# Copyright (C) 2020 Matheus Castanho <msc@linux.ibm.com>, IBM
3# Copyright (C) 2021 Mika T. Lindqvist <postmaster@raasu.org>
4# For conditions of distribution and use, see copyright notice in zlib.h
5
6CC=
7CFLAGS=
8SFLAGS=
9INCLUDES=
10SUFFIX=
11
12P8FLAGS=-mcpu=power8
13P9FLAGS=-mcpu=power9
14PPCFLAGS=-maltivec
15NOLTOFLAG=
16
17SRCDIR=.
18SRCTOP=../..
19TOPDIR=$(SRCTOP)
20
21all: power_features.o \
22     power_features.lo \
23     adler32_power8.o \
24     adler32_power8.lo \
25     adler32_vmx.o \
26     adler32_vmx.lo \
27     chunkset_power8.o \
28     chunkset_power8.lo \
29     compare256_power9.o \
30     compare256_power9.lo \
31     crc32_power8.o \
32     crc32_power8.lo \
33     slide_hash_power8.o \
34     slide_hash_power8.lo \
35     slide_hash_vmx.o \
36     slide_hash_vmx.lo
37
38power_features.o:
39	$(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $(SRCDIR)/power_features.c
40
41power_features.lo:
42	$(CC) $(SFLAGS) $(INCLUDES) -c -o $@ $(SRCDIR)/power_features.c
43
44adler32_power8.o:
45	$(CC) $(CFLAGS) $(P8FLAGS) $(NOLTOFLAG) $(INCLUDES) -c -o $@ $(SRCDIR)/adler32_power8.c
46
47adler32_power8.lo:
48	$(CC) $(SFLAGS) $(P8FLAGS) $(NOLTOFLAG) $(INCLUDES) -c -o $@ $(SRCDIR)/adler32_power8.c
49
50adler32_vmx.o:
51	$(CC) $(CFLAGS) $(PPCFLAGS) $(NOLTOFLAG) $(INCLUDES) -c -o $@ $(SRCDIR)/adler32_vmx.c
52
53adler32_vmx.lo:
54	$(CC) $(SFLAGS) $(PPCFLAGS) $(NOLTOFLAG) $(INCLUDES) -c -o $@ $(SRCDIR)/adler32_vmx.c
55
56chunkset_power8.o:
57	$(CC) $(CFLAGS) $(P8FLAGS) $(NOLTOFLAG) $(INCLUDES) -c -o $@ $(SRCDIR)/chunkset_power8.c
58
59chunkset_power8.lo:
60	$(CC) $(SFLAGS) $(P8FLAGS) $(NOLTOFLAG) $(INCLUDES) -c -o $@ $(SRCDIR)/chunkset_power8.c
61
62compare256_power9.o:
63	$(CC) $(CFLAGS) $(P9FLAGS) $(NOLTOFLAG) $(INCLUDES) -c -o $@ $(SRCDIR)/compare256_power9.c
64
65compare256_power9.lo:
66	$(CC) $(SFLAGS) $(P9FLAGS) $(NOLTOFLAG) $(INCLUDES) -c -o $@ $(SRCDIR)/compare256_power9.c
67
68crc32_power8.o:
69	$(CC) $(CFLAGS) $(P8FLAGS) $(NOLTOFLAG) $(INCLUDES) -c -o $@ $(SRCDIR)/crc32_power8.c
70
71crc32_power8.lo:
72	$(CC) $(SFLAGS) $(P8FLAGS) $(NOLTOFLAG) $(INCLUDES) -c -o $@ $(SRCDIR)/crc32_power8.c
73
74slide_hash_power8.o:
75	$(CC) $(CFLAGS) $(P8FLAGS) $(NOLTOFLAG) $(INCLUDES) -c -o $@ $(SRCDIR)/slide_hash_power8.c
76
77slide_hash_power8.lo:
78	$(CC) $(SFLAGS) $(P8FLAGS) $(NOLTOFLAG) $(INCLUDES) -c -o $@ $(SRCDIR)/slide_hash_power8.c
79
80slide_hash_vmx.o:
81	$(CC) $(CFLAGS) ${PPCFLAGS} $(NOLTOFLAG) $(INCLUDES) -c -o $@ $(SRCDIR)/slide_hash_vmx.c
82
83slide_hash_vmx.lo:
84	$(CC) $(SFLAGS) ${PPCFLAGS} $(NOLTOFLAG) $(INCLUDES) -c -o $@ $(SRCDIR)/slide_hash_vmx.c
85
86mostlyclean: clean
87clean:
88	rm -f *.o *.lo *~
89	rm -rf objs
90	rm -f *.gcda *.gcno *.gcov
91
92distclean:
93	rm -f Makefile
94