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 # Copyright 2006 Sun Microsystems, Inc. All rights reserved. 23 # Use is subject to license terms. 24 # 25 # ident "%Z%%M% %I% %E% SMI" 26 # 27 28 LX_CMN = $(SRC)/common/brand/lx 29 30 LIBRARY = lx_brand.a 31 VERS = .1 32 COBJS = clock.o \ 33 clone.o \ 34 debug.o \ 35 dir.o \ 36 file.o \ 37 fcntl.o \ 38 fork.o \ 39 id.o \ 40 ioctl.o \ 41 iovec.o \ 42 lx_brand.o \ 43 lx_thunk_server.o \ 44 mem.o \ 45 misc.o \ 46 module.o \ 47 mount.o \ 48 open.o \ 49 pgrp.o \ 50 poll_select.o \ 51 priority.o \ 52 ptrace.o \ 53 rlimit.o \ 54 sched.o \ 55 sendfile.o \ 56 signal.o \ 57 socket.o \ 58 stat.o \ 59 statfs.o \ 60 sysctl.o \ 61 sysv_ipc.o \ 62 time.o \ 63 truncate.o \ 64 wait.o 65 66 CMNOBJS = lx_signum.o 67 ASOBJS = lx_handler.o lx_runexe.o lx_crt.o 68 OBJECTS = $(CMNOBJS) $(COBJS) $(ASOBJS) 69 70 include ../../Makefile.lx 71 include ../../../../Makefile.lib 72 73 CSRCS = $(COBJS:%o=../common/%c) $(CMNOBJS:%o=$(LX_CMN)/%c) 74 ASSRCS = $(ASOBJS:%o=$(ISASRCDIR)/%s) 75 SRCS = $(CSRCS) $(ASSRCS) 76 77 SRCDIR = ../common 78 UTSBASE = ../../../../../uts 79 80 LIBS = $(DYNLIB) 81 LDLIBS += -lc -lsocket -lmapmalloc -lproc -lrtld_db 82 DYNFLAGS += -Wl,-e_start -Wl,-I/native/lib/ld.so.1 -M../common/mapfile 83 CFLAGS += $(CCVERBOSE) 84 CPPFLAGS += -D_REENTRANT -I../ -I$(UTSBASE)/common/brand/lx -I$(LX_CMN) 85 ASFLAGS = -P $(ASFLAGS_$(CURTYPE)) -D_ASM -I../ \ 86 -I$(UTSBASE)/common/brand/lx 87 88 .KEEP_STATE: 89 90 all: $(LIBS) 91 92 lint: lintcheck 93 94 include ../../../../Makefile.targ 95 96 pics/%.o: $(ISASRCDIR)/%.s 97 $(COMPILE.s) -o $@ $< 98 $(POST_PROCESS_O) 99 100 pics/%.o: $(LX_CMN)/%.c 101 $(COMPILE.c) -o $@ $< 102 $(POST_PROCESS_O)