27 .KEEP_STATE:
28
29 PROG = findfp
30
31 SRCS = \
32 die.c \
33 findfp.c \
34 findscn.c \
35 findsym.c
36 OBJS = $(SRCS:%.c=%.o)
37
38 include ../../../../Makefile.cmd
39 include ../../common/Makefile.util
40
41 #
42 # We're going to run this as part of the build, so we want it to use the
43 # running kernel's includes and libraries.
44 #
45 CPPFLAGS = -I../../common -I../common
46 CFLAGS += $(CCVERBOSE)
47 CERRWARN += -_gcc=-Wno-uninitialized
48 LDFLAGS =
49 LDLIBS = -lelf
50
51 LINTFILES = $(SRCS:%.c=%.ln)
52
53 install all: $(PROG)
54
55 clobber clean:
56 $(RM) $(OBJS) $(LINTFILES) $(PROG)
57
58 lint: $(LINTFILES)
59 $(LINT) $(LINTFLAGS) $(LINTFILES) $(LDLIBS)
60
61 $(PROG): $(OBJS)
62 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
63 $(POST_PROCESS)
64
65 %.o: %.c
66 $(COMPILE.c) $<
67 $(POST_PROCESS_O)
|
27 .KEEP_STATE:
28
29 PROG = findfp
30
31 SRCS = \
32 die.c \
33 findfp.c \
34 findscn.c \
35 findsym.c
36 OBJS = $(SRCS:%.c=%.o)
37
38 include ../../../../Makefile.cmd
39 include ../../common/Makefile.util
40
41 #
42 # We're going to run this as part of the build, so we want it to use the
43 # running kernel's includes and libraries.
44 #
45 CPPFLAGS = -I../../common -I../common
46 CFLAGS += $(CCVERBOSE)
47 CERRWARN += $(CNOWARN_UNINIT)
48 LDFLAGS =
49 LDLIBS = -lelf
50
51 LINTFILES = $(SRCS:%.c=%.ln)
52
53 install all: $(PROG)
54
55 clobber clean:
56 $(RM) $(OBJS) $(LINTFILES) $(PROG)
57
58 lint: $(LINTFILES)
59 $(LINT) $(LINTFLAGS) $(LINTFILES) $(LDLIBS)
60
61 $(PROG): $(OBJS)
62 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
63 $(POST_PROCESS)
64
65 %.o: %.c
66 $(COMPILE.c) $<
67 $(POST_PROCESS_O)
|