summaryrefslogtreecommitdiffstats
path: root/TOOLS
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-11-18 14:55:37 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-11-18 14:55:37 +0000
commit8b0bb9d1469b2b80e0fdf3fc4f0a70a14b763596 (patch)
tree2b1fcaf282fab04f1070cb575913962623bc80f5 /TOOLS
parent36e1974be0234a4bad37aa43a8f158242feea948 (diff)
downloadmpv-8b0bb9d1469b2b80e0fdf3fc4f0a70a14b763596.tar.bz2
mpv-8b0bb9d1469b2b80e0fdf3fc4f0a70a14b763596.tar.xz
Makefile reorganized for better clarity and maintainability.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17014 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'TOOLS')
-rw-r--r--TOOLS/subfont-c/Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/TOOLS/subfont-c/Makefile b/TOOLS/subfont-c/Makefile
index d64e57370f..b93a23b837 100644
--- a/TOOLS/subfont-c/Makefile
+++ b/TOOLS/subfont-c/Makefile
@@ -1,6 +1,9 @@
-include ../../config.mak
-LDLIBS=-lm ../../osdep/timer-lx.o $(shell freetype-config --libs)
+MPROOT=../..
+
+include $(MPROOT)/config.mak
+
+LDLIBS=-lm $(MPROOT)/osdep/timer-lx.o $(shell freetype-config --libs)
CFLAGS=$(OPTFLAGS) $(shell freetype-config --cflags)
#CFLAGS+=-O0 # for RedHat's gcc-2.96-95
@@ -12,10 +15,11 @@ CFLAGS=$(OPTFLAGS) $(shell freetype-config --cflags)
subfont: subfont.o
-subfont.o: subfont.c Makefile ../../bswap.h
+subfont.o: subfont.c
+ $(CC) $(CFLAGS) -c $< -o $@
-subfont.S: subfont.c Makefile ../../bswap.h
+subfont.S: subfont.c
$(CC) $(CFLAGS) -S $< -o $@
clean:
- rm -f subfont subfont.o core
+ rm -f subfont subfont.o subfont.S core