author | Jon Tibble <meths@btinternet.com> |
Fri, 10 Feb 2012 16:43:38 +0000 | |
changeset 573 | a7d793a47973 |
parent 430 | 991b285f9b1a |
permissions | -rw-r--r-- |
85 | 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 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 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 |
#ident "@(#)Makefile 1.0 06/03/07 SMI" |
|
23 |
# |
|
24 |
# Copyright 2006 Sun Microsystems, Inc. All rights reserved. |
|
25 |
# Use is subject to license terms. |
|
26 |
# |
|
27 |
||
28 |
include $(SRC)/Makefile.master |
|
29 |
||
137
15062f7da654
kernel/strmod -> usr/kernel/strmod since the modules are now in
asano
parents:
85
diff
changeset
|
30 |
TARGETDIR = $(FILEROOT)/usr/kernel/strmod |
85 | 31 |
|
32 |
SOURCES = u8sb.c common.h iso-8859-1_to_utf8.h iso-8859-2_to_utf8.h koi8-r_to_utf8.h utf8_to_iso-8859-1.h utf8_to_iso-8859-2.h utf8_to_koi8-r.h |
|
33 |
||
34 |
MODULES = u8koi8 u8lat1 u8lat2 |
|
35 |
||
36 |
FILES = $(MODULES) $(MODULES:%=$(MACH64)/%) |
|
37 |
||
38 |
SUBDIRS = |
|
39 |
||
40 |
TARGETDIRS = $(TARGETDIR) $(TARGETDIR)/$(MACH64) |
|
41 |
||
42 |
CFLAGS = -O -xildoff -xc99=%none -D_KERNEL -D_SYSCALL32 |
|
430 | 43 |
CFLAGS_sparcv9 = -xO3 -m64 -dalign -xregs=no%appl -xspace -W0,-Lt -Wd,-xsafe=unboundsym -D_SYSCALL32_IMPL -D_ELF64 $(CFLAGS) |
44 |
CFLAGS_amd64 = -m64 -Ui386 -U__i386 -W0,-y-a -D_SYSCALL32_IMPL -D_ELF64 $(CFLAGS) |
|
85 | 45 |
LDFLAGS = -r -dn |
46 |
||
47 |
u8lat1.o := CFLAGS += -DISO_8859_1 |
|
48 |
u8lat2.o := CFLAGS += -DISO_8859_2 |
|
49 |
u8koi8.o := CFLAGS += -DKOI8_R |
|
50 |
||
51 |
||
52 |
all: $(MODULES) $(SUBDIRS) |
|
53 |
||
54 |
include $(SRC)/src/Makefile.targ |
|
55 |
||
56 |
install: $(FILES.obj) $(SUBDIRS) |
|
57 |
||
58 |
clean: $(SUBDIRS) |
|
430 | 59 |
$(RM) -r *.so* *.o $(MACH64) $(MODULES) |
85 | 60 |
|
61 |
$(MODULES:%=%.o): $(MACH64) $(SOURCES) |
|
62 |
$(CC) -c -o $@ $(CFLAGS) u8sb.c |
|
63 |
$(CC) $(CFLAGS_$(MACH64)) -c -o $(MACH64)/$@ u8sb.c |
|
64 |
||
65 |
$(MODULES): $$(@:%=%.o) |
|
66 |
$(LD) $(LDFLAGS) -o $@ $^ |
|
67 |
$(LD) $(LDFLAGS) -o $(MACH64)/$@ $(^:%=$(MACH64)/%) |
|
68 |
||
69 |
$(MACH64): |
|
70 |
$(INSDIR) $(MACH64) |
|
71 |
||
72 |
||
73 |
FRC: |
|
74 |