954
|
1
|
966
|
2 include config.mak
|
954
|
3
|
1013
|
4 LIBNAME = libao2.a
|
954
|
5
|
966
|
6 # TODO: moveout ao_sdl.c so it's only used when SDL is detected
|
2812
|
7 SRCS=afmt.c audio_out.c ao_mpegpes.c ao_null.c ao_pcm.c $(OPTIONAL_SRCS)
|
954
|
8 OBJS=$(SRCS:.c=.o)
|
|
9
|
1234
|
10 CFLAGS = $(OPTFLAGS) -I. -I.. $(SDL_INC) $(EXTRA_INC)
|
954
|
11
|
|
12 .SUFFIXES: .c .o
|
|
13
|
|
14 # .PHONY: all clean
|
|
15
|
|
16 .c.o:
|
|
17 $(CC) -c $(CFLAGS) -o $@ $<
|
|
18
|
1010
|
19 $(LIBNAME): $(OBJS)
|
954
|
20 $(AR) r $(LIBNAME) $(OBJS)
|
|
21
|
|
22 all: $(LIBNAME)
|
|
23
|
|
24 clean:
|
|
25 rm -f *.o *.a *~
|
|
26
|
|
27 distclean:
|
|
28 rm -f Makefile.bak *.o *.a *~ .depend
|
|
29
|
|
30 dep: depend
|
|
31
|
1010
|
32 depend:
|
954
|
33 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
|
|
34
|
|
35 #
|
|
36 # include dependency files if they exist
|
|
37 #
|
|
38 ifneq ($(wildcard .depend),)
|
|
39 include .depend
|
|
40 endif
|