1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License (the "License"). 6# You may not use this file except in compliance with the License. 7# 8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9# or http://www.opensolaris.org/os/licensing. 10# See the License for the specific language governing permissions 11# and limitations under the License. 12# 13# When distributing Covered Code, include this CDDL HEADER in each 14# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15# If applicable, add the following below this CDDL HEADER, with the 16# fields enclosed by brackets "[]" replaced with your own identifying 17# information: Portions Copyright [yyyy] [name of copyright owner] 18# 19# CDDL HEADER END 20# 21# 22# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 23# Use is subject to license terms. 24# Copyright 2024 MNX Cloud, Inc. 25# 26 27FSTYPE= pcfs 28LIBPROG= fsck 29ATTMK= $(LIBPROG) 30 31include ../../Makefile.fstype 32 33COMMONOBJS= pcfs_common.o getresponse.o 34COMMONSRCS= ../common/pcfs_common.c $(SRC)/common/util/getresponse.c 35FSCKOBJS= fsck_main.o bpb.o clusters.o fat.o dir.o 36FSCKSRCS= $(FSCKOBJS:%.o=%.c) 37 38# 39# Error injection module for debugging purposes 40# 41#DEBUGOBJS= inject.o 42#DEBUGSRCS= $(DEBUGOBJS:%.o=%.c) 43 44OBJS= $(FSCKOBJS) $(DEBUGOBJS) $(COMMONOBJS) 45SRCS= $(FSCKSRCS) $(DEBUGSRCS) $(COMMONSRCS) 46 47# for messaging catalog 48# 49POFILES= $(OBJS:%.o=%.po) 50POFILE= fsck.po 51 52catalog: $(POFILE) 53 54CPPFLAGS += -D_LARGEFILE64_SOURCE 55CPPFLAGS += -I../common 56CPPFLAGS += -I$(SRC)/common/util 57 58CERRWARN += -_gcc=-Wno-parentheses 59CERRWARN += -_gcc=-Wno-unused-variable 60CERRWARN += $(CNOWARN_UNINIT) 61 62$(LIBPROG): $(OBJS) 63 $(LINK.c) -o $@ $(OBJS) $(LDLIBS) 64 $(POST_PROCESS) 65 66%.o : ../common/%.c 67 $(COMPILE.c) $(OUTPUT_OPTION) $< 68 $(POST_PROCESS_O) 69 70%.o : $(SRC)/common/util/%.c 71 $(COMPILE.c) $(OUTPUT_OPTION) $< 72 $(POST_PROCESS_O) 73 74$(POFILE): 75 $(RM) $@ 76 $(COMPILE.cpp) $(SRCS) > $(POFILE).i 77 $(XGETTEXT) $(XGETFLAGS) $(POFILE).i 78 sed "/^domain/d" messages.po > $@ 79 $(RM) $(POFILE).i messages.po 80 81clean: 82 $(RM) $(FSCKOBJS) $(DEBUGOBJS) $(COMMONOBJS) $(POFILE).i messages.po 83