# $Id: Makefile.in,v 1.6 2003/11/14 17:25:37 markus Rel $ # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. SHELL = @SHELL@ prefix = @prefix@ exec_prefix = @exec_prefix@ top_srcdir = @top_srcdir@ top_builddir = ../.. srcdir = @srcdir@ subdir=CGP/Tests DESTDIR= libdir = @libdir@ includedir = @includedir@ AS = @AS@ CC = @CC@ CPP = @CPP@ CXX = @CXX@ CXXLD = $(CXX) MAKEINFO = @MAKEINFO@ PACKAGE = @PACKAGE@ RELEASE = @RELEASE@ VERSION = @VERSION@ SUBDIRS = . INCLUDES = -I. -I.. -I$(top_srcdir) -I$(top_srcdir)/YGP DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ CXXFLAGS = @CXXFLAGS@ CXXCOMPILE = $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LDFLAGS = @LDFLAGS@ LIBS=-ldl -lmico -L../../YGP -L../../YGP/.libs -lYGP LIBTOOL = @LIBTOOL@ # CORBACOMPILE = mico-shc++ # CORBALINK = mico-shld CORBACOMPILE = $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CORBALINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(LDFLAGS) $(LIBS) -o $@ LTCORBACOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCORBALINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ SOURCES=RFile.cpp Local.cpp Remote.cpp PROGRAMS=RFile Local Remote RFILE_OBJS=RFile.o LOCAL_OBJS=Local.o REMOTE_OBJS=Remote.o DISTFILES=$(SOURCES) Makefile.in all: Makefile $(PROGRAMS) # Settings for dependencies DEP_FILES = .deps/Local.P .deps/Remote.P .deps/RFile.P DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) -include $(DEP_FILES) .SUFFIXES: .cc .cpp .lo .o .idl .cpp.o: $(CORBACOMPILE) -c $< .cc.o: $(CORBACOMPILE) -c $< .cpp.lo: $(LTCORBACOMPILE) -c $< .cc.lo: $(LTCORBACOMPILE) -c $< %.o: %.cc $(CXXCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $< @-cp .deps/$(*F).pp .deps/$(*F).P; \ tr ' ' '\012' < .deps/$(*F).pp \ | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ >> .deps/$(*F).P; \ rm .deps/$(*F).pp %.o: %.cpp $(CORBACOMPILE) -Wp,-MD,.deps/$(*F).pp -c $< @-cp .deps/$(*F).pp .deps/$(*F).P; \ tr ' ' '\012' < .deps/$(*F).pp \ | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ >> .deps/$(*F).P; \ rm .deps/$(*F).pp %.lo: %.cpp $(LTCORBACOMPILE) -Wp,-MD,.deps/$(*F).pp -c $< @-cp .deps/$(*F).pp .deps/$(*F).P; \ tr ' ' '\012' < .deps/$(*F).pp \ | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ >> .deps/$(*F).P; \ rm .deps/$(*F).pp %.lo: %.cc $(LTCORBACOMPILE) -Wp,-MD,.deps/$(*F).pp -c $< @-cp .deps/$(*F).pp .deps/$(*F).P; \ tr ' ' '\012' < .deps/$(*F).pp \ | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ >> .deps/$(*F).P; \ rm .deps/$(*F).pp RFile.o: RFile.cpp Local.o: Local.cpp Remote.o: Remote.cpp RFile: $(RFILE_OBJS) ../CDirSrch.o ../CIDirSrch.o $(CORBALINK) $(RFILE_OBJS) ../CDirSrch.o ../CIDirSrch.o Local: $(LOCAL_OBJS) ../CDirSrch.o ../CIDirSrch.o $(CORBALINK) $(LOCAL_OBJS) ../CDirSrch.o ../CIDirSrch.o Remote: $(REMOTE_OBJS) ../CDirSrch.o ../CIDirSrch.o $(CORBALINK) $(REMOTE_OBJS) ../CDirSrch.o ../CIDirSrch.o Makefile: Makefile.in $(top_builddir)/config.status cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status clean: @list='$(PROGRAMS)'; for p in $$list; do \ if test -f "$$p"; then \ rm -f $$p; \ fi; \ done rm -f *.o *.lo core *.core; distdir: $(DISTFILES) @test -d $(distdir) || mkdir $(distdir) || exit 1; @for file in $(DISTFILES); do \ d=$(srcdir); \ if test -d $$d/$$file; then \ cp -pr $$d/$$file $(distdir)/$$file; \ else \ test -f $(distdir)/$$file \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done check: $(PROGRAMS) @failed=0; all=0; \ srcdir=$(srcdir); export srcdir; \ for tst in $(PROGRAMS); do \ if test -f $$tst; then dir=.; \ else dir="$(srcdir)"; fi; \ if $(TESTS_ENVIRONMENT) $$dir/$$tst; then \ all=`expr $$all + 1`; \ echo "PASS: $$tst"; \ elif test $$? -ne 77; then \ all=`expr $$all + 1`; \ failed=`expr $$failed + 1`; \ echo "FAIL: $$tst"; \ fi; \ done; \ if test "$$failed" -eq 0; then \ banner="All $$all tests passed"; \ else \ banner="$$failed of $$all tests failed"; \ fi; \ dashes=`echo "$$banner" | sed s/./=/g`; \ echo "$$dashes"; \ echo "$$banner"; \ echo "$$dashes"; \ test "$$failed" -eq 0 distclean-depend: -rm -rf .deps