James E. King III | a3a7c6c | 2018-12-31 17:17:34 -0500 | [diff] [blame] | 1 | # |
| 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 | |
| 20 | SUBDIRS = . |
| 21 | |
| 22 | all-local: |
| 23 | swift build --configuration release |
| 24 | |
| 25 | install-exec-hook: |
| 26 | swift install |
| 27 | |
| 28 | clean-local: |
| 29 | swift package clean |
| 30 | rm -rf .build |
Hasnain Lakhani | 4afb7d9 | 2025-08-25 16:09:41 -0700 | [diff] [blame] | 31 | rm -rf FuzzTesting/.build |
| 32 | rm -rf FuzzTesting/Sources/Fuzz/* |
James E. King III | a3a7c6c | 2018-12-31 17:17:34 -0500 | [diff] [blame] | 33 | |
| 34 | precross: |
Kino Roy | a9da9eb | 2022-10-07 23:13:01 -0700 | [diff] [blame] | 35 | swift build |
James E. King III | a3a7c6c | 2018-12-31 17:17:34 -0500 | [diff] [blame] | 36 | |
| 37 | check-local: |
| 38 | swift test |
| 39 | |
Hasnain Lakhani | 4afb7d9 | 2025-08-25 16:09:41 -0700 | [diff] [blame] | 40 | FuzzTesting/Sources/Fuzz: |
| 41 | mkdir -p FuzzTesting/Sources/Fuzz |
| 42 | |
| 43 | fuzz-gen: FuzzTesting/Sources/Fuzz |
| 44 | $(top_builddir)/compiler/cpp/thrift --gen swift -r -out FuzzTesting/Sources/Fuzz $(top_srcdir)/test/FuzzTest.thrift |
| 45 | |
| 46 | fuzz-local: fuzz-gen |
| 47 | cd FuzzTesting && swift build --configuration release ${SWIFTFLAGS} |
| 48 | |
| 49 | fuzz: all-local fuzz-local |
| 50 | @echo "Built fuzzers successfully" |
| 51 | |
Thomas | 63f0458 | 2024-03-21 22:51:07 +0900 | [diff] [blame] | 52 | distdir: |
| 53 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
| 54 | |
James E. King III | a3a7c6c | 2018-12-31 17:17:34 -0500 | [diff] [blame] | 55 | EXTRA_DIST = \ |
| 56 | Package.swift \ |
| 57 | Sources \ |
| 58 | Tests \ |
Hasnain Lakhani | 4afb7d9 | 2025-08-25 16:09:41 -0700 | [diff] [blame] | 59 | FuzzTesting \ |
James E. King III | a3a7c6c | 2018-12-31 17:17:34 -0500 | [diff] [blame] | 60 | README.md |
| 61 | |
| 62 | MAINTAINERCLEANFILES = \ |
| 63 | Makefile \ |
| 64 | Makefile.in |