aboutsummaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in224
1 files changed, 224 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in
new file mode 100644
index 0000000..3d72665
--- /dev/null
+++ b/Makefile.in
@@ -0,0 +1,224 @@
+#
+# Copyright (c) 1993 - 1999 CENA, Patrick Lecoanet --
+#
+# This code is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Library General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This code is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Library General Public License for more details.
+#
+# You should have received a copy of the GNU Library General Public
+# License along with this code; if not, write to the Free
+# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+#
+#
+#
+VPATH = @srcdir@
+srcdir = @srcdir@
+
+SHELL = /bin/sh
+
+CC = @CC@
+RANLIB = @RANLIB@
+
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL = @INSTALL@
+
+prefix = $(HOME)
+exec_prefix = $(prefix)
+
+bindir = $(exec_prefix)/bin/$(ARCH)
+libdir = $(exec_prefix)/lib/$(ARCH)
+incdir = $(prefix)/include
+mandir = $(prefix)/man/man3
+LDFLAGS = -L. @LDFLAGS@ @X_LIBS@ @LOCAL_X_LIBS@
+# Should be tested in configure. It doesn't work
+# on some systems.
+SHARED_LIB_CFLAGS = @sharedlib_cflags@
+SHARED_TK_LDFLAGS = @sharedlib_buildflags@
+SHARED_TK_LIBS = @X_LIBS@ @LOCAL_X_LIBS@ @XMU@ -lXext -lX11 @X_EXTRA_LIBS@ -lm
+XRADAR_VER = @XRADAR_VER@
+XRADAR_MAJOR = @XRADAR_MAJOR@
+CFLAGS = -Wall $(SHARED_LIB_CFLAGS)
+CPPFLAGS = @DEFS@ @X_CFLAGS@ $(DFLAGS) -I$(srcdir) -DBUILD_LIBRARY
+PTKCFLAGS = -DPTK -I/usr/lib/perl5/i386-linux/5.004/Tk/pTk
+
+#
+# Recognized compilation time flags are :
+#
+# PERFOS compile performance measurement code
+# PROFILE ask for profile support
+# OM include code for internal overlap manager
+# SHAPE include code for reshaping windows.
+#
+DFLAGS = -DOM -DSHAPE
+
+#
+# This set for cc under HP-UX
+#
+#
+#------- Nothing to be modified by users below this line (hopefully ;-) ) --------------------------------
+#
+TODO=Mosaic.c
+cfiles = Track.c Tabular.c Reticle.c Map.c Rectangle.c Arc.c Curve.c \
+ Item.c PostScript.c MapInfo.c Attrs.c Draw.c Geo.c List.c \
+ perfos.c version.c Transfo.c Group.c Icon.c Text.c Image.c Color.c
+tkcfiles = tkRadar.c
+omcfiles = OverlapMan.c
+hfiles = MapInfo.h List.h perfos.h patchlvl.h Types.h Transfo.h \
+ Attrs.h Item.h PostScript.h Draw.h Image.h \
+ Geo.h OverlapMan.h WidgetInfo.h Track.h
+dfiles = Copyright
+projfiles = ChangeLog mkinstalldirs
+confiles = configure configure.in acaux.m4 config.h.in Makefile.in install-sh
+afiles = $(cfiles) $(tkcfiles) $(hfiles) \
+ $(tfiles) $(dfiles) $(projfiles) $(confiles)
+rtlfiles = $(hfiles) $(tkhfiles) $(tfiles) $(dfiles) $(confiles) \
+ $(bins) $(tklibs)
+
+tkobjs = $(cfiles:%.c=tk/%.o) $(tkcfiles:%.c=tk/%.o)
+tkgobjs = $(cfiles:%.c=tk/%.g) $(tkcfiles:%.c=tk/%.g)
+tkpgobjs = $(cfiles:%.c=tk/%.pg) $(tkcfiles:%.c=tk/%.pg)
+ptkobjs = $(cfiles:%.c=ptk/%.o) $(tkcfiles:%.c=ptk/%.o)
+ptkgobjs = $(cfiles:%.c=ptk/%.g) $(tkcfiles:%.c=ptk/%.g)
+omobjs = $(omcfiles:%.c=tk/%.o)
+omgobjs = $(omcfiles:%.c=tk/%.g)
+
+tklibs = tkradar$(XRADAR_VER).$(XRADAR_MAJOR).so
+ptklibs = libptkradar$(XRADAR_VER).$(XRADAR_MAJOR).so
+
+fontbins = $(fonts:.bdf=.pcf)
+
+.SUFFIXES: .g .bdf .pcf
+
+tk/%.o: %.c
+ $(CC) $(CFLAGS) $(CPPFLAGS) -O -c $< -o $@
+tk/%.g: %.c
+ $(CC) $(CFLAGS) $(CPPFLAGS) -g -c $< -o $@
+tk/%.pg: %.c
+ $(CC) $(CFLAGS) $(CPPFLAGS) -pg -c $< -o $@
+
+ptk/%.o: %.c
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(PTKCFLAGS) -O -c $< -o $@
+ptk/%.g: %.c
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(PTKCFLAGS) -g -c $< -o $@
+
+.bdf.pcf:
+ bdftopcf $*.bdf >$*.pcf
+
+ptkradar: libptkradar$(XRADAR_VER).$(XRADAR_MAJOR).so Perl/Makefile_nodebug
+ (cd Perl; make "LD_RUN_PATH=@X_LIBS@")
+ptkradar_debug: libptkradar_debug$(XRADAR_VER).$(XRADAR_MAJOR).so Perl/Makefile_debug
+ (cd Perl; make "LD_RUN_PATH=@X_LIBS@")
+testptk: ptkradar
+ (cd Perl; make pure_install; perl -I/usr/local/lib/site_perl t/radar.pl)
+Perl/Makefile_nodebug:
+ (cd Perl; perl Makefile.PL ptkradar$(XRADAR_VER).$(XRADAR_MAJOR))
+Perl/Makefile_debug:
+ (cd Perl; perl Makefile.PL ptkradar$(XRADAR_VER).$(XRADAR_MAJOR)_debug)
+libptkradar$(XRADAR_VER).$(XRADAR_MAJOR).so: ptk $(ptkobjs) libom.so
+ $(CC) $(SHARED_TK_LDFLAGS) -o $@ $(SHARED_TK_LIBS) -L. -lom $(ptkobjs)
+libptkradar_debug$(XRADAR_VER).$(XRADAR_MAJOR).so: ptk $(ptkgobjs) libom_debug.so
+ $(CC) $(SHARED_TK_LDFLAGS) -o $@ $(SHARED_TK_LIBS) -L. -lom_debug $(ptkgobjs)
+
+tkradar: tkradar$(XRADAR_VER).$(XRADAR_MAJOR).so
+tkradar$(XRADAR_VER).$(XRADAR_MAJOR).so: tk $(tkobjs) libom.so
+ $(CC) $(SHARED_TK_LDFLAGS) -o $@ $(SHARED_TK_LIBS) -L. -lom $(tkobjs)
+tkradar_debug: tkradar_debug$(XRADAR_VER).$(XRADAR_MAJOR).so
+tkradar_debug$(XRADAR_VER).$(XRADAR_MAJOR).so: tk $(tkgobjs) libom_debug.so
+ $(CC) $(SHARED_TK_LDFLAGS) -o $@ $(SHARED_TK_LIBS) -L. -lom_debug $(tkgobjs)
+tkradar_profile: tkradar_profile.a libom.so
+ $(CC) -pg -o radarwish $(SHARED_TK_LIBS) -L. -ltcl8.0 -ltk8.0 -lom tkAppInit.c tkradar_profile.a -o radarwish
+tkradar_profile.a: tk $(tkpgobjs) libom_debug.so
+ ar rv $@ $(tkpgobjs)
+
+libom.so: tk $(omobjs)
+ $(CC) $(SHARED_TK_LDFLAGS) -o $@ $(omobjs) -lm
+libom_debug.so: tk $(omgobjs)
+ $(CC) $(SHARED_TK_LDFLAGS) -o $@ $(omgobjs) -lm
+
+tk:
+ -mkdir tk
+
+ptk:
+ -mkdir ptk
+
+doc: doc/refman.ps doc/refman.html
+
+doc/refman.html:
+ (cd doc; latex2html refman.tex)
+
+doc/refman.ps: doc/refman.tex
+ (cd doc; latex refman.tex; latex refman.tex; dvips -o refman.ps refman.dvi)
+
+install: installtk installptk installom
+
+installom: libom.so
+ $(INSTALL_DATA) libom.so $(libdir)
+
+installtk: installdirs $(tklibs)
+ $(INSTALL_DATA) $(tklibs) $(libdir)
+ cd $(libdir) && rm -f libtkradar.so
+ for f in $(hfiles); do $(INSTALL_DATA) $$f $(incdir); done
+
+installptk: $(ptklibs) Perl/Makefile_nodebug
+ $(INSTALL_DATA) $(ptklibs) $(libdir)
+ (cd Perl; make; make install_perl PREFIX=$(prefix))
+
+installdirs:
+ $(srcdir)/mkinstalldirs $(libdir) $(incdir) $(mandir)
+
+#
+#------------- Stuff for maintaining XRADAR below -----------------------------------
+#
+
+VERSION = @XRADAR_VERSION@
+
+Makefile: Makefile.in config.status
+ $(SHELL) config.status
+config.status: configure
+ $(SHELL) $(srcdir)/configure --no-create
+configure: configure.in
+ cd $(srcdir); autoconf
+config.h.in: configure.in
+ cd $(srcdir); autoheader; touch config.h.in
+
+dist: xradar$(VERSION).tar.gz
+xradar$(VERSION).tar.gz: temp/xradar$(VERSION)
+ cd temp; tar cohf ../xradar$(VERSION).tar xradar$(VERSION)
+ -rm -f xradar$(VERSION).tar.gz
+ gzip -9 xradar$(VERSION).tar
+temp/xradar$(VERSION): $(afiles)
+ -rm -rf temp/xradar$(VERSION)
+ -mkdir temp
+ mkdir temp/xradar$(VERSION)
+ cd temp/xradar$(VERSION); for f in $(afiles); do ln -s ../../$$f .; done
+
+ctags: $(hfiles) $(cfiles) $(tkcfiles) code.doc
+ etags $(hfiles) $(cfiles) $(tkcfiles) code.doc
+
+mostlyclean: distclean
+clean: distclean
+distclean: Perl/Makefile_nodebug
+ -rm -f *~ *.bak *.tar *.orig *.rej core a.out tk/*.o tk/*.g ptk/*.o ptk/*.g
+ -rm -f *.a *.so* lints tmp*
+ -rm -rf *temp
+ -rm -rf refman.aux refman.dvi refman.idx refman.lof refman.log refman.lot
+ -rm -rf refman.toc refman.ps refman.ilg refman.ind
+ (cd Perl; make clean)
+
+depend:
+ -$(CPP) $(CPPFLAGS) -MM -I. $(cfiles) $(tkcfiles) > depend.temp
+ cat depend.temp | sed -e 's/.o:/.g:/g' > depends
+ cat depend.temp >> depends
+ rm -f depend.temp
+ cat depends | sed -e 's+\(.*\):+tk/\1:+g' > depend.temp
+ rm -f depends
+ mv depend.temp depends
+
+include depends