Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / programs / dthelp / parser / pass2 / build / Imakefile
1 XCOMM $XConsortium: Imakefile /main/3 1995/11/08 10:41:11 rswiston $
2 /* build Imakefile */
3
4 HTAG2        = ..
5 HTAG2SRC     = $(HTAG2)/htag2
6 SDLPARSERSRC = $(HTAG2)/parser
7 SDLELTDEFSRC = $(HTAG2)/eltdef
8 SDLDTDFILE   = $(HTAG2SRC)/sdl.dtd
9 SDLUTILSRC   = $(HTAG2)/util
10 SDLBUILDSRC  = $(HTAG2)/build
11 SDLUTILLIB   = $(HTAG2)/util/libutil.a
12
13 INCLUDES = -I. -I$(SDLUTILSRC)
14
15 SRCS = \
16         build.c buildutl.c eltree.c except.c fsa.c out.c param.c \
17         scan.c sref.c tree.c
18
19 OBJS = \
20         build.o buildutl.o eltree.o except.o fsa.o out.o param.o \
21         scan.o sref.o tree.o
22
23 CHPRODS = context.h delim.h
24 CCPRODS = case.c
25
26 BHPRODS = dtd.h entity.h arc.h
27 BCPRODS =
28
29 CTRASH  = error delim.dat
30 BTRASH  = error template
31
32 CPRODS  = $(CHPRODS) $(CCPRODS)
33 BPRODS  = $(BHPRODS) $(BCPRODS)
34 TRASH   = error delim.dat template
35
36 PRODUCTS = $(CPRODS) $(BPRODS)
37
38 LOCAL_LIBRARIES = $(SDLUTILLIB)
39
40 /* Don't use shared libs for hp */
41 #ifdef HPArchitecture
42 #if OSMajorVersion > 7
43 EXTRA_LOAD_FLAGS = -Wl,-a archive
44 #endif
45 #endif
46
47 #ifdef SunArchitecture
48 .NO_PARALLEL:
49 #endif
50
51 all:: $(PRODUCTS)
52
53 $(BPRODS): build $(SDLDTDFILE)
54         $(RM) $(BPRODS) $(BTRASH)
55         ./build < $(SDLDTDFILE)
56
57 NormalLibraryObjectRule()
58 NormalProgramTarget(build,$(OBJS),delim.h $(LOCAL_LIBRARIES),$(LOCAL_LIBRARIES),)
59
60 $(CPRODS):  $(SDLUTILSRC)/context $(HTAG2SRC)/delim.bld context.dat
61         $(RM) $(CPRODS) $(CTRASH)
62         /* get application-specific delim.dat */
63         $(CP) $(HTAG2SRC)/delim.bld delim.dat
64         $(SDLUTILSRC)/context sparse
65
66 $(SDLUTILSRC)/context:
67         cd $(SDLUTILSRC); make context
68
69 clean::
70         $(RM) $(PRODUCTS) $(TRASH)
71
72 depend:: $(SRCS)
73 DependTarget()
74
75 includes:: $(PRODUCTS)