blob: c681186148bf6ec0ccb9c0fb174e3a14d5225ec3 [file] [log] [blame]
James E. King IIIa3a7c6c2018-12-31 17:17:34 -05001#
2# Licensed to the Apache Software Foundation (ASF) under one
3# or more contributor license agreements. See the NOTICE file
4# distributed with this work for additional information
5# regarding copyright ownership. The ASF licenses this file
6# to you under the Apache License, Version 2.0 (the
7# "License"); you may not use this file except in compliance
8# with the License. You may obtain a copy of the License at
9#
10# http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing,
13# software distributed under the License is distributed on an
14# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15# KIND, either express or implied. See the License for the
16# specific language governing permissions and limitations
17# under the License.
18#
19
20SUBDIRS = .
21
22all-local:
23 swift build --configuration release
24
25install-exec-hook:
26 swift install
27
28clean-local:
29 swift package clean
30 rm -rf .build
Hasnain Lakhani4afb7d92025-08-25 16:09:41 -070031 rm -rf FuzzTesting/.build
32 rm -rf FuzzTesting/Sources/Fuzz/*
James E. King IIIa3a7c6c2018-12-31 17:17:34 -050033
34precross:
Kino Roya9da9eb2022-10-07 23:13:01 -070035 swift build
James E. King IIIa3a7c6c2018-12-31 17:17:34 -050036
37check-local:
38 swift test
39
Hasnain Lakhani4afb7d92025-08-25 16:09:41 -070040FuzzTesting/Sources/Fuzz:
41 mkdir -p FuzzTesting/Sources/Fuzz
42
43fuzz-gen: FuzzTesting/Sources/Fuzz
44 $(top_builddir)/compiler/cpp/thrift --gen swift -r -out FuzzTesting/Sources/Fuzz $(top_srcdir)/test/FuzzTest.thrift
45
46fuzz-local: fuzz-gen
47 cd FuzzTesting && swift build --configuration release ${SWIFTFLAGS}
48
49fuzz: all-local fuzz-local
50 @echo "Built fuzzers successfully"
51
Thomas63f04582024-03-21 22:51:07 +090052distdir:
53 $(MAKE) $(AM_MAKEFLAGS) distdir-am
54
James E. King IIIa3a7c6c2018-12-31 17:17:34 -050055EXTRA_DIST = \
56 Package.swift \
57 Sources \
58 Tests \
Hasnain Lakhani4afb7d92025-08-25 16:09:41 -070059 FuzzTesting \
James E. King IIIa3a7c6c2018-12-31 17:17:34 -050060 README.md
61
62MAINTAINERCLEANFILES = \
63 Makefile \
64 Makefile.in