xref: /illumos-gate/usr/src/lib/libm/Makefile.targ (revision 66582b606a8194f7f3ba5b3a3a6dca5b0d346361)
1#
2# This file and its contents are supplied under the terms of the
3# Common Development and Distribution License ("CDDL"), version 1.0.
4# You may only use this file in accordance with the terms of version
5# 1.0 of the CDDL.
6#
7# A full copy of the text of the CDDL should have accompanied this
8# source.  A copy of the CDDL is also available via the Internet at
9# http://www.illumos.org/license/CDDL.
10#
11
12#
13# Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
14#
15# Copyright (c) 2019, Joyent, Inc.
16#
17
18pics/%.o: $(LIBMDIR)/$(TARGETMACH)/src/%.$(ASSUFFIX)
19	$(COMPILE.s) -o $@ $<
20	$(POST_PROCESS_S_O)
21
22pics/%.o: $(SRCDIR)/C/%.c $(LM_IL)
23	$(COMPILE.c) -o $@ $<
24	$(POST_PROCESS_O)
25
26pics/%.o: $(SRCDIR)/$(LDBLDIR)/%.c $(LM_IL)
27	$(COMPILE.c) -o $@ $<
28	$(POST_PROCESS_O)
29
30pics/%.o: $(SRCDIR)/R/%.c $(LM_IL)
31	$(COMPILE.c) -o $@ $<
32	$(POST_PROCESS_O)
33
34pics/%.o: $(SRCDIR)/complex/%.c $(LM_IL)
35	$(COMPILE.c) -o $@ $<
36	$(POST_PROCESS_O)
37
38pics/%.o: $(SRCDIR)/m9x/%.c $(LM_IL) $(m9x_IL)
39	$(COMPILE.c) $(m9x_IL) -o $@ $<
40	$(POST_PROCESS_O)
41
42$(ROOTLIBDIR): $(ROOTFS_LIBDIR)
43	$(INS.dir)
44
45$(ROOTLIBDIR64): $(ROOTFS_LIBDIR64)
46	$(INS.dir)
47
48include $(SRC)/lib/Makefile.targ
49