22 # Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
23 #
24
25 .KEEP_STATE:
26 .SUFFIXES:
27
28 SRCS += fmdump.c nvlrender.c asru.c error.c fault.c scheme.c info.c
29 OBJS = $(SRCS:%.c=%.o)
30 LINTFILES = $(SRCS:%.c=%.ln)
31
32 PROG = fmdump
33 ROOTPROG = $(ROOTUSRSBIN)/$(PROG)
34
35 $(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
36 CPPFLAGS += -I. -I../common -I../../include
37 CFLAGS += $(CTF_FLAGS) $(CCVERBOSE) $(XSTRCONST)
38 LDLIBS += -L$(ROOT)/usr/lib/fm -lfmd_log -lnvpair -ltopo -lfmd_msg
39 LDFLAGS += -R/usr/lib/fm
40 LINTFLAGS += -mnu
41 CERRWARN += -_gcc=-Wno-parentheses
42 CERRWARN += -_gcc=-Wno-uninitialized
43
44 .NO_PARALLEL:
45 .PARALLEL: $(OBJS) $(LINTFILES)
46
47 all: $(PROG)
48
49 $(PROG): $(OBJS)
50 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
51 $(CTFMERGE) -L VERSION -o $@ $(OBJS)
52 $(POST_PROCESS)
53
54 %.o: ../common/%.c
55 $(COMPILE.c) $<
56 $(CTFCONVERT_O)
57
58 %.o: %.c
59 $(COMPILE.c) $<
60 $(CTFCONVERT_O)
61
62 clean:
|
22 # Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
23 #
24
25 .KEEP_STATE:
26 .SUFFIXES:
27
28 SRCS += fmdump.c nvlrender.c asru.c error.c fault.c scheme.c info.c
29 OBJS = $(SRCS:%.c=%.o)
30 LINTFILES = $(SRCS:%.c=%.ln)
31
32 PROG = fmdump
33 ROOTPROG = $(ROOTUSRSBIN)/$(PROG)
34
35 $(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
36 CPPFLAGS += -I. -I../common -I../../include
37 CFLAGS += $(CTF_FLAGS) $(CCVERBOSE) $(XSTRCONST)
38 LDLIBS += -L$(ROOT)/usr/lib/fm -lfmd_log -lnvpair -ltopo -lfmd_msg
39 LDFLAGS += -R/usr/lib/fm
40 LINTFLAGS += -mnu
41 CERRWARN += -_gcc=-Wno-parentheses
42 CERRWARN += $(CNOWARN_UNINIT)
43
44 .NO_PARALLEL:
45 .PARALLEL: $(OBJS) $(LINTFILES)
46
47 all: $(PROG)
48
49 $(PROG): $(OBJS)
50 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
51 $(CTFMERGE) -L VERSION -o $@ $(OBJS)
52 $(POST_PROCESS)
53
54 %.o: ../common/%.c
55 $(COMPILE.c) $<
56 $(CTFCONVERT_O)
57
58 %.o: %.c
59 $(COMPILE.c) $<
60 $(CTFCONVERT_O)
61
62 clean:
|