xref: /illumos-gate/usr/src/cmd/od/Makefile (revision 1e8d79d2)
101335b0dSGarrett D'Amore#
201335b0dSGarrett D'Amore# This file and its contents are supplied under the terms of the
301335b0dSGarrett D'Amore# Common Development and Distribution License ("CDDL"), version 1.0.
45aec55ebSGarrett D'Amore# You may only use this file in accordance with the terms of version
501335b0dSGarrett D'Amore# 1.0 of the CDDL.
601335b0dSGarrett D'Amore#
701335b0dSGarrett D'Amore# A full copy of the text of the CDDL should have accompanied this
801335b0dSGarrett D'Amore# source.  A copy of the CDDL is also available via the Internet at
901335b0dSGarrett D'Amore# http://www.illumos.org/license/CDDL.
1001335b0dSGarrett D'Amore#
1101335b0dSGarrett D'Amore
1201335b0dSGarrett D'Amore#
1301335b0dSGarrett D'Amore# Copyright 2010 Nexenta Systems, Inc.  All rights reserved.
1401335b0dSGarrett D'Amore#
15*1e8d79d2SYuri Pankov
1601335b0dSGarrett D'AmorePROG=		od
1701335b0dSGarrett D'AmoreXPG4PROG=	$(PROG)
1801335b0dSGarrett D'Amore
1901335b0dSGarrett D'AmoreOBJS=		od.o
2001335b0dSGarrett D'AmoreSRCS=	 	$(OBJS:%.o=%.c)
2101335b0dSGarrett D'Amore
2201335b0dSGarrett D'Amoreinclude ../Makefile.cmd
2301335b0dSGarrett D'Amore
2401335b0dSGarrett D'AmoreCLOBBERFILES=	$(PROG)
2501335b0dSGarrett D'Amore
26bd0ce624SYuri PankovCSTD=	$(CSTD_GNU99)
27*1e8d79d2SYuri Pankov
2801335b0dSGarrett D'AmoreCPPFLAGS +=	-D__EXTENSIONS__ -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2901335b0dSGarrett D'Amore
3001335b0dSGarrett D'Amore# install rules
3101335b0dSGarrett D'Amore$(ROOTINC)/% : %
3201335b0dSGarrett D'Amore	$(INS.file)
3301335b0dSGarrett D'Amore
3401335b0dSGarrett D'Amore.KEEP_STATE:
3501335b0dSGarrett D'Amore
3601335b0dSGarrett D'Amore.PARALLEL: $(OBJS)
3701335b0dSGarrett D'Amore
38*1e8d79d2SYuri Pankovall:		$(PROG)
3901335b0dSGarrett D'Amore
4001335b0dSGarrett D'Amore$(PROG):	$(OBJS)
4101335b0dSGarrett D'Amore	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
4201335b0dSGarrett D'Amore	$(POST_PROCESS)
4301335b0dSGarrett D'Amore
4401335b0dSGarrett D'Amoreinstall: all .WAIT $(ROOTPROG) $(ROOTXPG4PROG)
4501335b0dSGarrett D'Amore
4601335b0dSGarrett D'Amore$(ROOTXPG4PROG):
4701335b0dSGarrett D'Amore	-$(RM) $@
4801335b0dSGarrett D'Amore	-$(LN) -s ../../bin/$(PROG) $@
4901335b0dSGarrett D'Amore
5001335b0dSGarrett D'Amoreclean:
5101335b0dSGarrett D'Amore	$(RM) $(OBJS)
5201335b0dSGarrett D'Amore
5301335b0dSGarrett D'Amoreinclude ../Makefile.targ
54