head	1.15;
access;
symbols
	ATH7_4:1.11
	ATH7_6:1.13;
locks; strict;
comment	@# @;


1.15
date	95.07.01.10.10.43;	author ghudson;	state Exp;
branches;
next	1.14;

1.14
date	95.01.30.08.39.00;	author yoav;	state Exp;
branches;
next	1.13;

1.13
date	92.10.05.15.29.48;	author miki;	state Exp;
branches;
next	1.12;

1.12
date	92.07.17.17.01.48;	author miki;	state Exp;
branches;
next	1.11;

1.11
date	92.05.07.10.12.00;	author lwvanels;	state Exp;
branches;
next	1.10;

1.10
date	92.05.01.17.09.08;	author lwvanels;	state Exp;
branches;
next	1.9;

1.9
date	91.07.11.14.29.25;	author lwvanels;	state Exp;
branches;
next	1.8;

1.8
date	91.07.10.10.28.15;	author lwvanels;	state Exp;
branches;
next	1.7;

1.7
date	91.06.30.20.20.29;	author lwvanels;	state Exp;
branches;
next	1.6;

1.6
date	91.04.23.12.46.24;	author lwvanels;	state Exp;
branches;
next	1.5;

1.5
date	91.03.13.09.33.49;	author lwvanels;	state Exp;
branches;
next	1.4;

1.4
date	91.02.28.14.40.54;	author lwvanels;	state Exp;
branches;
next	1.3;

1.3
date	91.02.22.07.49.55;	author lwvanels;	state Exp;
branches;
next	1.2;

1.2
date	91.02.11.14.28.50;	author lwvanels;	state Exp;
branches;
next	1.1;

1.1
date	90.12.19.12.33.42;	author lwvanels;	state Exp;
branches;
next	;


desc
@Imakefile for motif OLH
@


1.15
log
@Reorganize DEFINES definition to avoid exponential code replication.
Add support for defining XBITMAPS to XbitPath.
@
text
@/*
 * This file is part of the OLH system.
 *
 *	Chris Van Haren
 *      Lucien Van Elsen
 *	MIT Project Athena
 *
 * Copyright (C) 1990 by the Massachusetts Institute of Technology.
 * For copying and distribution information, see the file "mit-copyright.h".
 *
 *	$Source: /afs/sipb/project/sipb-athena/olh/motif/RCS/Imakefile,v $
 *	$Id: Imakefile,v 1.14 1995/01/30 08:39:00 yoav Exp ghudson $
 *	$Author: yoav $
 */

/*#define Profiling*/

#ifdef Profiling
LIBSUFFIX=_p
EXTRA_LOAD_FLAGS=-pg
#endif

SRCS = main.c menupath.c visual.c callbacks.c keywords.c ButtonCB.c \
	Context.c Cursor.c File.c Highlight.c Scroll.c XmListUtils.c MuMenu.c \
	GetDefault.c help.c invoke.c converters.c

OBJS = main.o menupath.o visual.o callbacks.o keywords.o ButtonCB.o \
	Context.o Cursor.o File.o Highlight.o Scroll.o XmListUtils.o MuMenu.o \
	GetDefault.o help.o invoke.o converters.o

#if DoUsageLog
LOCAL_LIBRARIES=$(MenuLib) $(LOGGERLIB)
#else
LOCAL_LIBRARIES=$(MenuLib) 
#endif

#ifdef Profiling
/* turn off prototyping in motif headers because they're broken */
PROFDEFS=-DPROFILE
.c.o:
	$(CC) -pg -c $(CFLAGS) $*.c
#endif

#ifdef XresPath
XRESDEFS=-DXRESOURCES=\"XresPath\"
#endif

#ifdef XbitPath
XBITDEFS=-DXBITMAPS=\"XbitPath\"
#endif

DEFINES= ${PROFDEFS} ${XRESDEFS} ${XBITDEFS} -D_NO_PROTO

DEPLIBS=$(LOCAL_LIBRARIES)
#if defined(SunArchitecture)
SYS_LIBRARIES=	$(ComErrLib) $(HesiodLib) $(MotifLib) $(XLibs) $(XextLib) -lm
#else
SYS_LIBRARIES=	$(ComErrLib) $(HesiodLib) $(MotifLib) $(XLibs) $(XextLib) 
#endif
INCLUDES= -I.

Olh:  Olh.cpp
	$(RM) Olh
	$(CPP) -P Olh.cpp > Olh

NormalProgramTarget(olh_motif,$(OBJS),$(DEPLIBS),$(LOCAL_LIBRARIES),$(SYS_LIBRARIES))
SaberProgramTarget(olh_motif,$(SRCS),$(OBJS),$(LOCAL_LIBRARIES),$(SYS_LIBRARIES))

DependTarget()
LintTarget()

#ifdef InstallAltLoc
InstallProgram(olh_motif,$(DESTDIR)/usr/athena/bin)
InstallNonExec(Olh,$(DESTDIR)/usr/athena/lib/X11/app-defaults)
#else
InstallProgram(olh_motif,$(DESTDIR)/usr/athena)
InstallNonExec(Olh,$(DESTDIR)/usr/lib/X11/app-defaults)
#endif

clean::
	$(RM) Olh

AllTarget(olh_motif Olh)
@


1.14
log
@added Xresources addition
@
text
@d12 2
a13 2
 *	$Id: Imakefile,v 1.13 1992/10/05 15:29:48 miki Exp yoav $
 *	$Author: miki $
d39 1
a39 5
#ifdef XresPath
DEFINES= -DPROFILE -D_NO_PROTO -DXRESOURCES=\"XresPath\"
#else
DEFINES= -DPROFILE -D_NO_PROTO
#endif
d42 2
a43 2
#else
/* turn off prototyping in motif headers because they're broken */
d45 5
a49 3
DEFINES= -D_NO_PROTO -DXRESOURCES=\"XresPath\"
#else
DEFINES= -D_NO_PROTO 
d51 2
a52 1
#endif /* Profiling */
@


1.13
log
@added lm for sun
@
text
@d11 2
a12 2
 *	$Source: /afs/rel-eng.athena.mit.edu/project/release/current/source/athena/athena.bin/olh/motif/RCS/Imakefile,v $
 *	$Id: Imakefile,v 1.12 92/07/17 17:01:48 miki Exp Locker: miki $
d39 3
d43 1
d48 5
a52 1
DEFINES= -D_NO_PROTO
@


1.12
log
@added Xext lib
@
text
@d12 2
a13 2
 *	$Id: Imakefile,v 1.11 92/05/07 10:12:00 lwvanels Exp Locker: miki $
 *	$Author: lwvanels $
d34 1
a34 1
LOCAL_LIBRARIES=$(MenuLib)
d48 5
a52 1
SYS_LIBRARIES=	$(ComErrLib) $(HesiodLib) $(MotifLib) $(XLibs) $(XextLib)
@


1.11
log
@don't use includes in /mit/motif; use local ones.
@
text
@d11 2
a12 2
 *	$Source: /source/athena/athena.bin/olh/motif/RCS/Imakefile,v $
 *	$Id: Imakefile,v 1.10 1992/05/01 17:09:08 lwvanels Exp lwvanels $
d48 1
a48 1
SYS_LIBRARIES=	$(ComErrLib) $(HesiodLib) $(MotifLib) $(XLibs) 
@


1.10
log
@motif 1.1 chagnes
[vanharen]
@
text
@d11 2
a12 2
 *	$Source: /mit/olhdev/src/motif/RCS/Imakefile,v $
 *	$Id: Imakefile,v 1.8 1992/05/01 20:47:46 lwvanels Exp $
d49 1
a49 1
INCLUDES= -I/mit/motif/include -I.
@


1.9
log
@fixed app-defaults location
@
text
@d11 2
a12 2
 *	$Source: /afs/rel-eng.athena.mit.edu/project/release/current/source/athena/athena.bin/olh/motif/RCS/Imakefile,v $
 *	$Id: Imakefile,v 1.8 91/07/10 10:28:15 lwvanels Exp Locker: lwvanels $
d25 1
a25 1
	GetDefault.c help.c invoke.c
d29 1
a29 1
	GetDefault.o help.o invoke.o
d38 2
a39 1
DEFINES= -DPROFILE
d43 2
a44 1
DEFINES=
@


1.8
log
@fixed app-defaults location
l
@
text
@d12 1
a12 1
 *	$Id: Imakefile,v 1.7 91/06/30 20:20:29 lwvanels Exp Locker: lwvanels $
d61 1
a61 1
InstallNonExec(Olh,$(DESTDIR)/usr/athena/X11/lib/app-defaults)
@


1.7
log
@fixed install rule.
@
text
@d11 2
a12 2
 *	$Source: /afs/athena.mit.edu/astaff/project/olhdev/src/motif/RCS/Imakefile,v $
 *	$Id: Imakefile,v 1.6 91/04/23 12:46:24 lwvanels Exp Locker: lwvanels $
d61 1
a61 1
InstallNonExec(Olh,$(DESTDIR)/usr/athena/lib/X11/app-defaults)
@


1.6
log
@New style logging
	  fixed includes, cleaning
@
text
@d11 2
a12 2
 *	$Source: /afs/athena.mit.edu/astaff/project/olhdev/vax/motif/RCS/Imakefile,v $
 *	$Id: Imakefile,v 1.6 91/04/23 12:33:36 lwvanels Exp Locker: lwvanels $
d49 3
a51 2
Olh.ad:  Olh.cpp
	$(CPP) -P Olh.cpp > Olh.ad
d59 8
d68 1
a68 1
	$(RM) Olh.ad
d70 1
a70 1
AllTarget(olh_motif Olh.ad)
@


1.5
log
@ifdef's for LOGGING
@
text
@d12 1
a12 1
 *	$Id: Imakefile,v 1.4 91/02/28 14:40:54 lwvanels Exp Locker: lwvanels $
a16 2
/*#define NoGCC*/
/*#define Logging*/
a22 4
#ifdef NoGCC
CC=/bin/cc
#endif		/* NoGCC */

d31 3
d35 1
a36 1

d38 1
a38 1
P_DEFINES= -DPROFILE
d42 1
a42 1
P_DEFINES=
a44 8
#ifdef Logging
L_DEFINES= -DLOGGING
#else
L_DEFINES=
#endif /* Logging */

DEFINES = $(P_DEFINES) $(L_DEFINES)

d47 1
a47 1
INCLUDES= -I. -I$(INCROOT) -I/mit/motif/include
d57 3
@


1.4
log
@added new files (File.c & invoke.c); olh_motif does not depend on Olh.ad
@
text
@d12 1
a12 1
 *	$Id: Imakefile,v 1.3 91/02/22 07:49:55 lwvanels Exp Locker: lwvanels $
d18 1
d39 1
d41 1
a41 1
DEFINES= -DPROFILE
d45 1
a45 1
DEFINES=
d47 8
@


1.3
log
@Added help.c
@
text
@d12 1
a12 1
 *	$Id: Imakefile,v 1.2 91/02/11 14:28:50 lwvanels Exp Locker: lwvanels $
d29 2
a30 2
	Context.c Cursor.c Highlight.c Scroll.c XmListUtils.c MuMenu.c \
	GetDefault.c help.c
d33 2
a34 2
	Context.o Cursor.o Highlight.o Scroll.o XmListUtils.o MuMenu.o \
	GetDefault.o help.o
d46 1
a46 1
DEPLIBS=$(LOCAL_LIBRARIES) Olh.ad
d59 1
a59 1
AllTarget(olh_motif)
@


1.2
log
@ Added hesiod library
@
text
@d12 1
a12 1
 *	$Id: Imakefile,v 1.1 90/12/19 12:33:42 lwvanels Exp Locker: lwvanels $
d30 1
a30 1
	GetDefault.c
d34 1
a34 1
	GetDefault.o
@


1.1
log
@Initial revision
@
text
@d11 3
a13 3
 *	$Source: $
 *	$Id: $
 *	$Author: $
d47 1
a47 1
SYS_LIBRARIES=	$(ComErrLib) $(MotifLib) $(XLibs)
@
