Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] View of /tests/rtest/scripts/makerules_gmk.in
ViewVC logotype

View of /tests/rtest/scripts/makerules_gmk.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5064 - (download) (annotate)
Fri Jul 14 15:34:41 2017 UTC (22 months ago) by jhr
File size: 926 byte(s)
parallel target support for Makefile tests
# make definitions and rules for those regression tests that use
# a makefile to build
#

SHELL =		@SHELL@

DIDEROTC =	@DIDEROTC@
# Note: DIDEROTC_FLAGS are defined by the regression test's makefile

CC =		@CC@
CXX =		@CXX@
CXXFLAGS =	@CXXFLAGS@ 
INCLUDES =	-I@DIDEROT_ROOT@/include -I@TEEM_DIR@/include
LDFLAGS =	-L@TEEM_DIR@/lib
LIBS =		-lteem
CPPFLAGS =	@CPPFLAGS@ $(INCLUDES)


ifeq($(PARALLEL),yes)
CFLAGS +=	@PTHREAD_CFLAGS@
CXXFLAGS +=	@PTHREAD_CFLAGS@
LIBS +=		@PTHREAD_LIBS@
else
PTHREAD_FLAGS =
PTHREAD_LIBS =
endif

$(TARGET):	$(TARGET).o main.o
	$(CXX) -o $(TARGET) $(CPPFLAGS) $(LDFLAGS) main.o $(TARGET).o $(LIBS) $(PTHREAD_LIBS)

main.o:		$(TARGET).o main.c
	$(CC) -c $(CPPFLAGS) $(CFLAGS) $(PTHREADS) main.c

$(TARGET).o:	$(TARGET).diderot
	$(DIDEROTC) $(DIDEROTC_FLAGS) $(TARGET).diderot

clean:
	rm -f $(TARGET) $(TARGET).o $(TARGET).cxx $(TARGET).cl $(TARGET).log $(TARGET).h
	rm -f main.o out.nrrd out.txt

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0