File: Makefile.in

package info (click to toggle)
blt8.0 2.4f-3
  • links: PTS
  • area: main
  • in suites: slink
  • size: 6,440 kB
  • ctags: 6,543
  • sloc: ansic: 57,358; tcl: 10,169; sh: 1,694; makefile: 551
file content (138 lines) | stat: -rw-r--r-- 4,003 bytes parent folder | download
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# ------------------------------------------------------------------------
#       Makefile for demonstation shell of BLT library
# ------------------------------------------------------------------------

# ------------------------------------------------------------------------
#       C Compiler options 
# ------------------------------------------------------------------------

DEFINES      = 
CFLAGS       = @CFLAGS@ 
EXTRA_CFLAGS = @GCCFLAGS@
CC 	     = @CC@

# ------------------------------------------------------------------------
#       Source and target installation directories
# ------------------------------------------------------------------------

prefix	     = @prefix@
exec_prefix  = @exec_prefix@
srcdir	     = @srcdir@
bindir       = @bindir@
includedir   = @includedir@
libdir	     = @libdir@

instdirs  = $(prefix) $(exec_prefix) $(bindir) $(libdir) $(includedir)

# ------------------------------------------------------------------------
#       Include directives for Tcl, Tk, and X include files 
# ------------------------------------------------------------------------

INCLUDES     = -I. @INCLUDES@

# ------------------------------------------------------------------------
#       Libraries directives for Tcl, Tk, X11, and BLT
# ------------------------------------------------------------------------

LIBRARIES    = @LIBS@
# I had to add some library dependencies for lintian - g.russell
BLTWISHLIB   = -lc $(LIBRARIES)

# ------------------------------------------------------------------------
#       Don't edit anything beyond this point
# ------------------------------------------------------------------------

demo 	     = bltwish
headers	     = blt.h

CC_SWITCHES  = $(EXTRA_CFLAGS) $(CFLAGS) $(DEFINES) $(INCLUDES)
# Had to be commented out, as it insisted on setting the rpath, which if
# permitted causes lintian to complain!
# LDFLAGS      = @LDFLAGS@
LDFLAGS      = 
INSTALL      = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
RANLIB 	     = @RANLIB@
SHELL 	     = /bin/sh
RM 	     = rm -f
LN_S	     = @LN_S@

subdirs	     = src src/shared demos library man 

all:  bltwish @SHLIB_TARGET@

bltwish: static
	@echo "making BLT demo \"bltwish\"..."
	$(RM) bltwish
	$(CC) $(CC_SWITCHES) $(LDFLAGS) \
		$(srcdir)/tkAppInit.c -o bltwish ./src/libBLT.a $(BLTWISHLIB) 
	@echo "make finished on `date`"

# I had to add some library dependencies for lintian - g.russell
shared:
	(cd src/shared; $(MAKE) CFLAGS="$(CFLAGS)" SHLIB_LD_LIBS="-lc $(LIBRARIES)" all) 

static: 
	(cd src; $(MAKE) CFLAGS="$(CFLAGS)" all) 

install: bltwish mkdirs install-headers install-libs 
	$(INSTALL) -m 0755 bltwish $(bindir)/bltwish@BLT_VERSION@
	(cd $(bindir); $(RM) bltwish ; $(LN_S) bltwish@BLT_VERSION@ bltwish)

mkdirs:
	@for i in $(instdirs) ; do \
	    if test ! -d $$i ; then \
		echo " mkdir $$i" ; \
		mkdir $$i ; \
	    fi ; \
        done

install-headers:
	@for i in $(headers) ; do \
	    echo "installing $(includedir)/$$i..." ; \
	    $(INSTALL_DATA) -m 0444 $(srcdir)/$$i $(includedir) ; \
	done

install-libs:
	@for i in $(subdirs) ; do \
	    (cd $$i; $(MAKE) install) ; \
	done

clean:
	@for i in $(subdirs) ; do \
	    echo "cleaning $$i..." ; \
	    (cd $$i; $(MAKE) clean) ; \
	done
	$(RM) bltwish *.bak *\~ "#"* *pure* .pure*

.c.o:
	$(CC) -c $(CC_SWITCHES) $<

GENERATED_FILES = \
	config.status config.cache config.log \
	config.BLT src/bltConfig.h \
	Makefile \
	src/Makefile \
	src/TAGS \
	src/shared/Makefile \
	man/Makefile \
	library/Makefile \
	demos/*.ps

distclean: 
	@for i in $(subdirs) ; do \
	    echo "cleaning $$i..." ; \
	    (cd $$i; $(MAKE) distclean) ; \
	done
	$(RM) bltwish *.bak *\~ "#"* *pure* .pure*
	$(RM) $(GENERATED_FILES)

PUREFLAGS=
pure: static
	$(PURIFYHOME)/purify $(PUREFLAGS) $(CC) $(CC_SWITCHES) \
		$(srcdir)/tkAppInit.c -o bltwish ./src/libBLT.a $(LIBRARIES)

QUANTIFYFLAGS=
quant: static
	$(QUANTIFYHOME)/quantify $(QUANTIFYFLAGS) $(CC) $(CC_SWITCHES) \
		$(srcdir)/tkAppInit.c -o bltwish ./src/libBLT.a $(LIBRARIES)