2001-06-03 01:25:43 +02:00
|
|
|
|
2001-06-03 12:48:36 +02:00
|
|
|
include config.mak
|
2001-06-03 01:25:43 +02:00
|
|
|
|
2001-06-04 23:00:47 +02:00
|
|
|
LIBNAME = libao2.a
|
2001-06-03 01:25:43 +02:00
|
|
|
|
2001-06-03 12:48:36 +02:00
|
|
|
# TODO: moveout ao_sdl.c so it's only used when SDL is detected
|
2002-06-15 08:15:07 +02:00
|
|
|
SRCS=afmt.c audio_out.c ao_mpegpes.c ao_null.c ao_pcm.c ao_plugin.c pl_delay.c pl_format.c pl_surround.c remez.c pl_resample.c pl_volume.c pl_extrastereo.c pl_volnorm.c pl_eq.c $(OPTIONAL_SRCS)
|
2001-12-20 16:30:22 +01:00
|
|
|
|
2001-06-03 01:25:43 +02:00
|
|
|
OBJS=$(SRCS:.c=.o)
|
|
|
|
|
2002-12-27 17:20:02 +01:00
|
|
|
CFLAGS = $(OPTFLAGS) -I. -I.. $(ARTS_INC) $(ESD_INC) $(SDL_INC) $(X11_INC) $(EXTRA_INC) $(DXR2_INC) $(DVB_INC)
|
2001-06-03 01:25:43 +02:00
|
|
|
|
|
|
|
.SUFFIXES: .c .o
|
|
|
|
|
|
|
|
# .PHONY: all clean
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CC) -c $(CFLAGS) -o $@ $<
|
|
|
|
|
2001-06-04 21:33:28 +02:00
|
|
|
$(LIBNAME): $(OBJS)
|
2001-06-03 01:25:43 +02:00
|
|
|
$(AR) r $(LIBNAME) $(OBJS)
|
|
|
|
|
|
|
|
all: $(LIBNAME)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *.a *~
|
|
|
|
|
|
|
|
distclean:
|
|
|
|
rm -f Makefile.bak *.o *.a *~ .depend
|
|
|
|
|
|
|
|
dep: depend
|
|
|
|
|
2001-06-04 21:33:28 +02:00
|
|
|
depend:
|
2001-06-03 01:25:43 +02:00
|
|
|
$(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
|
|
|
|
|
|
|
|
#
|
|
|
|
# include dependency files if they exist
|
|
|
|
#
|
|
|
|
ifneq ($(wildcard .depend),)
|
|
|
|
include .depend
|
|
|
|
endif
|
2001-11-24 06:21:22 +01:00
|
|
|
|