Files
libfaketime/test/Makefile.am
2020-04-09 06:26:49 +02:00

24 lines
556 B
Makefile

AM_CFLAGS =-DFAKE_SLEEP -DFAKE_INTERNAL_CALLS -I../ -I../src
AM_LDFLAGS =
bin_PROGRAMS = timetest
timetest_SOURCES = timetest.c
if SOLARIS
AM_CFLAGS += -D__EXTENSIONS__ -D_XOPEN_SOURCE=600
AM_LDFLAGS += -Wl,--version-script=libfaketime.map
endif
if !MACOS
AM_CFLAGS += -std=gnu99 -Wall -Wextra -Werror -DFAKE_STAT -DFAKE_PTHREAD -DFAKE_TIMERS -DFAKE_INTERNAL_CALLS -fPIC -Wno-nonnull-compare
timetest_LDADD = -ldl -lm -lrt -lpthread
endif
test: timetest functest
@echo
@./test.sh
#
# run functional tests
functest:
./testframe.sh functests