File: Imakefile

package info (click to toggle)
xmhtml 1.1.7-7
  • links: PTS
  • area: main
  • in suites: woody
  • size: 6,104 kB
  • ctags: 8,347
  • sloc: ansic: 68,063; makefile: 496; sh: 161; perl: 36
file content (73 lines) | stat: -rw-r--r-- 1,857 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
XCOMM
XCOMM Imakefile for XmHTML examples
XCOMM
XCOMM (C)Copyright 1995-1997 Ripley Software Development
XCOMM All Rights Reserved
XCOMM
XCOMM This file is part of the XmHTML Widget Library.
XCOMM
XCOMM See the file LICENSE for the full copyright statement.
XCOMM

XCOMM Include the XmHTML configuration file
#include "../XmHTML.cf"

XCOMM On some systems, imake automatically includes Motif.tmpl, on others
XCOMM it doesn't.
XCOMM
#ifndef MotifDefines
#include <Motif.tmpl>
#endif

XCOMM
XCOMM Use the Debug version of libXmHTML if it exists, else use static lib.
XCOMM

#if DebugLibXmHTML
   XMHTMLLIB = $(BUILDINCTOP)/src/libXmHTML_d.a
   DEPLIB    = $(XMHTMLLIB)
#else
#if SharedLibXmHTML
   XMHTMLLIB = -L$(BUILDINCTOP)/src -lXmHTML
#else
   XMHTMLLIB = $(BUILDINCTOP)/src/libXmHTML.a
   DEPLIB    = $(XMHTMLLIB)
#endif
#endif
XCOMM    INCLUDES = -I$(BUILDINCTOP)/include $(DMALLOCINC)
     DEPLIBS = $(DEPXMLIB) $(DEPXTOOLLIB) $(DEPXLIB)

XCOMM
XCOMM Richard's http client-side library (used by example_4)
XCOMM
HTTPLIB = -L$(BUILDINCTOP)/http -lhttp

XCOMM required libraries
LOCAL_LIBS = $(XMHTMLLIB) $(XMLIB) $(XTOOLLIB) $(XLIB) $(DMALLOCLIB)

XCOMM common routines for all examples
XCOMM

MSRCS = visual.c misc.c cache.c menu.c
MOBJS = visual.o misc.o cache.o menu.o

SRCS = example_1.c example_2.c example_4.c

OBJS1 = example_1.o
OBJS2 = example_2.o $(MOBJS)
OBJS4 = example_4.o

AllTarget(example_1 example_2 example_4)

NormalProgramTarget(example_1,$(OBJS1),$(DEPLIB),$(LOCAL_LIBS),)
NormalProgramTarget(example_2,$(OBJS2),$(DEPLIB),$(LOCAL_LIBS),)
NormalProgramTarget(example_4,$(OBJS4),$(DEPLIB),$(LOCAL_LIBS) $(HTTPLIB),)
DependTarget()

XCOMM
XCOMM Special rules for creating a distribution with the barebone makefiles
XCOMM
distclean:: clean 
	$(RM) core *.out make.world *.bak *.last *.auto stamp-includes
	$(CP) Makefile.org Makefile