xref: /illumos-gate/usr/src/cmd/fs.d/pcfs/mkfs/Makefile (revision fdc43e978a96b43e8b78e80d9bc6f39c99a8ca83)
17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
57c478bd9Sstevel@tonic-gate# Common Development and Distribution License, Version 1.0 only
67c478bd9Sstevel@tonic-gate# (the "License").  You may not use this file except in compliance
77c478bd9Sstevel@tonic-gate# with the License.
87c478bd9Sstevel@tonic-gate#
97c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
107c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
117c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
127c478bd9Sstevel@tonic-gate# and limitations under the License.
137c478bd9Sstevel@tonic-gate#
147c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
157c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
167c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
177c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
187c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
197c478bd9Sstevel@tonic-gate#
207c478bd9Sstevel@tonic-gate# CDDL HEADER END
217c478bd9Sstevel@tonic-gate#
227c478bd9Sstevel@tonic-gate#
237c478bd9Sstevel@tonic-gate# Copyright (c) 1998 by Sun Microsystems, Inc.
247c478bd9Sstevel@tonic-gate# All rights reserved.
25*fdc43e97SToomas Soome# Copyright 2024 MNX Cloud, Inc.
267c478bd9Sstevel@tonic-gate#
277c478bd9Sstevel@tonic-gate
287c478bd9Sstevel@tonic-gateFSTYPE=		pcfs
297c478bd9Sstevel@tonic-gateLIBPROG=	mkfs
307c478bd9Sstevel@tonic-gateATTMK=		$(LIBPROG)
317c478bd9Sstevel@tonic-gate
327c478bd9Sstevel@tonic-gateinclude		../../Makefile.fstype
337c478bd9Sstevel@tonic-gate
34*fdc43e97SToomas SoomeOBJS=		mkfs_main.o pcfs_common.o getresponse.o
35*fdc43e97SToomas SoomeSRCS=		mkfs_main.c ../common/pcfs_common.c
36*fdc43e97SToomas SoomeSRCS +=		$(SRC)/common/util/getresponse.c
375b5a71c4SToomas SoomeLDLIBS +=	-lefi
387c478bd9Sstevel@tonic-gate
397c478bd9Sstevel@tonic-gate# for messaging catalog
407c478bd9Sstevel@tonic-gate#
417c478bd9Sstevel@tonic-gatePOFILE= mkfs.po
427c478bd9Sstevel@tonic-gate
437c478bd9Sstevel@tonic-gatecatalog:        $(POFILE)
447c478bd9Sstevel@tonic-gate
457c478bd9Sstevel@tonic-gateCPPFLAGS +=	-D_LARGEFILE64_SOURCE
46*fdc43e97SToomas SoomeCPPFLAGS +=	-I../common
47*fdc43e97SToomas SoomeCPPFLAGS +=	-I$(SRC)/common/util
48*fdc43e97SToomas SoomeCPPFLAGS +=	-I$(SRC)/uts/common
49*fdc43e97SToomas SoomeCPPFLAGS +=	-I$(SRC)/cmd/boot/installboot/i386
50*fdc43e97SToomas Soome$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
517c478bd9Sstevel@tonic-gate
527c478bd9Sstevel@tonic-gate$(LIBPROG):	$(OBJS)
537c478bd9Sstevel@tonic-gate	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
547c478bd9Sstevel@tonic-gate	$(POST_PROCESS)
557c478bd9Sstevel@tonic-gate
567c478bd9Sstevel@tonic-gateclean:
57*fdc43e97SToomas Soome	$(RM) $(OBJS) $(POFILE).i messages.po
58*fdc43e97SToomas Soome
59*fdc43e97SToomas Soome$(POFILE):
60*fdc43e97SToomas Soome	$(RM) $@
61*fdc43e97SToomas Soome	$(COMPILE.cpp) $(SRCS) > $(POFILE).i
62*fdc43e97SToomas Soome	$(XGETTEXT) $(XGETFLAGS) $(POFILE).i
63*fdc43e97SToomas Soome	sed "/^domain/d" messages.po > $@
64*fdc43e97SToomas Soome	$(RM) $(POFILE).i messages.po
65*fdc43e97SToomas Soome
66*fdc43e97SToomas Soome%.o : ../common/%.c
67*fdc43e97SToomas Soome	$(COMPILE.c) $(OUTPUT_OPTION) $<
68*fdc43e97SToomas Soome	$(POST_PROCESS_O)
69*fdc43e97SToomas Soome
70*fdc43e97SToomas Soome%.o : $(SRC)/common/util/%.c
71*fdc43e97SToomas Soome	$(COMPILE.c) $(OUTPUT_OPTION) $<
72*fdc43e97SToomas Soome	$(POST_PROCESS_O)
73