dtinfo subtree dtinfo
[oweals/cde.git] / cde / programs / dtinfo / dtinfo / src / UAS / Imakefile
1 XCOMM $TOG: Imakefile /main/9 1998/08/10 15:52:23 mgreess $
2 LIBNAME=UAS
3
4 #include "Classlist.mk"
5
6 #define IHaveSubdirs
7 #define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)' 'CXXDEBUGFLAGS=$(CXXDEBUGFLAGS)'
8
9 XCOMM redefine TopLevelProject to build DtInfo with standard CDE config dir
10 #undef  TopLevelProject
11 #define TopLevelProject         DtInfo
12 IMAKE_DEFINES = -DTopLevelProject=TopLevelProject \
13                 -DProjectTmplFile='<DtInfo.tmpl>' \
14                 -DProjectRulesFile='<DtInfo.rules>'
15
16 DependSubdirs($(SUBDIRS))
17
18 #ifdef UseDtSearch
19 SEARCH_SUBDIR=DtSR
20 #else
21 SEARCH_SUBDIR=Fulcrum
22 #endif
23
24 SUBDIRS= \
25 Base \
26 MMDB \
27 $(SEARCH_SUBDIR)
28
29 XCOMM Variables to switch on debug mode temporarily
30 XCOMM CDEBUGFLAGS = -g -DDEBUG
31 XCOMM CXXDEBUGFLAGS = -g -DDEBUG
32
33 make_libfiles($(LIBNAME),)
34
35 makelibT(Base)
36 makelibT(MMDB)
37 makelibT($(SEARCH_SUBDIR))
38
39 all:: libUAS.a
40
41 messages:: $(LIBNAME).msg
42
43 $(LIBNAME).msg :
44         foreach_subdirs(messages, $(MSGS))
45         @echo "### Making msgs in $(LIBNAME) ###"
46         @$(RM) $(LIBNAME).msg
47         @(messages=;                    \
48                 for i in $(MSGS) ; \
49                 do \
50                         messages="$$messages $$i/$$i.msg"; \
51                 done; \
52                 cat $$messages > $(LIBNAME).msg )
53
54 clean::
55         RemoveFiles($(LIBNAME).msg)
56
57 libUAS.a:: Base/libBase.a MMDB/libMMDB.a $(SEARCH_SUBDIR)/lib$(SEARCH_SUBDIR).a
58         $(RM) $@
59         $(LD) -r -o $@ Base/libBase.a MMDB/libMMDB.a $(SEARCH_SUBDIR)/lib$(SEARCH_SUBDIR).a
60