comparison mp3lib/Makefile @ 866:91087aaea5c7

using gcc -MM instead of makedepend, make OBJS from SRCS where possible
author arpi_esp
date Thu, 24 May 2001 21:09:13 +0000
parents 93304e7353c8
children 6d3a6d42c831
comparison
equal deleted inserted replaced
865:83919c1b9924 866:91087aaea5c7
1 1
2 include config.mak 2 include config.mak
3 3
4 SRCS = sr1.c d_cpu.s decode_i586.s $(OPTIONAL_SRCS) 4 SRCS = sr1.c d_cpu.s decode_i586.s $(OPTIONAL_SRCS)
5 OBJS = sr1.o d_cpu.o decode_i586.o $(OPTIONAL_OBJS) 5 OBJS = sr1.o d_cpu.o decode_i586.o $(OPTIONAL_OBJS)
6 # OBJS = $(SRCS:.c,.s=.o)
6 CFLAGS = $(OPTFLAGS) 7 CFLAGS = $(OPTFLAGS)
7 8
8 .SUFFIXES: .c .o 9 .SUFFIXES: .c .o
9 10
10 # .PHONY: all clean 11 # .PHONY: all clean
34 35
35 dep: depend 36 dep: depend
36 depend: .depend 37 depend: .depend
37 38
38 .depend: Makefile config.mak ../config.mak ../config.h 39 .depend: Makefile config.mak ../config.mak ../config.h
39 makedepend -f- -- $(CFLAGS) -- $(SRCS) 1>.depend 2>/dev/null 40 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
40 41
41 # 42 #
42 # include dependency files if they exist 43 # include dependency files if they exist
43 # 44 #
44 ifneq ($(wildcard .depend),) 45 ifneq ($(wildcard .depend),)