File: Imakefile

package info (click to toggle)
libforms1 1.0-7
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 6,648 kB
  • ctags: 14,351
  • sloc: ansic: 90,441; makefile: 9,902; sh: 8
file content (104 lines) | stat: -rw-r--r-- 2,005 bytes parent folder | download | duplicates (3)
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
92
93
94
95
96
97
98
99
100
101
102
103
104
#define DoNormalLib YES
#define DoSharedLib BuildShared

#define LibName formssnp

SRCS		= \
		  strtod.c \
		  snprintf.c

HEADERS		= formssnp.h
LIBNAME		= LibName
XFORMSLIBREV	= XFormsLibRev
#if InstallNonstandard
XFORMSLIBDIR	= XFormsNonstandardInstallDir
#else
XFORMSLIBDIR	= $(DESTDIR)$(INCDIR)/X11
#endif

#		Wrong Way!  Go Back!

#if Debug
OPTFLAG	=
#else
OPTFLAG	= -O3 
#endif

OBJS	= $(SRCS:.c=.o)

EXTRA_INCLUDES	= 

#if !HaveFloatH
BADFLOAT	= -DBad_float_h
#endif

EXTRA_DEFINES	= \
		  $(BADFLOAT)

PICFLAGS	= -fPIC

CDEBUGFLAGS     = -g
CCOPTIONS	=

#if (ProjectX < 5)
    STD_DEFINES = LibraryDefines
    CDEBUGFLAGS = LibraryCDebugFlags
#else
#define SoRev XFORMSLIBREV
#define IncSubdir X11
#include <Library.tmpl>
#endif

#if Solaris64Bit
LDPRELIB	= -L/usr/openwin/lib/sparcv9
CCENVSETUP	= LD_RUN_PATH=/usr/openwin/lib/sparcv9
#endif

#if InstallNonstandard
SHLIBDIR	= XFormsNonstandardInstallDir/lib
USRLIBDIR	= XFormsNonstandardInstallDir/lib
INCDIR		= XFormsNonstandardInstallDir/include
#endif

#if (ProjectX < 6)
   INSTALLFLAGS = $(INSTINCFLAGS)

#if (ProjectX < 5)

#if DoSharedLib
SharedLibraryObjectRule()
NormalSharedLibraryTarget($(LIBNAME),$(XFORMSLIBREV),$(OBJS))
InstallSharedLibrary($(LIBNAME),$(XFORMSLIBREV),$(XFORMSLIBDIR))
#else
NormalLibraryObjectRule()
#endif
NormalLibraryTarget($(LIBNAME),$(OBJS))
InstallLibrary($(LIBNAME),$(XFORMSLIBDIR))

#else /* (ProjectX < 5) */
LibraryObjectRule()

#if DoSharedLib
# if DoNormalLib
SharedLibraryTarget($(LIBNAME),$(XFORMSLIBREV),$(OBJS),shared,..)
# else
SharedLibraryTarget($(LIBNAME),$(XFORMSLIBREV),$(OBJS),.,.)
#endif
InstallSharedLibrary($(LIBNAME),$(XFORMSLIBREV),$(XFORMSLIBDIR))
#endif
#if DoNormalLib
NormalLibraryTarget($(LIBNAME),$(OBJS))
InstallLibrary($(LIBNAME),$(XFORMSLIBDIR))
#endif

#endif /* (ProjectX < 5) */

InstallMultiple(snp.h,$(XFORMSINCDIR))

LintLibraryTarget($(LIBNAME),$(SRCS))
InstallLintLibrary($(LIBNAME),$(LINTLIBDIR))
NormalLintTarget($(SRCS))

#endif /* (ProjectX < 6) */

DependTarget()