xref: /illumos-gate/usr/src/boot/userboot/test/Makefile (revision 10a869258e300c530ae56b29aa3bf43461ca98ff)
1*10a86925SToomas Soome#
2*10a86925SToomas Soome# This file and its contents are supplied under the terms of the
3*10a86925SToomas Soome# Common Development and Distribution License ("CDDL"), version 1.0.
4*10a86925SToomas Soome# You may only use this file in accordance with the terms of version
5*10a86925SToomas Soome# 1.0 of the CDDL.
6*10a86925SToomas Soome#
7*10a86925SToomas Soome# A full copy of the text of the CDDL should have accompanied this
8*10a86925SToomas Soome# source.  A copy of the CDDL is also available via the Internet at
9*10a86925SToomas Soome# http://www.illumos.org/license/CDDL.
10*10a86925SToomas Soome#
11*10a86925SToomas Soome
12*10a86925SToomas Soome#
13*10a86925SToomas Soome# Copyright 2019 Toomas Soome <tsoome@me.com>
14*10a86925SToomas Soome#
15*10a86925SToomas Soome
16*10a86925SToomas SoomePROG=	test
17*10a86925SToomas SoomeOBJS=	test.o
18*10a86925SToomas Soome
19*10a86925SToomas Soomeinclude ../../../cmd/Makefile.cmd
20*10a86925SToomas Soomeinclude ../../../cmd/Makefile.cmd.64
21*10a86925SToomas Soome
22*10a86925SToomas Soomeall: $(PROG)
23*10a86925SToomas Soome
24*10a86925SToomas SoomeKEEP_STATE:
25*10a86925SToomas Soome
26*10a86925SToomas SoomeCPPFLAGS +=	-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
27*10a86925SToomas SoomeCPPFLAGS +=	-I.. -I../../sys
28*10a86925SToomas SoomeLDLIBS += -lumem
29*10a86925SToomas Soome
30*10a86925SToomas Soomeinstall: all $(ROOTPROG)
31*10a86925SToomas Soome
32*10a86925SToomas Soome$(PROG): $(OBJS)
33*10a86925SToomas Soome	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
34*10a86925SToomas Soome	$(POST_PROCESS)
35*10a86925SToomas Soome
36*10a86925SToomas Soomeclean:
37*10a86925SToomas Soome	$(RM) $(OBJS)
38*10a86925SToomas Soome
39*10a86925SToomas Soomeinclude ../../../cmd/Makefile.targ
40