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 2010 Nexenta Systems, Inc. All rights reserved. 14# 15PROG= od 16XPG4PROG= $(PROG) 17 18OBJS= od.o 19SRCS= $(OBJS:%.o=%.c) 20 21include ../Makefile.cmd 22 23CLOBBERFILES= $(PROG) 24 25 26C99MODE= -xc99=%all 27C99LMODE= -Xc99=%all 28CPPFLAGS += -D__EXTENSIONS__ -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 29LINTFLAGS += -D__EXTENSIONS__ 30 31# install rules 32$(ROOTINC)/% : % 33 $(INS.file) 34 35.KEEP_STATE: 36 37.PARALLEL: $(OBJS) 38 39all: $(PROG) 40 41$(PROG): $(OBJS) 42 $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 43 $(POST_PROCESS) 44 45install: all .WAIT $(ROOTPROG) $(ROOTXPG4PROG) 46 47$(ROOTXPG4PROG): 48 -$(RM) $@ 49 -$(LN) -s ../../bin/$(PROG) $@ 50 51lint: lint_SRCS 52 53clean: 54 $(RM) $(OBJS) 55 56include ../Makefile.targ 57