25
26 PROG = latencytop
27 OBJS = latencytop.o display.o dwrapper.o klog.o stat.o table.o util.o
28 SRCS = $(OBJS:%.o=../common/%.c)
29
30 include ../../Makefile.cmd
31
32 CFLAGS += $(CCVERBOSE)
33 CFLAGS64 += $(CCVERBOSE)
34
35 CERRWARN += -_gcc=-Wno-uninitialized
36
37 CPPFLAGS += -DEMBED_CONFIGS -I$(ADJUNCT_PROTO)/usr/include/glib-2.0 \
38 -I$(ADJUNCT_PROTO)/usr/lib/glib-2.0/include
39 C99MODE = $(C99_ENABLE)
40 LDLIBS += -lcurses -ldtrace
41 all install := LDLIBS += -lglib-2.0
42
43 LINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2
44 LINTFLAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
45 LINTFLAGS64 += -erroff=E_NAME_USED_NOT_DEF2
46 LINTFLAGS64 += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
47
48 FILEMODE = 0555
49
50 ELFWRAP = elfwrap
51 WRAPOBJ = latencytop_wrap.o
52
53 CLEANFILES += $(OBJS) $(WRAPOBJ) ./latencytop_d ./latencytop_trans
54
55 .KEEP_STATE:
56
57 all: $(PROG)
58
59 install: $(SUBDIRS)
60 -$(RM) $(ROOTPROG)
61 -$(LN) $(ISAEXEC) $(ROOTPROG)
62
63 $(PROG): $(OBJS) $(WRAPOBJ)
64 $(LINK.c) -o $@ $(OBJS) $(WRAPOBJ) $(LDLIBS)
65 $(POST_PROCESS)
66
67 $(WRAPOBJ): latencytop_d latencytop_trans
68 $(ELFWRAP) $(WRAPOPT) -o $(WRAPOBJ) latencytop_d latencytop_trans
69
70 latencytop_d:
|
25
26 PROG = latencytop
27 OBJS = latencytop.o display.o dwrapper.o klog.o stat.o table.o util.o
28 SRCS = $(OBJS:%.o=../common/%.c)
29
30 include ../../Makefile.cmd
31
32 CFLAGS += $(CCVERBOSE)
33 CFLAGS64 += $(CCVERBOSE)
34
35 CERRWARN += -_gcc=-Wno-uninitialized
36
37 CPPFLAGS += -DEMBED_CONFIGS -I$(ADJUNCT_PROTO)/usr/include/glib-2.0 \
38 -I$(ADJUNCT_PROTO)/usr/lib/glib-2.0/include
39 C99MODE = $(C99_ENABLE)
40 LDLIBS += -lcurses -ldtrace
41 all install := LDLIBS += -lglib-2.0
42
43 LINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2
44 LINTFLAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
45 LINTFLAGS += -erroff=E_STATIC_UNUSED
46 LINTFLAGS64 += -erroff=E_NAME_USED_NOT_DEF2
47 LINTFLAGS64 += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
48 LINTFLAGS64 += -erroff=E_STATIC_UNUSED
49
50 FILEMODE = 0555
51
52 WRAPOBJ = latencytop_wrap.o
53
54 CLEANFILES += $(OBJS) $(WRAPOBJ) ./latencytop_d ./latencytop_trans
55
56 .KEEP_STATE:
57
58 all: $(PROG)
59
60 install: $(SUBDIRS)
61 -$(RM) $(ROOTPROG)
62 -$(LN) $(ISAEXEC) $(ROOTPROG)
63
64 $(PROG): $(OBJS) $(WRAPOBJ)
65 $(LINK.c) -o $@ $(OBJS) $(WRAPOBJ) $(LDLIBS)
66 $(POST_PROCESS)
67
68 $(WRAPOBJ): latencytop_d latencytop_trans
69 $(ELFWRAP) $(WRAPOPT) -o $(WRAPOBJ) latencytop_d latencytop_trans
70
71 latencytop_d:
|