Rev 7436 | Rev 8165 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
# @configure_input@
# Buildoption reminders.
# withwimsd=@with_wimsd@
wims_home=..
PACKAGE_BUGREPORT=@PACKAGE_BUGREPORT@
PACKAGE_NAME=@PACKAGE_NAME@
PACKAGE_VERSION=@PACKAGE_VERSION@
PACKAGE_STRING=@PACKAGE_STRING@
cc=@CC@
cflags=@CFLAGS@ -Wall
LDFLAGS=@LDFLAGS@
CPPFLAGS=@CPPFLAGS@
cpp=@CPP@
defines=@DEFINES@
STRIP=@STRIP@
rpath=
libtype=static
defs=$(defines) @D_CASE_INSENSITIVE_FS@
NETLIBS=@NETLIBS@
CRYPTLIB=@CRYPTLIB@
lopt=-L$(wims_home)/lib $(NETLIBS) $(CRYPTLIB) -lwims -lm $(rpath)
wimsd=@BUILD_WIMSD@
all:: lib$(libtype) progs setupwims mkindex
# that line is for the debian package:
all-debianpkg:: lib$(libtype) progs setupwims
progs:: flydraw texgif mathml interfaces oef2wims msg2wims misc module $(wimsd) wimslogd wims
distconfig: configure.in
autoconf
autoheader
clean::
rm -f wims wims.o Common/*.o 2>/dev/null
rm -f Common/*.o
cd Wimsd; make clean
cd Wimslogd; make clean
cd Lib; make clean
cd Interfaces; make clean
cd Misc; make clean
cd OefMsg2wims; make clean
cd Flydraw; make clean
cd Texgif; make clean
cd Module; make clean
cd Mathml; make clean
# preserves some generated files in log/, sessions/ and tmp/. Intended.
distclean::
rm -f wims wims.o Common/*.o $(wims_home)/public_html/wims
rm -f ../public_html/bases/sys/defaults.conf
rm -f ../public_html/html/Changelog
rm -f ../log/classes/.teacher-cls
rm -f ../log/classes/.supervisor-supercls
rm -f ../log/classes/.supervisor-portal
rm -f ../log/classes/.teacher-supercls
rm -f ../log/classes/.teacher-portal
rm -f ../log/classes/.index
cd Wimsd; make distclean
cd Wimslogd; make distclean
cd Lib; make distclean
cd Interfaces; make distclean
cd Misc; make distclean
cd OefMsg2wims; make distclean
cd Flydraw; make distclean
cd Texgif; make distclean
cd Module; make distclean
$(wims_home)/public_html/mathfonts/clean
rm -rf autom4te.cache
rm -f config.h config.log config.status Makefile
# clean files which were installed in unusual fashions
rm -f ../bin/msg2wims
rm -f ../log/classes/.teacher-cls
rm -f ../log/classes/.supervisor-supercls
rm -f ../log/classes/.supervisor-portal
rm -f ../log/classes/.teacher-supercls
rm -f ../log/classes/.teacher-portal
rm -f ../other/bin/lceb_dynopt
rm -f ../public_html/bin/symtext
rm -f ../tmp/log/wimslogd.new
rm -f ../public_html/wims.cgi
rm -f ../log/unsecure
rm -f ../log/update-version
rm -f ../log/classes/.index
rm -f ../public_html/html/Changelog
rm -f ../public_html/scripts/help/cn/flydraw.phtml
rm -f ../public_html/scripts/help/en/flydraw.phtml
rm -f ../public_html/scripts/help/fr/flydraw.phtml
# clean files which should be removed by some other Makefile
rm -f Misc/checkmol/checkmol
rm -f Misc/lceb/lceb_dynopt
rm -f Misc/lceb/lceb_dyn
rm -f Misc/lceb/lceb_rec
rm -f Misc/lceb/lceb_bigsum
rm -f Misc/lceb/lceb_easiest
rm -f Misc/symtext/symtext
rm -f Misc/passcrypt
rm -f Flydraw/nametab.c
find . -name Makefile | xargs rm -f
find .. -name .wimshome | xargs rm -f
wims.o: *.c *.h
$(cc) $(cflags) $(CPPFLAGS) $(defs) -c wims.c
wims: wims.o Lib/libwims.o
$(cc) $(LDFLAGS) -o wims Lib/libwims.o wims.o $(lopt)
$(STRIP) wims
./wims table
setupwims:: wims wimslogd
./wims defaults > ../public_html/bases/sys/defaults.conf
cp wims ../public_html/
cp Changelog ../public_html/html
chmod a+s ../public_html/wims
rm -f ../public_html/wims.cgi ../tmp/log/wimslogd.pid ../sessions/.wimslogd
ln -s wims ../public_html/wims.cgi
../bin/update
chmod a+rx ../public_html .
wimslogd::
cd Wimslogd; make all
wimsd::
-cd Wimsd; make all
oef2wims::
cd OefMsg2wims; make oef2wims
msg2wims::
cd OefMsg2wims; make msg2wims
interfaces::
cd Interfaces; make all
misc::
cd Misc; make all
cp $(wims_home)/src/Misc/applets/WIMSchem/src/images/*.png $(wims_home)/public_html/gifs/WIMSchem/
module::
cd Module; make all
flydraw::
cd Flydraw; make all
texgif::
cd Texgif; make all
mathml::
cd Mathml; make all ; make install
libstatic::
rm -f $(wims_home)/lib/libwims.so 2>/dev/null
cd Lib; make static
maintainer::
# make fonts (need convert, Tex)
./mkmathfonts
# need convert
$(wims_home)/public_html/scripts/data/spuzzle/makepieces
$(wims_home)/public_html/scripts/data/qpuzzle/makepieces
# make icons and create icon css file (need convert, identify)
$(wims_home)/public_html/gifs/themes/mkindex
# make circuits images in gifs/symbols
$(wims_home)/public_html/scripts/data/circuits/mksymbols
cd $(wims_home)/public_html/themes ; ./mkcss.pl
install::
$(wims_home)/bin/wrapuid
mkindex::
cd $(wims_home) ; bin/mkindex