# Bjorb # Copyright(c) 1997-1998, Hitachi Microsoftware Systems, Inc. # # $Id: Makefile.in,v 1.2 1999/02/22 04:01:20 mahara Exp $ # %EXPORT% PACKAGE=bjorb VERSION=0.5.5p1 ARCNAME=$(PACKAGE)-$(VERSION) ### Build Configuration # %INTERNAL% # # CFLAGS - compile option # # NO_SIGUSR2 - don't output debug messages when process got SIGUSR2 # NO_DEBUG - Can't output log level >= 2 # DEBUG_SSLTELNET - debug "SSL Telnet" session # NO_SYSLOG - don't use syslog #CFLAGS=-g -Wall #CFLAGS=-g @SET_MAKE@ CFLAGS = @CFLAGS@ CPPFLAGS = @CPPFLAGS@ DEFS = @DEFS@ LDFLAGS = LIBS = @LIBS@ PREFIX ?= @prefix@ exec_prefix = $(PREFIX) sbindir = $(exec_prefix)/sbin etcdir = $(exec_prefix)/etc CC = @CC@ RM = rm -rf SHELL= @SHELL@ AWK = @AWK@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ ### SSL Configuration SSLTOP = @ssltop@ SSL_CFLAGS = -I$(SSLTOP)/include SSL_LDFLAGS = -L$(SSLTOP)/lib SSL_LIBS = @ssllibs@ ### # %EXPORT% TARGET=bjorb # %INTERNAL% MYLIBS=token/libtoken.a \ util/libmsutil.a SUBDIRS=token util SRCS= Socket.cc OBJS= main.o log.o sig.o Config-staff.o Config.o cmdexec.o \ acl.o portinfo.o parse.o cmd.o portoption.o Socket.o \ bool.o servicetype.o \ $(MYLIBS) \ $(ADDOBJ) ### ALL_LDFLAGS=$(LDFLAGS) $(ADD_LDFLAGS) $(SSL_LDFLAGS) ALL_CFLAGS=$(CFLAGS) $(DEFS) $(ADD_CFLAGS) $(SSL_CFLAGS) \ -I. ALL_LIBS=$(SSL_LIBS) $(LIBS) ### all:: $(TARGET) install:: $(TARGET) $(INSTALL_PROGRAM) $(TARGET) $(sbindir)/$(TARGET) @if test ! -d $(etcdir) ; then mkdir $(etcdir); fi $(INSTALL_DATA) ../doc/sample/bjorb.conf.sample $(etcdir)/bjorb.conf.sample $(TARGET): $(OBJS) $(CXX) -o $(TARGET) $(ALL_LDFLAGS) $(OBJS) $(ALL_LIBS) debug:: $(MAKE) CFLAGS="-g -DDEBUG" clean:: -@for a in $(SUBDIRS); do \ (cd $$a && pwd && $(MAKE) $@ ); \ done $(RM) $(TARGET) *.o *.core *~ cmd.o cmd-def.h depend:: mkdep $(ALL_CFLAGS) *.c *.cc winclean:: $(RM) vc50.* win/*.aps $(OUTDIR) *.exe *.aps *.RES *.lnk *.obj $(WIN_TARGET) distclean:: clean winclean -$(RM) -rf config.cache config.log config.status *.gz \ config.h .depend Makefile t new.pem privkey.pem commit:: @(/bin/echo -n "Message: "; read x;echo x=$$x; ci -u -m"$$x" \ Makefile.in *.c *.h *.rc COPYRIGHT* INSTALL* README* ) token/libtoken.a: cd token; $(MAKE) CFLAGS="$(CFLAGS)" util/libmsutil.a: cd util; $(MAKE) CFLAGS="$(CFLAGS)" .c.o: Makefile $(CC) -c $(ALL_CFLAGS) $< .cc.o: Makefile $(CXX) -c $(ALL_CFLAGS) $< Makefile: Makefile.in CONFIG_FILES=./$@ CONFIG_HEADERS= $(SHELL) ./config.status cmd.o: cmd.cc cmd-def.h $(CXX) -c $(ALL_CFLAGS) $< cmd.cc: cmd.list gperf -aptCT -N in_word_set_cmdlist $? > $@ bool.cc:bool.list gperf -aptCT -N in_word_set_boollist $? > $@ cmd-def.h: cmd.list $(AWK) -f tools/mklist.awk cmd.list > cmd-def.h portoption.cc : portoption.list gperf -aptCT -N in_word_set_portoption $? > $@ configure: configure.in autoconf certificate:: (\ [ -f $(PREFIX)/certs/bjorb.pem ] && exit 0; \ cd $(PREFIX)/certs; \ openssl req -new -x509 -nodes -days 365 -out bjorb.pem -keyout bjorb.pem; \ ln -s bjorb.pem `openssl x509 -noout -hash < bjorb.pem`.0 ;\ chmod 644 $(PREFIX)/certs/bjorb.pem; \ ) install-bsd:: @if test -f /etc/rc.bjorb ; then chmod +w /etc/rc.bjorb; fi sed -e "s~\@ssltop\@~$(SSLTOP)~; s~\@prefix\@~$(PREFIX)~" \ ../doc/sample/bjorb.sh.in > /etc/rc.bjorb @chmod 555 /etc/rc.bjorb if test `grep -c bjorb /etc/rc.local` = 0 ; then \ echo "if test -f /etc/rc.bjorb -a -f /usr/local/etc/bjorb.conf ; then sh /etc/rc.bjorb; fi" >> /etc/rc.local; \ fi install-freebsd:: @if test -f /usr/local/etc/rc.d/bjorb.sh ; then \ chmod +w /usr/local/etc/rc.d/bjorb.sh; fi sed -e "s~\@ssltop\@~$(SSLTOP)~; s~\@prefix\@~$(PREFIX)~" \ ../doc/sample/bjorb.sh.in > /usr/local/etc/rc.d/bjorb.sh @chmod 555 /usr/local/etc/rc.d/bjorb.sh install-sunos:: @if test -f /etc/rc.bjorb ; then chmod +w /etc/rc.bjorb; fi sed -e "s~\@ssltop\@~$(SSLTOP)~; s~\@prefix\@~$(PREFIX)~" \ ../doc/sample/bjorb.sh.in > /etc/rc.bjorb @chmod 555 /etc/rc.bjorb if test `grep -c bjorb /etc/rc.local` = 0 ; then \ echo "if test -f /etc/rc.bjorb -a -f /usr/local/etc/bjorb.conf ; then sh /etc/rc.bjorb; fi" >> /etc/rc.local; \ fi install-solaris:: @if test -f /etc/rc2.d/S99bjorb ; then chmod +w /etc/rc2.d/S99bjorb; fi sed -e "s~\@ssltop\@~$(SSLTOP)~; s~\@prefix\@~$(PREFIX)~" \ ../doc/sample/bjorb.sh.in > /etc/rc2.d/S99bjorb chmod 555 /etc/rc2.d/S99bjorb install-linux:: @if test -f /etc/rc.d/rc2.d/S99bjorb ; then chmod +w /etc/rc.d/rc2.d/S99bjorb; fi sed -e "s~\@ssltop\@~$(SSLTOP)~; s~\@prefix\@~$(PREFIX)~" \ ../doc/sample/bjorb.sh.in > /etc/rc.d/rc2.d/S99bjorb chmod 555 /etc/rc.d/rc2.d/S99bjorb help:: @echo "* ----------------------------------------------------------- *" @echo "* Install Help *" @echo "* ----------------------------------------------------------- *" @echo "Do install following as:" @echo " ./configure" @echo " make clean" @echo " make all" @echo " make install" @echo @echo "For the first time of the install, do:" @echo " make certificate" @echo " then" @echo " make install-bsd" @echo " make install-freebsd" @echo " make install-solaris" @echo " make install-sunos"