xref: /titanic_51/usr/src/lib/commpage/Makefile.shared.targ (revision 263f549e5da8b32c4922f586afb365b8ae388a6c)
1*263f549eSPatrick Mooney#
2*263f549eSPatrick Mooney# This file and its contents are supplied under the terms of the
3*263f549eSPatrick Mooney# Common Development and Distribution License ("CDDL"), version 1.0.
4*263f549eSPatrick Mooney# You may only use this file in accordance with the terms of version
5*263f549eSPatrick Mooney# 1.0 of the CDDL.
6*263f549eSPatrick Mooney#
7*263f549eSPatrick Mooney# A full copy of the text of the CDDL should have accompanied this
8*263f549eSPatrick Mooney# source.  A copy of the CDDL is also available via the Internet at
9*263f549eSPatrick Mooney# http://www.illumos.org/license/CDDL.
10*263f549eSPatrick Mooney#
11*263f549eSPatrick Mooney
12*263f549eSPatrick Mooney#
13*263f549eSPatrick Mooney# Copyright 2016 Joyent, Inc.
14*263f549eSPatrick Mooney#
15*263f549eSPatrick Mooney
16*263f549eSPatrick Mooney#
17*263f549eSPatrick Mooney# This Makefile is shared between both libc and other consumers
18*263f549eSPatrick Mooney#
19*263f549eSPatrick Mooney
20*263f549eSPatrick Mooneypics/%.o: $(SRC)/lib/commpage/common/%.c
21*263f549eSPatrick Mooney	$(COMPILE.c) -o $@ $<
22*263f549eSPatrick Mooney	$(POST_PROCESS_O)
23*263f549eSPatrick Mooney
24*263f549eSPatrick Mooneypics/%.o: $(SRC)/lib/commpage/$(TARGET_ARCH)/%.s $(COMMPAGE_OFFSETS_H)
25*263f549eSPatrick Mooney	$(COMPILE.s) -o $@ $<
26*263f549eSPatrick Mooney	$(POST_PROCESS_O)
27*263f549eSPatrick Mooney
28*263f549eSPatrick Mooney$(COMMPAGE_OFFSETS_H): $(COMMPAGE_OFFSETS_SRC)
29*263f549eSPatrick Mooney	$(OFFSETS_CREATE) <$(COMMPAGE_OFFSETS_SRC) >$@
30