source: trunk/third/wcl/WcClient.tmpl @ 13553

Revision 13553, 1.9 KB checked in by ghudson, 25 years ago (diff)
Create install directories.
Line 
1XCOMM #########################################################################
2XCOMM # SCCS_data: %Z% %M% %I% %E% %U%
3XCOMM #
4XCOMM # Wcl Client Template
5XCOMM #
6XCOMM # DEPLIBS,
7XCOMM # CLIENT_LDFLAGS, CLIENT_LIBS, DEBUG_CLIENT_LIBS, CLIENT_INCS,
8XCOMM # CLIENT, CLASS, SRCS, OBJS, APPDEFS
9XCOMM # all need to be set before including this.
10XCOMM #
11
12       WCL_LIBS = $(WCLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
13 DEBUG_WCL_LIBS = $(DEBUGWCLIB) $(DEBUGXMULIB) $(DEBUGXTOOLLIB) $(DEBUGXLIB)
14
15  LOCAL_LDFLAGS = $(CLIENT_LDFLAGS) $(WCLDFLAG)
16LOCAL_LIBRARIES = $(CLIENT_LIBS) $(WCL_LIBS)
17DEBUG_LIBRARIES = $(DEBUG_CLIENT_LIBS) $(DEBUG_WCL_LIBS)
18
19/* Need to re-evaluate these Make variables
20*/
21    DEPENDFLAGS = $(CLIENT_INCS)
22      LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES) $(CLIENT_INCS)
23         CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES) $(CLIENT_INCS)
24      LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS) $(LOCAL_LDFLAGS) $(GLOBAL_LDFLAGS)
25
26
27/* Build and install client and man page
28*/
29ComplexProgramTarget($(CLIENT))
30
31install:: $(CLASS)
32        $(MKDIRHIER) $(DESTDIR)$(XAPPLOADDIR)
33        $(INSTALL) -c $(INSTAPPFLAGS) $(CLASS) $(DESTDIR)$(XAPPLOADDIR)/$(CLASS)
34
35/* Indigo has busted InstallMultipleDestFlags - it does not create dir!
36*/
37install::
38        @if [ -d $(DESTDIR)$(XAPPLOADDIR)/$(CLIENT) ]; then set +x; \
39        else (set -x; $(MKDIRHIER) $(DESTDIR)$(XAPPLOADDIR)/$(CLIENT)); fi
40
41InstallMultipleDestFlags(install,$(APPDEFS),$(XAPPLOADDIR)/$(CLIENT),$(INSTAPPFLAGS))
42
43/* Optional Uninstalled Test Program
44****************************************************************************
45*/
46#ifdef UninstalledTestProgram
47
48all:: Test
49
50Test.c: $(CLIENT).c
51        rm -f Test.c ; ln $(CLIENT).c Test.c
52
53clean::
54        rm -rf Test Test.o
55
56SpecialObjectRule(Test.o,Test.c,$(DEBUG_CLIENT_OPTIONS))
57
58#ifdef NullParameter
59NormalProgramTarget(Test,Test.o,$(DEPLIBS),$(DEBUG_LIBRARIES),NullParameter)
60#else
61NormalProgramTarget(Test,Test.o,$(DEPLIBS),$(DEBUG_LIBRARIES),)
62#endif
63
64#endif /*UninstalledTestProgram*/
Note: See TracBrowser for help on using the repository browser.