mirror of
https://github.com/mpv-player/mpv
synced 2025-01-12 09:59:44 +00:00
4d28c4ee51
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3997 b3059339-0415-0410-9bf9-f77b7e298cf2
56 lines
1.0 KiB
Makefile
56 lines
1.0 KiB
Makefile
# makefile
|
|
|
|
include ../../config.mak
|
|
|
|
|
|
RADEON_VID=radeon_vid.so
|
|
RADEON_SRCS=radeon_vid.c
|
|
RADEON_OBJS=radeon_vid.o
|
|
RADEON_LIBS=-L../../libdha -ldha -lm
|
|
RADEON_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. -Wall -W
|
|
|
|
RAGE128_VID=rage128_vid.so
|
|
RAGE128_SRCS=radeon_vid.c
|
|
RAGE128_OBJS=rage128_vid.o
|
|
RAGE128_LIBS=-L../../libdha -ldha
|
|
RAGE128_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. -Wall -W -DRAGE128
|
|
|
|
all: $(RADEON_VID) $(RAGE128_VID)
|
|
|
|
|
|
.SUFFIXES: .c .o
|
|
|
|
# .PHONY: all clean
|
|
|
|
$(RADEON_OBJS): $(RADEON_SRCS)
|
|
$(CC) -c $(RADEON_CFLAGS) -o $@ $<
|
|
|
|
$(RADEON_VID): $(RADEON_OBJS)
|
|
$(CC) $(RADEON_LIBS) -shared -o $(RADEON_VID) $(RADEON_OBJS)
|
|
|
|
$(RAGE128_OBJS): $(RAGE128_SRCS)
|
|
$(CC) -c $(RAGE128_CFLAGS) -o $@ $<
|
|
|
|
$(RAGE128_VID): $(RAGE128_OBJS)
|
|
$(CC) $(RAGE128_LIBS) -shared -o $(RAGE128_VID) $(RAGE128_OBJS)
|
|
|
|
clean:
|
|
rm -f *.o *.so *~
|
|
|
|
distclean:
|
|
rm -f Makefile.bak *.o *.so test *~ .depend
|
|
|
|
dep: depend
|
|
|
|
depend:
|
|
$(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
|
|
|
|
install:
|
|
|
|
#
|
|
# include dependency files if they exist
|
|
#
|
|
ifneq ($(wildcard .depend),)
|
|
include .depend
|
|
endif
|