2001-06-02 23:25:43 +00:00
|
|
|
|
2001-06-03 10:48:36 +00:00
|
|
|
include config.mak
|
2001-06-02 23:25:43 +00:00
|
|
|
|
2001-06-04 21:00:47 +00:00
|
|
|
LIBNAME = libao2.a
|
2001-06-02 23:25:43 +00:00
|
|
|
|
2001-06-03 10:48:36 +00:00
|
|
|
# TODO: moveout ao_sdl.c so it's only used when SDL is detected
|
2001-06-05 18:40:44 +00:00
|
|
|
SRCS=audio_out.c ao_null.c $(OPTIONAL_SRCS)
|
2001-06-02 23:25:43 +00:00
|
|
|
OBJS=$(SRCS:.c=.o)
|
|
|
|
|
2001-06-05 18:40:44 +00:00
|
|
|
CFLAGS = $(OPTFLAGS) -I. -I.. $(SDL_INC)
|
2001-06-02 23:25:43 +00:00
|
|
|
# -I/usr/X11R6/include/
|
|
|
|
|
|
|
|
.SUFFIXES: .c .o
|
|
|
|
|
|
|
|
# .PHONY: all clean
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CC) -c $(CFLAGS) -o $@ $<
|
|
|
|
|
2001-06-04 19:33:28 +00:00
|
|
|
$(LIBNAME): $(OBJS)
|
2001-06-02 23:25:43 +00: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 19:33:28 +00:00
|
|
|
depend:
|
2001-06-02 23:25:43 +00:00
|
|
|
$(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
|
|
|
|
|
|
|
|
#
|
|
|
|
# include dependency files if they exist
|
|
|
|
#
|
|
|
|
ifneq ($(wildcard .depend),)
|
|
|
|
include .depend
|
|
|
|
endif
|