23 # Use is subject to license terms.
24 #
25 # Copyright 2017 Joyent, Inc.
26 #
27
28 FSTYPE= udfs
29 LIBPROG= labelit
30 SRCS= labelit.c
31 ATTMK= $(LIBPROG)
32
33 include ../../Makefile.fstype
34
35 LDLIBS += -ladm
36 CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
37 CPPFLAGS += -I../fstyp
38
39 LINTFLAGS += -xerroff=E_STATIC_UNUSED
40 LINTFLAGS64 += -xerroff=E_STATIC_UNUSED
41
42 CERRWARN += -_gcc=-Wno-unused-function
43 CERRWARN += -_gcc=-Wno-uninitialized
44
45 labelit : labelit.o ud_lib.o
46 $(LINK.c) -o $@ labelit.o ud_lib.o $(LDLIBS)
47 $(POST_PROCESS)
48
49 labelit.o : labelit.c ../fstyp/ud_lib.h
50
51 ud_lib.o : ../fstyp/ud_lib.c ../fstyp/ud_lib.h
52 $(COMPILE.c) -o $@ ../fstyp/ud_lib.c
53 $(POST_PROCESS_O)
54
55 # for messaging catalog
56 #
57 POFILE= labelit.po
58
59 # for messaging catalog
60 #
61 catalog: $(POFILE)
62
63 $(POFILE): $(SRCS) ../fstyp/ud_lib.h
|
23 # Use is subject to license terms.
24 #
25 # Copyright 2017 Joyent, Inc.
26 #
27
28 FSTYPE= udfs
29 LIBPROG= labelit
30 SRCS= labelit.c
31 ATTMK= $(LIBPROG)
32
33 include ../../Makefile.fstype
34
35 LDLIBS += -ladm
36 CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
37 CPPFLAGS += -I../fstyp
38
39 LINTFLAGS += -xerroff=E_STATIC_UNUSED
40 LINTFLAGS64 += -xerroff=E_STATIC_UNUSED
41
42 CERRWARN += -_gcc=-Wno-unused-function
43 CERRWARN += $(CNOWARN_UNINIT)
44
45 labelit : labelit.o ud_lib.o
46 $(LINK.c) -o $@ labelit.o ud_lib.o $(LDLIBS)
47 $(POST_PROCESS)
48
49 labelit.o : labelit.c ../fstyp/ud_lib.h
50
51 ud_lib.o : ../fstyp/ud_lib.c ../fstyp/ud_lib.h
52 $(COMPILE.c) -o $@ ../fstyp/ud_lib.c
53 $(POST_PROCESS_O)
54
55 # for messaging catalog
56 #
57 POFILE= labelit.po
58
59 # for messaging catalog
60 #
61 catalog: $(POFILE)
62
63 $(POFILE): $(SRCS) ../fstyp/ud_lib.h
|