aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/dpstk/Imakefile
blob: 163534df08240ee705a60a83ced8b6e1792fe644 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
XCOMM $XFree86: xc/lib/dpstk/Imakefile,v 1.5 2000/05/23 19:32:52 dawes Exp $

#define DoNormalLib NormalLibDpsTk
#define DoSharedLib SharedLibDpsTk
#define DoExtraLib SharedLibDpsTk
#define DoDebugLib DebugLibDpsTk
#define DoProfileLib ProfileLibDpsTk
#define LibName NX_dpstk
#define SoRev SODPSTKREV
#define LibHeaders NO

#ifdef SharedDPSTKReqs
REQUIREDLIBS = SharedDPSTKReqs
#endif

        PSWRAP = PsWrap

#if HasMotif
INCLUDES = $(MOTIFINCLUDES)

MOTIFSRCS = FSBwraps.c FontSample.c FontSB.c FontCreato.c \
	CSBwraps.c ColorSB.c DSWwraps.c DPSScrollW.c
MOTIFOBJS = FSBwraps.o FontSample.o FontSB.o FontCreato.o \
	CSBwraps.o ColorSB.o DSWwraps.o DPSScrollW.o
#endif

#ifndef DefaultResourcePath
#define DefaultResourcePath NULL
#endif
RESPATH = DefaultResourcePath

#if NoStrstr
       DEFINES = -DNO_STRSTR_AVAILABLE -DDEFAULT_RESOURCE_PATH=\"${RESPATH}\"
#else
       DEFINES = -DDEFAULT_RESOURCE_PATH=\"${RESPATH}\"
#endif


DERIVED_FILES = FSBwraps.c FSBwraps.h XDPSpwraps.c XDPSpwraps.h \
	XDPSswraps.c XDPSswraps.h CSBwraps.c CSBwraps.h \
	DSWwraps.c DSWwraps.h

SRCS =  XDPSpwraps.c XDPSswraps.c XDPSshare.c XDPSpreview.c \
	XDPSuserpath.c

OBJS = 	XDPSpwraps.o XDPSswraps.o XDPSshare.o XDPSpreview.o \
	XDPSuserpath.o

#include <Library.tmpl>

.SUFFIXES: .psw

.psw.c :
	RunProgram(PSWRAP,-o $*.c -a -f $*.h -h $*.h $<)

includes:: $(SRCS)

#if HasMotif

includes:: $(MOTIFSRCS)

#if DoSharedLib
SharedDepLibraryTarget(dpstkXm,$(SODPSREV),$(MOTIFOBJS),$(MOTIFOBJS) $(MOTIFLIB) $(DPSTKLIB) $(PSRESLIB),.,.)
InstallSharedLibrary(dpstkXm,$(SODPSREV),$(USRLIBDIR))
#endif
#if DoNormalLib
#if DoSharedLib
UnsharedLibraryTarget(dpstkXm,$(MOTIFOBJS),unshared,..)
#else
NormalLibraryTarget(dpstkXm,$(MOTIFOBJS))
#endif
InstallLibrary(dpstkXm,$(USRLIBDIR))
#endif
#if DebugLibDps
DebuggedLibraryTarget(dpstkXm,$(MOTIFOBJS))
InstallLibrary(dpstkXm_d,$(USRLIBDIR))
#endif
#if ProfileLibDps
ProfiledLibraryTarget(dpstkXm,$(MOTIFOBJS))
InstallDpsProfiledLibrary(dpstkXm_p,$(USRLIBDIR))
#endif

InstallAppDefaults(FontSelect)
InstallAppDefaults(ColorSelect)
#endif /* HasMotif */

clean ::
	${RM} $(DERIVED_FILES) $(MOTIFOBJS)

DependTarget()