1 | XCOMM ######################################################################### |
---|
2 | XCOMM # SCCS_data: %Z% %M% %I% %E% %U% |
---|
3 | XCOMM # |
---|
4 | XCOMM # Wcl Client Template |
---|
5 | XCOMM # |
---|
6 | XCOMM # DEPLIBS, |
---|
7 | XCOMM # CLIENT_LDFLAGS, CLIENT_LIBS, DEBUG_CLIENT_LIBS, CLIENT_INCS, |
---|
8 | XCOMM # CLIENT, CLASS, SRCS, OBJS, APPDEFS |
---|
9 | XCOMM # all need to be set before including this. |
---|
10 | XCOMM # |
---|
11 | |
---|
12 | WCL_LIBS = $(WCLIB) $(XMULIB) $(XTOOLLIB) $(XLIB) |
---|
13 | DEBUG_WCL_LIBS = $(DEBUGWCLIB) $(DEBUGXMULIB) $(DEBUGXTOOLLIB) $(DEBUGXLIB) |
---|
14 | |
---|
15 | LOCAL_LDFLAGS = $(CLIENT_LDFLAGS) $(WCLDFLAG) |
---|
16 | LOCAL_LIBRARIES = $(CLIENT_LIBS) $(WCL_LIBS) |
---|
17 | DEBUG_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 | */ |
---|
29 | ComplexProgramTarget($(CLIENT)) |
---|
30 | |
---|
31 | install:: $(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 | */ |
---|
37 | install:: |
---|
38 | @if [ -d $(DESTDIR)$(XAPPLOADDIR)/$(CLIENT) ]; then set +x; \ |
---|
39 | else (set -x; $(MKDIRHIER) $(DESTDIR)$(XAPPLOADDIR)/$(CLIENT)); fi |
---|
40 | |
---|
41 | InstallMultipleDestFlags(install,$(APPDEFS),$(XAPPLOADDIR)/$(CLIENT),$(INSTAPPFLAGS)) |
---|
42 | |
---|
43 | /* Optional Uninstalled Test Program |
---|
44 | **************************************************************************** |
---|
45 | */ |
---|
46 | #ifdef UninstalledTestProgram |
---|
47 | |
---|
48 | all:: Test |
---|
49 | |
---|
50 | Test.c: $(CLIENT).c |
---|
51 | rm -f Test.c ; ln $(CLIENT).c Test.c |
---|
52 | |
---|
53 | clean:: |
---|
54 | rm -rf Test Test.o |
---|
55 | |
---|
56 | SpecialObjectRule(Test.o,Test.c,$(DEBUG_CLIENT_OPTIONS)) |
---|
57 | |
---|
58 | #ifdef NullParameter |
---|
59 | NormalProgramTarget(Test,Test.o,$(DEPLIBS),$(DEBUG_LIBRARIES),NullParameter) |
---|
60 | #else |
---|
61 | NormalProgramTarget(Test,Test.o,$(DEPLIBS),$(DEBUG_LIBRARIES),) |
---|
62 | #endif |
---|
63 | |
---|
64 | #endif /*UninstalledTestProgram*/ |
---|