author | David Powell <David.Powell@sun.com> |
Tue, 15 Dec 2009 18:07:22 -0800 | |
changeset 395 | dceab4d00ec5 |
parent 393 | e94f0dfff865 |
child 436 | c28d8d667ea1 |
permissions | -rw-r--r-- |
391 | 1 |
# |
2 |
# CDDL HEADER START |
|
3 |
# |
|
4 |
# The contents of this file are subject to the terms of the |
|
5 |
# Common Development and Distribution License (the "License"). |
|
6 |
# You may not use this file except in compliance with the License. |
|
7 |
# |
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
9 |
# or http://www.opensolaris.org/os/licensing. |
|
10 |
# See the License for the specific language governing permissions |
|
11 |
# and limitations under the License. |
|
12 |
# |
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
|
18 |
# |
|
19 |
# CDDL HEADER END |
|
20 |
# |
|
21 |
||
22 |
# |
|
23 |
# Copyright 2009 Sun Microsystems, Inc. All rights reserved. |
|
24 |
# Use is subject to license terms. |
|
25 |
# |
|
26 |
||
27 |
include $(SRC)/Makefile.env |
|
28 |
||
29 |
PROTO_RAD=$(PROTO_LIB)/rad |
|
30 |
||
31 |
ADRLOC=../../java/adr/adr.jar |
|
32 |
ADRGEN=java -classpath $(ADRLOC) org.opensolaris.os.adr.adrgen.ADRGen |
|
33 |
APIS=../../apis |
|
34 |
||
35 |
CPPFLAGS = -I/usr/include/libxml2 |
|
36 |
CFLAGS = -g -mt -errwarn=%all |
|
37 |
RAD_LDFLAGS=-lsocket -lnsl -lumem -lsecdb -lpam -lbsm -lxml2 -lscf |
|
38 |
||
39 |
RAD = rad |
|
40 |
ADR_OBJS = \ |
|
41 |
api_errors_impl.o\ |
|
42 |
api_modules_impl.o\ |
|
43 |
api_pam_impl.o\ |
|
44 |
api_config_impl.o\ |
|
45 |
api_radcontrol_impl.o |
|
46 |
||
47 |
OBJS = \ |
|
48 |
$(ADR_OBJS) \ |
|
49 |
list.o \ |
|
50 |
rad_adr.o \ |
|
51 |
rad_connection.o \ |
|
52 |
rad_control.o \ |
|
53 |
rad_defaults.o \ |
|
54 |
rad_log.o \ |
|
55 |
rad_meta.o \ |
|
56 |
rad_module.o \ |
|
57 |
rad_object.o \ |
|
58 |
rad_pam.o \ |
|
59 |
rad_proto.o \ |
|
60 |
rad_slave.o \ |
|
61 |
rad_smf.o \ |
|
62 |
rad_subject.o \ |
|
63 |
rad_ticket.o \ |
|
64 |
rad_util.o \ |
|
65 |
rad_xdr.o \ |
|
66 |
rad_xport.o \ |
|
67 |
rad.o |
|
68 |
||
69 |
ADR_APIS=$(ADR_OBJS:api_%_impl.o=%) |
|
70 |
ADR_SRCS=$(ADR_APIS:%=api_%_impl.c) $(ADR_APIS:%=api_%.h) |
|
71 |
CLEAN_FILES = $(OBJS) $(ADR_SRCS) |
|
72 |
CLOBBER_FILES = $(CLEAN_FILES) $(RAD) |
|
73 |
||
74 |
.KEEP_STATE: |
|
75 |
||
76 |
all: $(RAD) |
|
77 |
||
78 |
rad.o: api_config.h |
|
79 |
rad_object.o: api_errors.h |
|
80 |
rad_module.o: api_modules.h |
|
81 |
rad_pam.o: api_pam.h |
|
82 |
||
83 |
$(RAD): $(OBJS) |
|
84 |
cc -o rad $(OBJS) $(RAD_LDFLAGS) |
|
395
dceab4d00ec5
13386 various build issues
David Powell <David.Powell@sun.com>
parents:
393
diff
changeset
|
85 |
$(CTFMERGE) -l foo -o $(RAD) $(OBJS) |
391 | 86 |
|
87 |
install: $(PROTO_LIB)/rad/rad $(PROTO_MFS_SYSTEM)/rad.xml |
|
88 |
||
89 |
$(ADR_SRCS): $(ADRLOC) |
|
90 |
||
91 |
api_%.h api_%_impl.c: $(SRC)/apis/%.xml |
|
92 |
$(ADRGEN) -c $< |
|
93 |
||
94 |
api_%.h api_%_impl.c: %.xml |
|
95 |
$(ADRGEN) -c $< |
|
96 |
||
97 |
FILEMODE=0555 |
|
98 |
$(PROTO_RAD)/%: % |
|
99 |
$(INS.file) |
|
100 |
||
101 |
.c.o: |
|
102 |
$(COMPILE.c) $(OUTPUT_OPTIONS) -c $< |
|
395
dceab4d00ec5
13386 various build issues
David Powell <David.Powell@sun.com>
parents:
393
diff
changeset
|
103 |
$(CTFCONVERT) -l foo $@ |
391 | 104 |
|
105 |
include $(SRC)/Makefile.targ |