60
61 OBJECTS= $(LOBJS)
62 POFILES= $(OBJECTS:.o=.po)
63 GENERAL= ../include
64 GLOBAL= ../../../head
65 CPPFLAGS= -I$(GENERAL) -I$(GLOBAL) $(CPPFLAGS.master)
66 CERRWARN += -_gcc=-Wno-implicit-function-declaration
67 CERRWARN += -_gcc=-Wno-parentheses
68 CERRWARN += -_gcc=-Wno-unused-label
69 CERRWARN += -_gcc=-Wno-unused-variable
70 LINTOUT= lint.out
71 CLEANFILES= $(OBJECTS) $(LINTOUT) $(LINTLIB) $(DEBUGS) *.ln \
72 $(YSRC) $(LIBRARY)
73 LINTFLAGS += -y
74
75 # support for -g library
76 GLIB= libdump_g.a
77 DEBUGS= $(OBJECTS:%=.debug/%)
78 $(GLIB):= AROBJS = $(DEBUGS)
79 $(GLIB):= DIR = .debug
80 $(GLIB):= CFLAGS= -g $(XESS) -DDEBUG -DYYDEBUG ${SBFLAGS}
81
82 .KEEP_STATE:
83
84 all: $(LIBS)
85
86 debug: $(LIBS) $(GLIB)
87
88 .debug:
89 -@mkdir -p $@
90
91 .debug/%.o: %.c
92 $(COMPILE.c) -o $@ $<
93 $(POST_PROCESS_O)
94
95 $(GLIB): .debug $$(DEBUGS)
96 $(BUILD.AR)
97 $(POST_PROCESS_A)
98
99 $(OBJECTS): $(HDRS)
100
|
60
61 OBJECTS= $(LOBJS)
62 POFILES= $(OBJECTS:.o=.po)
63 GENERAL= ../include
64 GLOBAL= ../../../head
65 CPPFLAGS= -I$(GENERAL) -I$(GLOBAL) $(CPPFLAGS.master)
66 CERRWARN += -_gcc=-Wno-implicit-function-declaration
67 CERRWARN += -_gcc=-Wno-parentheses
68 CERRWARN += -_gcc=-Wno-unused-label
69 CERRWARN += -_gcc=-Wno-unused-variable
70 LINTOUT= lint.out
71 CLEANFILES= $(OBJECTS) $(LINTOUT) $(LINTLIB) $(DEBUGS) *.ln \
72 $(YSRC) $(LIBRARY)
73 LINTFLAGS += -y
74
75 # support for -g library
76 GLIB= libdump_g.a
77 DEBUGS= $(OBJECTS:%=.debug/%)
78 $(GLIB):= AROBJS = $(DEBUGS)
79 $(GLIB):= DIR = .debug
80 $(GLIB):= CFLAGS= $(CCGDEBUG) $(XESS) -DDEBUG -DYYDEBUG ${SBFLAGS}
81
82 .KEEP_STATE:
83
84 all: $(LIBS)
85
86 debug: $(LIBS) $(GLIB)
87
88 .debug:
89 -@mkdir -p $@
90
91 .debug/%.o: %.c
92 $(COMPILE.c) -o $@ $<
93 $(POST_PROCESS_O)
94
95 $(GLIB): .debug $$(DEBUGS)
96 $(BUILD.AR)
97 $(POST_PROCESS_A)
98
99 $(OBJECTS): $(HDRS)
100
|