52
53 OBJECTS= $(OBJS_COMMON) $(OBJS_SHARED)
54
55 include ../../Makefile.lib
56
57 # libzfs must be installed in the root filesystem for mount(1M)
58 include ../../Makefile.rootfs
59
60 LIBS= $(DYNLIB) $(LINTLIB)
61
62 SRCDIR = ../common
63
64 INCS += -I$(SRCDIR)
65 INCS += -I../../../uts/common/fs/zfs
66 INCS += -I../../../common/zfs
67 INCS += -I../../libc/inc
68
69 C99MODE= -xc99=%all
70 C99LMODE= -Xc99=%all
71 LDLIBS += -lc -lm -ldevid -lgen -lnvpair -luutil -lavl -lefi \
72 -ladm -lidmap -ltsol -lmd -lumem
73 CPPFLAGS += $(INCS) -D_LARGEFILE64_SOURCE=1 -D_REENTRANT
74
75 SRCS= $(OBJS_COMMON:%.o=$(SRCDIR)/%.c) \
76 $(OBJS_SHARED:%.o=$(SRC)/common/zfs/%.c)
77 $(LINTLIB) := SRCS= $(SRCDIR)/$(LINTSRC)
78
79 .KEEP_STATE:
80
81 all: $(LIBS)
82
83 lint: lintcheck
84
85 pics/%.o: ../../../common/zfs/%.c
86 $(COMPILE.c) -o $@ $<
87 $(POST_PROCESS_O)
88
89 include ../../Makefile.targ
|
52
53 OBJECTS= $(OBJS_COMMON) $(OBJS_SHARED)
54
55 include ../../Makefile.lib
56
57 # libzfs must be installed in the root filesystem for mount(1M)
58 include ../../Makefile.rootfs
59
60 LIBS= $(DYNLIB) $(LINTLIB)
61
62 SRCDIR = ../common
63
64 INCS += -I$(SRCDIR)
65 INCS += -I../../../uts/common/fs/zfs
66 INCS += -I../../../common/zfs
67 INCS += -I../../libc/inc
68
69 C99MODE= -xc99=%all
70 C99LMODE= -Xc99=%all
71 LDLIBS += -lc -lm -ldevid -lgen -lnvpair -luutil -lavl -lefi \
72 -ladm -lidmap -ltsol -lmd -lumem -lzfs_core
73 CPPFLAGS += $(INCS) -D_LARGEFILE64_SOURCE=1 -D_REENTRANT
74
75 SRCS= $(OBJS_COMMON:%.o=$(SRCDIR)/%.c) \
76 $(OBJS_SHARED:%.o=$(SRC)/common/zfs/%.c)
77 $(LINTLIB) := SRCS= $(SRCDIR)/$(LINTSRC)
78
79 .KEEP_STATE:
80
81 all: $(LIBS)
82
83 lint: lintcheck
84
85 pics/%.o: ../../../common/zfs/%.c
86 $(COMPILE.c) -o $@ $<
87 $(POST_PROCESS_O)
88
89 include ../../Makefile.targ
|