commit | author | age
|
ef9858
|
1 |
# |
NJ |
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 |
# |
7bf47e
|
21 |
# Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. |
ef9858
|
22 |
# |
dab0d0
|
23 |
.NOTPARALLEL: |
ef9858
|
24 |
|
NJ |
25 |
include ../make-rules/shared-macros.mk |
|
26 |
|
7a81e9
|
27 |
#download setup prep build install publish \ |
AS |
28 |
#validate: links pkglint time-$(MACH32).so time-$(MACH64).so |
89a0b4
|
29 |
download setup prep build install publish validate: pkglint time-$(MACH32).so time-$(MACH64).so |
7999b2
|
30 |
|
MS |
31 |
# generate wrappers for parfait. we need to generate them |
|
32 |
# with the correct compiler variables from the common makefiles because |
|
33 |
# some things reset the environment which causes lovely infinite |
|
34 |
# loops |
|
35 |
links: |
7bf47e
|
36 |
@$(MKDIR) parfait |
7999b2
|
37 |
@for i in cc CC gcc g++ ld ; do \ |
MS |
38 |
$(MKDIR) parfait ; \ |
|
39 |
$(RM) parfait/$$i ; \ |
|
40 |
echo "#!/bin/ksh" > parfait/$$i ; \ |
|
41 |
echo "IFS=" >> parfait/$$i ; \ |
|
42 |
echo "export PARFAIT_NATIVEGCC=$(GCC_ROOT)/bin/gcc" >> parfait/$$i ; \ |
|
43 |
echo "export PARFAIT_NATIVEGXX=$(GCC_ROOT)/bin/g++" >> parfait/$$i ; \ |
|
44 |
echo "exec" $(PARFAIT_ROOT)/bin/parfait-$$i '$$*' >> parfait/$$i ; \ |
|
45 |
chmod +x parfait/$$i ; \ |
|
46 |
done |
|
47 |
|
7bf47e
|
48 |
pkglint: |
MS |
49 |
@rm -f pkglint |
|
50 |
@sed -e "s,WS_TOP_XXX,$(WS_TOP)/$(MACH)," \ |
|
51 |
< pkglint.sh \ |
|
52 |
> pkglint |
|
53 |
@chmod +x pkglint |
|
54 |
|
ef9858
|
55 |
|
eed419
|
56 |
time-$(MACH32).o: BITS=32 |
61c373
|
57 |
time-$(MACH64).o: BITS=64 |
89a0b4
|
58 |
time-$(MACH32).o time-$(MACH64).o: CFLAGS += $(CC_PIC) |
61c373
|
59 |
|
NJ |
60 |
time-$(MACH32).o time-$(MACH64).o: time.c |
7bf47e
|
61 |
@$(CC) $(CFLAGS) -c -o $@ $< |
61c373
|
62 |
|
NJ |
63 |
time-%.so: time-%.o |
7bf47e
|
64 |
@$(LD) -G -o $@ $< |
61c373
|
65 |
|
NJ |
66 |
clean: |
7bf47e
|
67 |
@$(RM) time-*.o time*.bc |
MS |
68 |
@$(RM) pkglint |
61c373
|
69 |
|
NJ |
70 |
clobber: clean |
7bf47e
|
71 |
@$(RM) time-*.so python/pkglint/*.pyc |
MS |
72 |
@$(RM) -r parfait |
7999b2
|
73 |
|