Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
portable version of Makefile (tested with bsdmake and GNUmake)
- Loading branch information
1 parent
002e384
commit 079fdbf
Showing
1 changed file
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,34 @@ | ||
all: | ||
@echo please use GNU make, thanks! | ||
# | ||
# american fuzzy lop++ - unsigaction | ||
# -------------------------------- | ||
# | ||
# Written by Andrea Fioraldi <andreafioraldi@gmail.com> | ||
# | ||
# Copyright 2019-2020 Andrea Fioraldi. All rights reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at: | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
.POSIX: | ||
|
||
_UNIQ=_QINU_ | ||
|
||
TARGETCANDIDATES=unsigaction32.so unsigaction64.so | ||
_TARGETS=$(_UNIQ)$(AFL_NO_X86)$(_UNIQ) | ||
__TARGETS=$(_TARGETS:$(_UNIQ)1$(_UNIQ)=) | ||
TARGETS=$(__TARGETS:$(_UNIQ)$(_UNIQ)=$(TARGETCANDIDATES)) | ||
|
||
all: $(TARGETS) | ||
@if [ "$(AFL_NO_X86)" != "" ]; then echo "[!] Note: skipping compilation of unsigaction (AFL_NO_X86 set)."; fi | ||
|
||
unsigaction32.so: | ||
@$(CC) -m32 -fPIC -shared unsigaction.c -o unsigaction32.so 2>/dev/null ; if [ "$$?" = "0" ]; then echo "unsigaction32 build success"; else echo "unsigaction32 build failure (that's fine)"; fi | ||
|
||
unsigaction64.so: | ||
$(CC) -m64 -fPIC -shared unsigaction.c -o unsigaction64.so | ||
|
||
clean: | ||
rm -f unsigaction32.so unsigaction64.so |
079fdbf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for gnu make this just results in an error:
make: *** [Makefile:28: unsigaction32.so] Error 1
and nothing is compiled