head 1.9; access; symbols ePerl_2_2_14:1.1.1.1 RSE:1.1.1; locks; strict; comment @# @; 1.9 date 2000.07.03.09.35.33; author rse; state Exp; branches; next 1.8; 1.8 date 2000.07.03.09.31.44; author rse; state Exp; branches; next 1.7; 1.7 date 2000.07.03.09.05.26; author rse; state Exp; branches; next 1.6; 1.6 date 2000.07.03.08.39.02; author rse; state Exp; branches; next 1.5; 1.5 date 2000.07.03.08.34.54; author rse; state Exp; branches; next 1.4; 1.4 date 99.06.12.15.16.29; author rse; state Exp; branches; next 1.3; 1.3 date 99.05.02.15.21.06; author rse; state Exp; branches; next 1.2; 1.2 date 99.05.02.15.01.13; author rse; state Exp; branches; next 1.1; 1.1 date 99.05.02.14.43.37; author rse; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 99.05.02.14.43.37; author rse; state Exp; branches; next ; desc @@ 1.9 log @*** empty log message *** @ text @## ## Makefile -- ePerl Makefile ## Copyright (c) 1996-2000 Ralf S. Engelschall, All Rights Reserved. ## @@SET_MAKE@@ # ------------------------------------------------ # DEFINITIONS # ------------------------------------------------ # imported Perl 5 parameters perl_prog = @@perl_prog@@ perl_cc = @@perl_cc@@ perl_optimize = @@perl_optimize@@ perl_ccflags = @@perl_ccflags@@ perl_ldflags = @@perl_ldflags@@ perl_libs = @@perl_libs@@ perl_dla = @@perl_dla@@ perl_ccdlflags = @@perl_ccdlflags@@ perl_cccdlflags = @@perl_cccdlflags@@ perl_archlib = @@perl_archlib@@ # compiler tools CC = $(perl_cc) CFLAGS = @@CFLAGS@@ $(perl_optimize) $(perl_ccflags) -I$(perl_archlib)/CORE -I. DLCFLAGS = @@CFLAGS@@ $(perl_optimize) $(perl_cccdlflags) $(perl_ccflags) -I$(perl_archlib)/CORE -I. LDFLAGS = @@LDFLAGS@@ $(perl_ccdlflags) $(perl_ldflags) -L$(perl_archlib)/CORE LDLIBS = $(perl_dla) -lperl $(perl_libs) AR = @@AR@@ RANLIB = @@RANLIB@@ SIZE = @@SIZE@@ debug = @@debug@@ dmalloc = @@dmalloc@@ # installation tools SHTOOL = @@SHTOOL@@ CP = cp # installation paths prefix = @@prefix@@ exec_prefix = $(prefix) bindir = $(prefix)/bin libsubdir = @@libsubdir@@ libdir = $(prefix)/lib$(libsubdir) mandir = $(prefix)/man/man1 tmpdir = @@tmpdir@@ # ------------------------------------------------ # THE RELEASE STUFF (MACROS) # ------------------------------------------------ _GETDISTINFO = \ _version=`$(SHTOOL) version -lc -dshort eperl_version.c` _BUILDDIST = \ $(SHTOOL) tarball -o $${_tarball} -d $${_distname} -u rse -g eperl \ -e 'CVS,\.cvsignore,\.configure,\.\#.*,\.[ao]$$' -c 'gzip --best' .; \ ls -l $${_tarball} _NEWVERS = \ $(SHTOOL) version -l c -n ePerl -p eperl_ $$OPT eperl_version.c; \ V=`$(SHTOOL) version -l c -d long eperl_version.c`;\ sed -e "s/Version .*(.*)/Version $$V/g" README.n && mv README.n README; \ V=`$(SHTOOL) version -l c -d short eperl_version.c`;\ sed -e "s/@@v=(\"[0-9.]*\"/@@v=(\"$$V\"/g" mod/Parse/ePerl.pm.n && mv mod/Parse/ePerl.pm.n mod/Parse/ePerl.pm; \ sed -e "s/@@v=(\"[0-9.]*\"/@@v=(\"$$V\"/g" mod/Apache/ePerl.pm.n && mv mod/Apache/ePerl.pm.n mod/Apache/ePerl.pm _UPDATEVERS = \ V=`$(SHTOOL) version -l c -d short eperl_version.c`;\ $(SHTOOL) version -l c -n ePerl -p eperl_ -s $$V eperl_version.c; \ V=`$(SHTOOL) version -l c -d long eperl_version.c`;\ sed -e "s/Version .*(.*)/Version $$V/g" README.n && mv README.n README; \ V=`$(SHTOOL) version -l c -d short eperl_version.c`;\ sed -e "s/@@v=(\"[0-9.]*\"/@@v=(\"$$V\"/g" mod/Parse/ePerl.pm.n && mv mod/Parse/ePerl.pm.n mod/Parse/ePerl.pm; \ sed -e "s/@@v=(\"[0-9.]*\"/@@v=(\"$$V\"/g" mod/Apache/ePerl.pm.n && mv mod/Apache/ePerl.pm.n mod/Apache/ePerl.pm # ------------------------------------------------ # THE DEFAULT TARGET # ------------------------------------------------ all: eperl eperl.1 # ------------------------------------------------ # THE CONFIGURATION SUPPORT # ------------------------------------------------ config: configure config_ac.h.in configure: configure.in aclocal.m4 acconfig.h rm -f configure autoconf configure.in >configure chmod 770 configure config_ac.h.in: configure.in acconfig.h rm -f config_ac.h.in autoheader configure.in >config_ac.h.in # ------------------------------------------------ # THE RELEASE STUFF (TARGETS) # ------------------------------------------------ release: distclean fixperm @@$(_GETDISTINFO); \ _distname="eperl-$${_version}"; \ _tarball="$(tmpdir)/$${_distname}.tar.gz"; \ echo "Release Distribution: ePerl Version $$_version"; \ $(_BUILDDIST); \ mv $(tmpdir)/$${_distname}.tar.gz $${_distname}.tar.gz snap: distclean fixperm @@$(_GETDISTINFO); \ _distname="eperl-$${_version}-SNAP"; \ _tarball="$(tmpdir)/$${_distname}.tar.gz"; \ echo "Snap of whole source tree: ePerl Version $$_version"; \ $(_BUILDDIST); \ mv $(tmpdir)/$${_distname}.tar.gz $${_distname}.tar.gz new-version: @@V="$(VERSION)"; \ if [ ".$$V" != . ]; then \ OPT="-s$$V"; \ else \ OPT="-e"; \ fi; \ $(_NEWVERS) update-version: $(_UPDATEVERS) # ------------------------------------------------ # THE PROGRAM # ------------------------------------------------ PROTO_SRCS = \ eperl_main.c \ eperl_perl5.c \ eperl_parse.c \ eperl_pp.c \ eperl_sys.c \ eperl_http.c \ eperl_debug.c \ eperl_config.c \ eperl_readme.c \ eperl_license.c \ eperl_logo.c \ eperl_powered.c SRCS = \ eperl_main.c \ eperl_perl5.c \ eperl_parse.c \ eperl_pp.o \ eperl_sys.c \ eperl_http.c \ eperl_getopt.c \ eperl_debug.c \ eperl_config.c \ eperl_version.c \ eperl_readme.c \ eperl_license.c \ eperl_logo.c \ eperl_powered.c OBJS = \ eperl_main.o \ eperl_perl5.o \ eperl_parse.o \ eperl_pp.o \ eperl_sys.o \ eperl_http.o \ eperl_getopt.o \ eperl_debug.o \ eperl_config.o \ eperl_version.o \ eperl_readme.o \ eperl_license.o \ eperl_logo.o \ eperl_powered.o eperl: $(OBJS) $(CC) $(LDFLAGS) -o eperl $(OBJS) $(LDLIBS) $(dmalloc) @@[ "x$(debug)" = xon ] || strip eperl eperl_main.o: eperl_main.c $(CC) $(CFLAGS) -c eperl_main.c eperl_perl5.o: eperl_perl5.c eperl_perl5_sm.h $(CC) $(CFLAGS) -c eperl_perl5.c eperl_perl5_sm.h: eperl_perl5_sm.pl $(perl_prog) eperl_perl5_sm.pl >eperl_perl5_sm.h eperl_getopt.o: eperl_getopt.c $(CC) $(CFLAGS) -c eperl_getopt.c eperl_parse.o: eperl_parse.c $(CC) $(CFLAGS) -c eperl_parse.c eperl_pp.o: eperl_pp.c $(CC) $(CFLAGS) -c eperl_pp.c eperl_sys.o: eperl_sys.c $(CC) $(CFLAGS) -c eperl_sys.c eperl_debug.o: eperl_debug.c $(CC) $(CFLAGS) -c eperl_debug.c eperl_config.o: eperl_config.c $(CC) $(CFLAGS) -c eperl_config.c eperl_http.o: eperl_http.c $(CC) $(CFLAGS) -c eperl_http.c eperl_version.o: eperl_version.c $(CC) $(CFLAGS) -c eperl_version.c eperl_readme.c: README ./etc/asc2c README eperl_readme ePerl_README eperl_readme.o: eperl_readme.c $(CC) $(CFLAGS) -c eperl_readme.c eperl_license.c: ARTISTIC COPYING (\ echo "--File: COPYING-------------------------------------"; \ cat COPYING; \ echo "--File: ARTISTIC------------------------------------"; \ cat ARTISTIC; \ ) >LICENSE ./etc/asc2c LICENSE eperl_license ePerl_LICENSE rm -f LICENSE eperl_license.o: eperl_license.c $(CC) $(CFLAGS) -c eperl_license.c eperl_logo.c: eperl_logo.gif ./etc/bin2c eperl_logo.gif eperl_logo ePerl_LOGO eperl_logo.o: eperl_logo.c $(CC) $(CFLAGS) -c eperl_logo.c eperl_powered.c: eperl_powered.gif ./etc/bin2c eperl_powered.gif eperl_powered ePerl_POWERED eperl_powered.o: eperl_powered.c $(CC) $(CFLAGS) -c eperl_powered.c mkproto: ./etc/mkproto eperl_proto.h $(PROTO_SRCS) fixperm: $(SHTOOL) fixperm * # ------------------------------------------------ # THE DOCUMENTATION # ------------------------------------------------ eperl.1: eperl.pod eperl_version.c V=`$(SHTOOL) version -l c -d short eperl_version.c`; \ sed -e "s|\@@V\@@|$$V|g" -e "s|\@@prefix\@@|$(prefix)|" $(tmpdir)/eperl.pod; \ pod2man --section=1 \ --center="Ralf S. Engelschall" \ --release="EN" \ $(tmpdir)/eperl.pod >eperl.1 && \ rm -f $(tmpdir)/eperl.pod # ------------------------------------------------ # THE SHARED LIBRARY # ------------------------------------------------ SOBJS = \ eperl_parse.so \ eperl_pp.so \ eperl_http.so \ eperl_version.so libeperl.a: $(SOBJS) $(AR) r libeperl.a $(SOBJS) $(RANLIB) libeperl.a eperl_parse.so: eperl_parse.c $(CC) $(DLCFLAGS) -o eperl_parse.o -c eperl_parse.c && mv eperl_parse.o eperl_parse.so eperl_pp.so: eperl_pp.c $(CC) $(DLCFLAGS) -o eperl_pp.o -c eperl_pp.c && mv eperl_pp.o eperl_pp.so eperl_http.so: eperl_http.c $(CC) $(DLCFLAGS) -o eperl_http.o -c eperl_http.c && mv eperl_http.o eperl_http.so eperl_version.so: eperl_version.c $(CC) $(DLCFLAGS) -o eperl_version.o -c eperl_version.c && mv eperl_version.o eperl_version.so # ------------------------------------------------ # TEST SUITE # ------------------------------------------------ check: test test: @@cd t; make test # ------------------------------------------------ # INSTALLATION # ------------------------------------------------ install: all $(SHTOOL) mkdir -f -p -m 755 $(bindir) $(SHTOOL) mkdir -f -p -m 755 $(mandir) $(SHTOOL) mkdir -f -p -m 755 $(libdir) $(SHTOOL) install -c -m 755 -c eperl $(bindir)/eperl $(SHTOOL) install -c -m 644 eperl.1 $(mandir)/eperl.1 $(SHTOOL) install -c -m 644 eg/demo.* $(libdir)/ # ------------------------------------------------ # CLEANUP # ------------------------------------------------ clean: -rm -f $(OBJS) -rm -f eperl -rm -f $(SOBJS) -rm -f libeperl.a -rm -f core *.core realclean: clean -rm -f eperl_perl5_sm.h -rm -f eperl.1 -rm -f eperl_readme.[ch] -rm -f eperl_license.[ch] distclean: -rm -f eperl_perl5_sm.h -rm -f config_ac.h config_sc.h -rm -f config.status config.cache config.log -rm -f Makefile -rm -f t/Makefile ##EOF## @ 1.8 log @*** empty log message *** @ text @a340 1 -rm -f eperl.1 eperl-*.tar.gz @ 1.7 log @*** empty log message *** @ text @d57 1 a57 1 -e 'CVS,\.cvsignore,\.configure,\.\#.*,\.[ao]$$' -c 'gzip --best' . @ 1.6 log @*** empty log message *** @ text @d46 1 a46 1 d53 1 a53 2 _version=`$(SHTOOL) version -l c -d short eperl_version.c`; \ _date=`date '+%y%m%d_%H%M'` d56 2 a57 7 echo "Creating tarball..."; \ gtar --no-recursion -cvf - `find * -depth -print | sort` | grep -v CVS | grep -v .cvsignore \ tardy --user_number=1000 --user_name=rse \ --group_number=1000 --group_name=en \ --prefix=$${_distname} - |\ gzip >$${_tarball}; \ echo "Done"; \ d82 1 a82 1 all: config eperl eperl.1 d108 1 a108 1 _tarball="/tmp/$${_distname}.tar.gz"; \ d111 1 a111 1 mv /tmp/$${_distname}.tar.gz $${_distname}.tar.gz d115 3 a117 3 _distname="eperl-$${_version}-SNAP-$${_date}"; \ _tarball="/tmp/$${_distname}.tar.gz"; \ echo "Snap of whole source tree: ePerl Version $$_version as of $${_date}"; \ d119 1 a119 1 mv /tmp/$${_distname}.tar.gz $${_distname}.tar.gz d185 1 a185 3 @@if [ "x$(debug)" = xoff ]; then \ strip eperl; \ fi d256 1 a256 1 ./etc/fixperm * d265 1 a265 1 sed -e "s|\@@V\@@|$$V|g" -e "s|\@@prefix\@@|$(prefix)|" /tmp/eperl.pod; \ d269 2 a270 2 /tmp/eperl.pod >eperl.1 && \ rm -f /tmp/eperl.pod d304 1 d333 1 a333 6 realclean: -rm -f $(OBJS) -rm -f eperl -rm -f $(SOBJS) -rm -f libeperl.a -rm -f core *.core a339 5 -rm -f $(OBJS) -rm -f eperl -rm -f $(SOBJS) -rm -f libeperl.a -rm -f core *.core d341 1 @ 1.5 log @*** empty log message *** @ text @d326 1 a326 1 $(CP) -r eg/* $(libdir)/ @ 1.4 log @*** empty log message *** @ text @d3 1 a3 1 ## Copyright (c) 1996-1999 Ralf S. Engelschall, All Rights Reserved. d67 1 a67 1 $(SHTOOL) version -l c -p ePerl $$OPT eperl_version.c; \ d76 1 a76 1 $(SHTOOL) version -l c -p ePerl -s $$V eperl_version.c; \ d128 7 a134 13 OPT=-iv; $(_NEWVERS) new-revision: OPT=-ir; $(_NEWVERS) new-patchlevel: OPT=-iP; $(_NEWVERS) new-betalevel: OPT=-ib; $(_NEWVERS) new-alphalevel: OPT=-ia; $(_NEWVERS) new-snaplevel: OPT=-is; $(_NEWVERS) new-release: OPT="-v $(R)"; $(_NEWVERS) a151 1 eperl_version.c \ a193 1 @@ls -l eperl; @@SIZE@@ eperl @ 1.3 log @*** empty log message *** @ text @d76 1 a76 1 $(SHTOOL) version -l c -p ePerl -v $$V eperl_version.c; \ d128 1 a128 2 OPT="-i v"; $(_NEWVERS) d130 1 a130 2 OPT="-i r"; $(_NEWVERS) d132 1 a132 2 OPT="-i P"; $(_NEWVERS) d134 1 a134 2 OPT="-i b"; $(_NEWVERS) d136 1 a136 2 OPT="-i a"; $(_NEWVERS) d138 1 a138 2 OPT="-i s"; $(_NEWVERS) a140 1 @ 1.2 log @*** empty log message *** @ text @d36 1 a36 4 INSTALL = @@INSTALL@@ INSTALL_PROGRAM = @@INSTALL_PROGRAM@@ INSTALL_DATA = @@INSTALL_DATA@@ MKDIR = ./etc/mkdir.sh d53 1 a53 1 _version=`./etc/newvers -lc -d eperl_version.c`; \ d58 1 a58 1 gtar --no-recursion -cvf - `find * -depth -print | sort` |\ d67 2 a68 2 ./etc/newvers -lc -p ePerl $$OPT eperl_version.c; \ V=`./etc/newvers -lc -D eperl_version.c`;\ d70 1 a70 1 V=`./etc/newvers -lc -d eperl_version.c`;\ d75 3 a77 3 V=`./etc/newvers -lc -d eperl_version.c`;\ ./etc/newvers -lc -p ePerl -r $$V eperl_version.c; \ V=`./etc/newvers -lc -D eperl_version.c`;\ d79 1 a79 1 V=`./etc/newvers -lc -d eperl_version.c`;\ d128 1 a128 1 OPT=-iv; $(_NEWVERS) d131 1 a131 1 OPT=-ir; $(_NEWVERS) d134 1 a134 1 OPT=-iP; $(_NEWVERS) d137 1 a137 1 OPT=-ib; $(_NEWVERS) d140 1 a140 1 OPT=-ia; $(_NEWVERS) d143 1 a143 1 OPT=-is; $(_NEWVERS) d146 1 a146 1 OPT=-r$(R); $(_NEWVERS) d287 1 a287 1 V=`./etc/newvers -l c -D eperl_version.c`; \ d336 5 a340 6 $(MKDIR) $(bindir) $(MKDIR) $(mandir) $(MKDIR) $(libdir) $(INSTALL_PROGRAM) eperl $(bindir)/eperl $(INSTALL_DATA) eperl.1 $(mandir)/eperl.1 $(MKDIR) $(libdir) @ 1.1 log @Initial revision @ text @d3 1 a3 1 ## Copyright (c) 1996,1997 Ralf S. Engelschall, All Rights Reserved. @ 1.1.1.1 log @Import of ePerl 2.2.14 @ text @@