#
# Automatically generated by generate-makefiles.sh -- DO NOT EDIT.
#
# Restrictions for generate-makefiles.sh apply to this file. See COPYING for
# more details.
#
# Ngie Cooper, June 2010
#

# Path variables.
top_srcdir?=		../..
subdir=			stress/signals
srcdir=			$(top_srcdir)/$(subdir)

prefix?=		/opt/ltp
exec_prefix?=		$(prefix)
INSTALL_DIR=		$(DESTDIR)/$(exec_prefix)/$(subdir)
LOGFILE?=		logfile

# Build variables
CFLAGS+=		-I$(top_srcdir)/include

# XXX: for testfrmw.c -- needs to be moved into a library.
CFLAGS+=		-I$(srcdir)

# Top-level make definitions
CFLAGS+=		-std=c99 -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -W -Wall
LDFLAGS+=		
LDLIBS+=		
# Parameters from the top level configure
CC=		microblazeel-xilinx-linux-gcc  -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare -mxl-reorder -mcpu=v11.0 -mno-xl-soft-mul -mxl-multiply-high -mno-xl-soft-div -Wl,-O1  -Wl,--as-needed                                                                       -Wdate-time 
CFLAGS+=	 -O2 -pipe -g -feliminate-unused-debug-types                                                                    
LDLIBS+=	
LDFLAGS+=	-Wl,-O1  -Wl,--as-needed                                                                     
# Submake make definitions.
CFLAGS+=		
LDFLAGS+=		
LDLIBS+=		

INSTALL_TARGETS+=	signals_sigismember_stress_1.run-test
MAKE_TARGETS+=		signals_sigismember_stress_1.run-test

all: $(MAKE_TARGETS)
	@if [ -d speculative ]; then $(MAKE) -C speculative all; fi

clean:
	rm -f $(MAKE_TARGETS) logfile* run.sh *.core
	@if [ -d speculative ]; then $(MAKE) -C speculative clean; fi

install: $(INSTALL_DIR) run.sh
	set -e; for file in $(INSTALL_TARGETS) run.sh; do	\
		if [ -f "$$file" ] ; then			\
			install -m 00755 $$file		\
				$(INSTALL_DIR)/$$file;	\
		fi;						\
	done
	@if [ -d speculative ]; then $(MAKE) -C speculative install; fi

test: run.sh
	@./run.sh

$(INSTALL_DIR):
	mkdir -p $@

run.sh:
	@echo '#!/bin/sh' > $@
	@echo "$(top_srcdir)/bin/run-tests.sh $(subdir) $(INSTALL_TARGETS)" >> $@
	@chmod +x run.sh

signals_sigismember_stress_1.run-test: $(srcdir)/sigismember_stress_1.c
	@if $(CC)  $(CFLAGS) $(LDFLAGS) -o $@ $(srcdir)/sigismember_stress_1.c $(LDLIBS) > logfile.$$$$ 2>&1; then \
		 cat logfile.$$$$; \
		 echo "$(subdir)/sigismember_stress_1 compile PASSED"; \
		 echo "$(subdir)/sigismember_stress_1 compile PASSED" >> $(LOGFILE); \
	else \
		 cat logfile.$$$$; \
		 echo "$(subdir)/sigismember_stress_1 compile FAILED; SKIPPING"; \
		(echo "$(subdir)/sigismember_stress_1 compile FAILED; SKIPPING"; cat logfile.$$$$) >> $(LOGFILE); \
	fi; \
	rm -f logfile.$$$$

