summaryrefslogtreecommitdiffstats
path: root/crypto/kerberosIV/lib/com_err/Makefile.in
blob: 883b5225b46edf00fc9c101c7488731422ebd660 (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
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
139
140
141
142
143
144
145
146
147
148
149
150
151
#
# $Id: Makefile.in,v 1.30.2.1 2000/10/10 14:34:33 assar Exp $
#

SHELL = /bin/sh

srcdir = @srcdir@
VPATH = @srcdir@

CC = @CC@
LINK = @LINK@
AR = ar
RANLIB = @RANLIB@
LN_S = @LN_S@
DEFS = @DEFS@ -DROKEN_RENAME
CFLAGS = @CFLAGS@ $(WFLAGS)
WFLAGS = @WFLAGS@
LD_FLAGS = @LD_FLAGS@
EXECSUFFIX=@EXECSUFFIX@

YACC = @YACC@
LEX = @LEX@

INSTALL = @INSTALL@
INSTALL_DATA	= @INSTALL_DATA@
MKINSTALLDIRS = @top_srcdir@/mkinstalldirs

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

PICFLAGS = @PICFLAGS@
 
LIB_DEPS = @lib_deps_yes@ -lc
build_symlink_command   = @build_symlink_command@
#install_symlink_command = @install_symlink_command@
install_symlink_command = @true

LIBNAME = $(LIBPREFIX)com_err
#LIBEXT = @LIBEXT@ Always build archive library!
LIBEXT = a
SHLIBEXT = @SHLIBEXT@
LIBPREFIX = @LIBPREFIX@
LDSHARED = @LDSHARED@
LIB = $(LIBNAME).$(LIBEXT)
lib_LIBRARIES = $(LIBNAME).$(LIBEXT)
bin_PROGRAMS = compile_et$(EXECSUFFIX)
include_HEADERS = com_right.h com_err.h

SOURCES = error.c com_err.c compile_et.c
OBJECTS = error.o com_err.o $(LIBADD)
EXTRA_SOURCES =
LIBADD =

all: $(lib_LIBRARIES) $(bin_PROGRAMS) $(include_HEADERS)

Wall:
	make CFLAGS="-g -Wall -Wno-comment -Wmissing-prototypes -Wmissing-declarations -D__USE_FIXED_PROTOTYPES__"

.c.o:
	$(CC) -c $(DEFS) -I../../include -I. -I$(srcdir) $(CFLAGS) $(CPPFLAGS) $(PICFLAGS) $<

install: all
	$(MKINSTALLDIRS) $(DESTDIR)$(includedir)
	@for i in $(include_HEADERS); do \
	f=`basename $$i`; \
	if test -f "$(srcdir)/$$f" ; then x="$(srcdir)/$$f"; \
	else x="$$f"; fi ;\
	echo "$(INSTALL_DATA) $$x $(DESTDIR)$(includedir)/$$f" ;\
	$(INSTALL_DATA) $$x $(DESTDIR)$(includedir)/$$f ; done

	$(MKINSTALLDIRS) $(DESTDIR)$(libdir)
	@for i in $(lib_LIBRARIES); do \
	echo "$(INSTALL) -m 0555 $$i $(DESTDIR)$(libdir)/$$i" ;\
	$(INSTALL) -m 0555 $$i $(DESTDIR)$(libdir)/$$i ; done
	@install_symlink_command@

	$(MKINSTALLDIRS) $(DESTDIR)$(bindir)
	@for i in $(bin_PROGRAMS); do \
	echo "$(INSTALL) -m 0555 $$i $(DESTDIR)$(bindir)/$$i" ;\
	$(INSTALL) -m 0555 $$i $(DESTDIR)$(bindir)/$$i ; done

uninstall:
	@for i in $(include_HEADERS); do \
	f=`basename $$i`; \
	echo "rm -f $(DESTDIR)$(includedir)/$$f" ;\
	rm -f $(DESTDIR)$(includedir)/$$f ; done

	@for i in $(lib_LIBRARIES); do \
	echo "rm -f $(DESTDIR)$(libdir)/$$i" ;\
	rm -f $(DESTDIR)$(libdir)/$$i ; done

	@for i in $(bin_PROGRAMS); do \
	echo "rm -f $(DESTDIR)$(bindir)/$$i" ;\
	rm -f $(DESTDIR)$(bindir)/$$i ; done

TAGS: $(SOURCES)
	etags $(SOURCES)

clean:
	rm -f $(LIB) *.o *.a *.so *.so.* so_locations \
	krb_err.c krb_err.h parse.h parse.c lex.c \
	$(lib_LIBRARIES) $(bin_PROGRAMS) $(EXTRA_SOURCES)

mostlyclean: clean

distclean: clean
	rm -f Makefile *.tab.c *~

realclean: distclean
	rm -f TAGS

$(LIBNAME).a: $(OBJECTS)
	rm -f $@
	$(AR) cr $@ $(OBJECTS)
	-$(RANLIB) $@

$(LIBNAME).$(SHLIBEXT): $(OBJECTS)
	rm -f $@
	$(LDSHARED) -o $@ $(OBJECTS) $(LIB_DEPS)
	@build_symlink_command@

COBJ = compile_et.o parse.o lex.o

$(COBJ): parse.h

compile_et$(EXECSUFFIX): $(COBJ)
	$(LINK) $(CFLAGS) -o $@ $(COBJ) -L../roken -lroken

parse.c: parse.h
parse.h: $(srcdir)/parse.y
	$(YACC) -d $(srcdir)/parse.y
	mv -f y.tab.h parse.h
	mv -f y.tab.c parse.c

lex.c: $(srcdir)/lex.l
	$(LEX) $(srcdir)/lex.l
	mv -f lex.yy.c lex.c

snprintf.c:
	$(LN_S) $(srcdir)/../roken/snprintf.c .

strlcat.c:
	$(LN_S) $(srcdir)/../roken/strlcat.c .

strlcpy.c:
	$(LN_S) $(srcdir)/../roken/strlcpy.c .

.PHONY: all Wall install uninstall clean mostlyclean distclean realclean
OpenPOWER on IntegriCloud