1/*
2 * @(#)Imakefile	7.12 04/03/25
3 *
4 * Imakefile for LabelH
5 *
6 *   Written by Ti Kan
7 *   E-mail: xmcd@amb.org
8 *
9 *   See the COPYRIGHT file for information about the LabelH widget.
10 */
11
12
13/*
14 * If your local X configuration is broken, you may need to muck with
15 * the following RANLIB= lines.
16 * On most System V platforms RANLIB should be set to /bin/true.
17 * On BSD-derived systems RANLIB should be set to ranlib.
18 */
19#if defined(DoRanlibCmd) && (DoRanlibCmd == NO)
20RANLIB= /bin/true
21#endif
22
23/*
24 * C Source files
25 */
26SRCS=	LabelH.c
27
28/*
29 * Objects files
30 */
31OBJS=	LabelH.o
32
33/**** Optional defines:  Change as you see fit. *****************************
34 *
35 * -DNO_STDLIB_H
36 *	The system does not support <stdlib.h>
37 *
38 * -DNO_UNISTD_H
39 *	The system does not support <unistd.h>
40 *
41 * -DHAS_ICONV_H (Linux only)
42 *	The system has <iconv.h> and the iconv(3) library call.
43 *
44 * -DHAS_NCURSES_H (BSD/OS only)
45 *	The system has <ncurses.h> and the ncurses library.
46 *
47 * -D_IRIX6
48 *	This is a SGI IRIX 6.x system.
49 *
50 * -D_SCO5
51 *	This is a SCO Open Server Release 5 system.
52 *
53 * -DNO_LABELH
54 *	The use of the LabelH widget causes a crash on some X11R5 systems.
55 *	Add this to disable the use of the LabelH widget.
56 *
57 * All other platform-specific feature setup are in common_d/config.h
58 *
59 */
60#if defined(LinuxArchitecture)
61/* The following conditional is GNU-make specific */
62ifeq "$(wildcard /usr/include/iconv.h)" "/usr/include/iconv.h"
63DEFINES= -DHAS_ICONV_H
64endif
65#else
66#if defined(BSDOSArchitecture) || defined(__bsdi__)
67.if exists(/usr/include/ncurses.h)
68DEFINES= -DHAS_NCURSES_H
69.endif
70#else
71#if defined(SGIArchitecture) && OSMajorVersion >= 6
72DEFINES= -D_IRIX6
73#else
74#if (defined(SCOArchitecture) || defined(i386ScoArchitecture)) && \
75    (defined(i386Sco325Architecture) || OSMajorVersion >= 5)
76DEFINES= -D_SCO5
77#else	/* all others */
78DEFINES=
79#endif	/* SCO5 */
80#endif	/* IRIX6 */
81#endif	/* BSD/OS */
82#endif	/* Linux */
83
84
85
86/*
87 * POSIX threads stuff
88 */
89#if defined(OsfArchitecture) || defined(OSF1Architecture)
90THREADS_CFLAGS= -pthread
91#endif
92
93#if defined(USLArchitecture) && defined(i386Architecture)
94/* UnixWare 7, Caldera Open UNIX 8 only.  UnixWare 2.x, UnixWare 1.x,
95 * SVR4.2/386 and SVR4.0/386 please comment out the following two lines.
96 */
97THREADS_CFLAGS= -Kpthread
98#endif
99
100#if defined(SunArchitecture) && OSMajorVersion >= 5
101/* Solaris 2.5 and later */
102THREADS_DEFINES= -D_REENTRANT
103#endif
104
105#if defined(AIXArchitecture) && \
106    ((OSMajorVersion == 4 && OSMinorVersion >= 1) || OSMajorVersion > 4)
107/* AIX 4.1 and later */
108THREADS_DEFINES= -D_THREAD_SAFE=1
109#endif
110
111#if defined(HPArchitecture) && OSMajorVersion >= 11
112/* HP-UX 11.0 and later */
113THREADS_DEFINES= -D_POSIX_C_SOURCE=199506
114#endif
115
116#if defined(LinuxArchitecture) && HasPosixThreads
117/* Linux with glibc 2.1 or later */
118THREADS_DEFINES= -D_REENTRANT
119#endif
120
121#if defined(FreeBSDArchitecture) && HasPosixThreads
122/* FreeBSD 4.x and later */
123THREADS_CFLAGS= -pthread
124#endif
125
126/*
127 * Build rule for the LabelH widget
128 */
129NormalLibraryTarget(LabelH,$(OBJS))
130DependTarget()
131
132
133