1 XCOMM $XConsortium: Imakefile /main/3 1995/11/08 09:24:32 rswiston $
9 HELPTAGSRC = $(HELPTAG)/helptag
10 HELPPARSERSRC = $(HELPTAG)/parser
11 HELPELTDEFSRC = $(HELPTAG)/eltdef
12 HELPDTDFILE = $(HELPTAGSRC)/hptag.dtd
13 HELPUTILSRC = $(HELPTAG)/util
14 HELPBUILDSRC = $(HELPTAG)/build
15 HELPUTILLIB = $(HELPTAG)/util/libutil.a
17 INCLUDES = -I. -I$(HELPUTILSRC)
20 build.c buildutl.c eltree.c except.c fsa.c out.c param.c \
24 build.o buildutl.o eltree.o except.o fsa.o out.o param.o \
27 CHPRODS = context.h delim.h
30 BHPRODS = arc.h dtd.h entity.h
33 CTRASH = error delim.dat
34 BTRASH = error template
36 CPRODS = $(CHPRODS) $(CCPRODS)
37 BPRODS = $(BHPRODS) $(BCPRODS)
38 TRASH = error delim.dat template
40 PRODUCTS = $(CPRODS) $(BPRODS)
42 LOCAL_LIBRARIES = $(HELPUTILLIB)
44 /* Don't use shared libs for hp */
46 #if OSMajorVersion > 7
47 EXTRA_LOAD_FLAGS = -Wl,-a archive
51 #ifdef SunArchitecture
57 $(BPRODS): build $(HELPDTDFILE)
58 $(RM) $(BPRODS) $(BTRASH)
59 ./build -m < $(HELPDTDFILE)
61 NormalLibraryObjectRule()
62 NormalProgramTarget(build,$(OBJS),delim.h $(LOCAL_LIBRARIES),$(LOCAL_LIBRARIES),)
64 $(CPRODS): $(HELPUTILSRC)/context $(HELPTAGSRC)/delim.bld context.dat
65 $(RM) $(CPRODS) $(CTRASH)
66 /* get application-specific delim.dat */
67 $(CP) $(HELPTAGSRC)/delim.bld delim.dat
68 $(HELPUTILSRC)/context sparse
70 $(HELPUTILSRC)/context:
71 cd $(HELPUTILSRC); make context
75 if exist util.arc $(CP) build.arc old.arc
76 $(ARCCMD) util.arc *.c *.h makefile
82 $(RM) $(PRODUCTS) $(TRASH)
87 includes:: $(PRODUCTS)