forked from oxagast/ansvif
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
40 lines (40 loc) · 1.61 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS}
#SUBDIRS = tests
if WITH_SYSCALLS
bin_PROGRAMS = ansvif find_suid faulty syscalls
else
bin_PROGRAMS = ansvif find_suid faulty
endif
noinst_LIBRARIES = libgzstream.a
libgzstream_a_SOURCES = include/gzstream/gzstream.h include/gzstream/gzstream.C
ansvif_SOURCES = src/common.cpp src/bin2hex.cpp src/popen2.cpp src/main.cpp src/help.cpp src/match_seg.cpp src/sys_string.cpp src/man_read.cpp src/trash.cpp src/randomizer.cpp include/gzstream/gzstream.h include/xmlwriter/xml_writer.hpp src/main.h
if OS_IS_REDHAT
ansvif_LDADD = -lgzstream -lcryptopp -lstdc++ -lpthread -lz -L.
ansvif_CPPFLAGS = -O3 -D __REDHAT -Wall
ansvif_LDFLAGS = -I./include/gzstream -I./include/xml_writer -I./src/linux
endif
if OS_IS_DEBIAN
ansvif_LDADD = -lgzstream -lcrypto++ -lstdc++ -lpthread -lz -L.
ansvif_CPPFLAGS = -O3 -D __DEBIAN -Wall
ansvif_LDFLAGS = -I./include/gzstream -I./include/xml_writer -I./src/linux
endif
if OS_IS_UNKNOWN
ansvif_LDADD = -lstdc++ -lz -L.
ansvif_LDFLAGS = -I./include/gzstream -I./include/xml_writer -I./src/linux -pthread
ansvif_CPPFLAGS = -O3 -D __DEBIAN -Wl,--no-as-needed
endif
find_suid_SOURCES = src/linux/find_suid.cpp
faulty_SOURCES = src/faulty.c
faulty_CFLAGS = -ansi -fno-stack-protector
if WITH_SYSCALLS
syscalls_SOURCES = src/linux/syscalls.cpp
syscalls_CPPFLAGS = -ansi -Wno-unused-result -Wno-nonnull
endif
ansvifdir = bin
check: all
./ansvif -t examples/space.txt -c ./faulty -b 32 -o checkfaulty && rm checkfaulty.*
@echo "*** CHECK 1 PASSED ***"
./ansvif -t examples/space.txt -c ./faulty -b 32
@echo "*** CHECK 2 PASSED ***"
@echo "*** ALL TESTS PASSED ***"