1a69427bbSHans Rosenfeld# 2a69427bbSHans Rosenfeld# This file and its contents are supplied under the terms of the 3a69427bbSHans Rosenfeld# Common Development and Distribution License ("CDDL"), version 1.0. 4a69427bbSHans Rosenfeld# You may only use this file in accordance with the terms of version 5a69427bbSHans Rosenfeld# 1.0 of the CDDL. 6a69427bbSHans Rosenfeld# 7a69427bbSHans Rosenfeld# A full copy of the text of the CDDL should have accompanied this 8a69427bbSHans Rosenfeld# source. A copy of the CDDL is also available via the Internet at 9a69427bbSHans Rosenfeld# http://www.illumos.org/license/CDDL. 10a69427bbSHans Rosenfeld# 11a69427bbSHans Rosenfeld 12a69427bbSHans Rosenfeld# 13a69427bbSHans Rosenfeld# Copyright 2015 Nexenta Systems, Inc. 14*9cc14566SRobert Mustacchi# Copyright (c) 2018, Joyent, Inc. 15a69427bbSHans Rosenfeld# 16a69427bbSHans Rosenfeld 17a69427bbSHans Rosenfeld 18a69427bbSHans RosenfeldPROG= nvmeadm 19a69427bbSHans Rosenfeld 20a69427bbSHans RosenfeldOBJS= nvmeadm.o nvmeadm_dev.o nvmeadm_print.o 21a69427bbSHans RosenfeldSRCS= $(OBJS:%.o=%.c) 22a69427bbSHans Rosenfeld 23a69427bbSHans Rosenfeldinclude ../Makefile.cmd 24*9cc14566SRobert Mustacchiinclude ../Makefile.ctf 25a69427bbSHans Rosenfeld 26a69427bbSHans Rosenfeld.KEEP_STATE: 27a69427bbSHans Rosenfeld 28a69427bbSHans RosenfeldCFLAGS += $(CCVERBOSE) 29a69427bbSHans RosenfeldLDLIBS += -ldevinfo 30a69427bbSHans RosenfeldC99MODE= $(C99_ENABLE) 31a69427bbSHans Rosenfeld 32a69427bbSHans Rosenfeldall: $(PROG) 33a69427bbSHans Rosenfeld 34a69427bbSHans Rosenfeld$(PROG): $(OBJS) 35a69427bbSHans Rosenfeld $(LINK.c) -o $@ $(OBJS) $(LDLIBS) 36a69427bbSHans Rosenfeld $(POST_PROCESS) 37a69427bbSHans Rosenfeld 38*9cc14566SRobert Mustacchi%.o: %.c 39*9cc14566SRobert Mustacchi $(COMPILE.c) $< 40*9cc14566SRobert Mustacchi $(POST_PROCESS_O) 41*9cc14566SRobert Mustacchi 42a69427bbSHans Rosenfeldinstall: all $(ROOTUSRSBINPROG) 43a69427bbSHans Rosenfeld 44a69427bbSHans Rosenfeldclean: 45a69427bbSHans Rosenfeld $(RM) $(OBJS) $(PROG) 46a69427bbSHans Rosenfeld 47a69427bbSHans Rosenfeldlint: lint_SRCS 48a69427bbSHans Rosenfeld 49a69427bbSHans Rosenfeldinclude ../Makefile.targ 50