mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-23 22:45:39 +00:00
with this build system change, if (and only if) --enable-dev-mode was used and DONT_OPTIMIZE is turned on, when a source file is compiled it will actually be preprocessed (into a .i or .ii file), then compiled once with optimization (with the result sent to /dev/null) and again without optimization (but only if the first compile succeeded, of course). while making these changes, i did some cleanup work in Makefile.rules to move commonly-used combinations of flag variables into their own variables, to make the file easier to read and maintain git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@157859 65c4cc65-6c06-0410-ace0-fbb531ad65f3
30 lines
346 B
Makefile
30 lines
346 B
Makefile
OBJS=localtime.o
|
|
|
|
all: libtime.a
|
|
|
|
libtime.a: $(OBJS)
|
|
ar rv $@ $(OBJS)
|
|
ranlib $@
|
|
|
|
install:
|
|
|
|
uninstall:
|
|
|
|
clean-depend:
|
|
rm -f .depend
|
|
|
|
clean: clean-depend
|
|
rm -f libtime.a *.o test *.i
|
|
|
|
depend: .depend
|
|
|
|
.depend:
|
|
../build_tools/mkdep $(CFLAGS) *.c
|
|
|
|
test: test.c
|
|
${CC} ${CFLAGS} -o test test.c
|
|
|
|
ifneq ($(wildcard .depend),)
|
|
include .depend
|
|
endif
|