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 5264a6e74Sfrankho# Common Development and Distribution License (the "License"). 6264a6e74Sfrankho# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 217c478bd9Sstevel@tonic-gate# 22264a6e74Sfrankho# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 23264a6e74Sfrankho# Use is subject to license terms. 24*fdc43e97SToomas Soome# Copyright 2024 MNX Cloud, Inc. 257c478bd9Sstevel@tonic-gate# 267c478bd9Sstevel@tonic-gate 277c478bd9Sstevel@tonic-gateFSTYPE= pcfs 287c478bd9Sstevel@tonic-gateLIBPROG= fsck 297c478bd9Sstevel@tonic-gateATTMK= $(LIBPROG) 307c478bd9Sstevel@tonic-gate 317c478bd9Sstevel@tonic-gateinclude ../../Makefile.fstype 327c478bd9Sstevel@tonic-gate 33*fdc43e97SToomas SoomeCOMMONOBJS= pcfs_common.o getresponse.o 34*fdc43e97SToomas SoomeCOMMONSRCS= ../common/pcfs_common.c $(SRC)/common/util/getresponse.c 35*fdc43e97SToomas SoomeFSCKOBJS= fsck_main.o bpb.o clusters.o fat.o dir.o 367c478bd9Sstevel@tonic-gateFSCKSRCS= $(FSCKOBJS:%.o=%.c) 377c478bd9Sstevel@tonic-gate 387c478bd9Sstevel@tonic-gate# 397c478bd9Sstevel@tonic-gate# Error injection module for debugging purposes 407c478bd9Sstevel@tonic-gate# 417c478bd9Sstevel@tonic-gate#DEBUGOBJS= inject.o 427c478bd9Sstevel@tonic-gate#DEBUGSRCS= $(DEBUGOBJS:%.o=%.c) 437c478bd9Sstevel@tonic-gate 44*fdc43e97SToomas SoomeOBJS= $(FSCKOBJS) $(DEBUGOBJS) $(COMMONOBJS) 45*fdc43e97SToomas SoomeSRCS= $(FSCKSRCS) $(DEBUGSRCS) $(COMMONSRCS) 467c478bd9Sstevel@tonic-gate 477c478bd9Sstevel@tonic-gate# for messaging catalog 487c478bd9Sstevel@tonic-gate# 49*fdc43e97SToomas SoomePOFILES= $(OBJS:%.o=%.po) 507c478bd9Sstevel@tonic-gatePOFILE= fsck.po 517c478bd9Sstevel@tonic-gate 527c478bd9Sstevel@tonic-gatecatalog: $(POFILE) 537c478bd9Sstevel@tonic-gate 547c478bd9Sstevel@tonic-gateCPPFLAGS += -D_LARGEFILE64_SOURCE 55*fdc43e97SToomas SoomeCPPFLAGS += -I../common 56*fdc43e97SToomas SoomeCPPFLAGS += -I$(SRC)/common/util 577c478bd9Sstevel@tonic-gate 587014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 597014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 60d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 617014882cSRichard Lowe 627c478bd9Sstevel@tonic-gate$(LIBPROG): $(OBJS) 637c478bd9Sstevel@tonic-gate $(LINK.c) -o $@ $(OBJS) $(LDLIBS) 647c478bd9Sstevel@tonic-gate $(POST_PROCESS) 657c478bd9Sstevel@tonic-gate 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*fdc43e97SToomas Soome 74*fdc43e97SToomas Soome$(POFILE): 75*fdc43e97SToomas Soome $(RM) $@ 76*fdc43e97SToomas Soome $(COMPILE.cpp) $(SRCS) > $(POFILE).i 77*fdc43e97SToomas Soome $(XGETTEXT) $(XGETFLAGS) $(POFILE).i 78*fdc43e97SToomas Soome sed "/^domain/d" messages.po > $@ 79*fdc43e97SToomas Soome $(RM) $(POFILE).i messages.po 80*fdc43e97SToomas Soome 817c478bd9Sstevel@tonic-gateclean: 82*fdc43e97SToomas Soome $(RM) $(FSCKOBJS) $(DEBUGOBJS) $(COMMONOBJS) $(POFILE).i messages.po 83