mirror of
https://github.com/mpv-player/mpv
synced 2024-12-17 20:34:58 +00:00
4f36a70cd2
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21199 b3059339-0415-0410-9bf9-f77b7e298cf2
37 lines
693 B
Makefile
37 lines
693 B
Makefile
include ../config.mak
|
|
|
|
CFLAGS=-I. -I.. -DMPLAYER -D__WINE__ $(OPTFLAGS)
|
|
#CFLAGS+=-Ddbg_printf=__vprintf -DTRACE=__vprintf -DDETAILED_OUT
|
|
|
|
SRCS= driver.c afl.c vfl.c
|
|
ifneq ($(TARGET_WIN32),yes)
|
|
SRCS+= ldt_keeper.c pe_image.c module.c ext.c win32.c \
|
|
pe_resource.c resource.c registry.c elfdll.c wrapper.S stubs.s
|
|
endif
|
|
|
|
OBJS = $(SRCS:.c=.o)
|
|
OBJS := $(OBJS:.S=.o)
|
|
OBJS := $(OBJS:.s=.o)
|
|
|
|
all: libloader.a
|
|
|
|
libloader.a: $(OBJS)
|
|
$(AR) -r libloader.a $(OBJS)
|
|
$(RANLIB) libloader.a
|
|
|
|
clean:
|
|
rm -f *.o *.a *~
|
|
|
|
distclean: clean
|
|
rm -f .depend
|
|
|
|
dep depend:
|
|
$(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
|
|
|
|
#
|
|
# include dependency files if they exist
|
|
#
|
|
ifneq ($(wildcard .depend),)
|
|
include .depend
|
|
endif
|