home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
r
/
ril.zip
/
Imakefile
next >
Wrap
Makefile
|
1992-09-08
|
3KB
|
106 lines
/*
* -*- Mode: Fundamental -*-
* Imakefile
*
* Description : Imakefile for ril.
*
* Author : Roger Reynolds
* Created On : Wed Jun 17 12:00:10 1992
*
****************************************************************************
* Copyright 1992 Roger Reynolds
*
* All Rights Reserved
*
* Permission to use, copy, and modify this software and its
* documentation for any purpose and without fee is hereby granted,
* provided that the above copyright notice appear in all copies and that
* both that copyright notice and this permission notice appear in
* supporting documentation.
*
* This software is provided as-is and without any warranty of any kind.
*
*****************************************************************************
*
*/
/* Where to install libril.a */
LIBDEST = /usr/lib
LIBDEST = $(LIBDIR)
/* Where to install programs */
BINDEST = /usr/bin/X11
BINDEST = $(BINDIR)
/* Where to install include files */
INCDEST = /usr/include/X11
INCDEST = $(INCDIR)
/* Where to install .ril files for demos */
RILDEST = /usr/lib/X11/Ril
RILDEST = $(LIBDIR)/app-defaults/Ril
/* Where do you find libtcl.a */
TCLDIR = ../tcl
CDEBUGFLAGS=-g
#ifdef ProjectRoot
INCLUDES = -I. -DPROJECTROOT='"$(PROJECTROOT)"'
#else
INCLUDES = -I. -DPROJECTROOT='"/usr"'
#endif
HEADERS = ril.h $(TCLDIR)/tcl.h
SRCS = ril.c
OBJS = ril.o
all: libril.a ril ril2ad
@- echo "make all done"
World: clean Makefile depend libril.a ril ril2ad
@- echo "make World done"
$(TCLDIR)/libtcl.a:
cd $(TCLDIR); make libtcl.a
libril.a: $(OBJS) $(TCLDIR)/libtcl.a
cp $(TCLDIR)/libtcl.a libril.a
ar clq libril.a $(OBJS)
$(RANLIB) libril.a
install:: libril.a
$(INSTALL) -c $(INSTINCFLAGS) $(HEADERS) $(INCDEST)
$(INSTALL) -c $(INSTLIBFLAGS) libril.a $(LIBDEST)/libril.a
$(RANLIB) $(RANLIBINSTFLAGS) $(LIBDEST)/libril.a
NormalLibraryObjectRule()
DependTarget()
ril: libril.a ril_main.o
$(CC) $(LDOPTIONS) -o $@ ril_main.o libril.a -lWc -lXmp -lXm -lXt -lX11
ril2ad: libril.a ril2ad.o
$(CC) $(INCLUDES) -o $@ ril2ad.o libril.a -lXt -lX11
install:: ril ril2ad
$(INSTALL) -c $(INSTBINFLAGS) ril $(BINDEST)
$(INSTALL) -c $(INSTBINFLAGS) ril2ad $(BINDEST)
mkdir -p $(RILDEST); $(INSTALL) -c $(INSTINCFLAGS) $(RIL)
clean::
rm -rf ril2ad ril
clean_all::
cd $(TCLDIR); make clean
rm -rf ril2ad ril
/* Generic rule for "making" an app-defaults file from a .ril file */
.SUFFIXES: .ril
.SUFFIXES: .ad
.ril.ad:
ril2ad $? > $@