changeset 17013:3bfc7cbf4060

Makefile reorganized for better clarity and maintainability.
author diego
date Fri, 18 Nov 2005 14:55:37 +0000
parents 6ff3379a0862
children c304e5836276
files TOOLS/subfont-c/Makefile
diffstat 1 files changed, 9 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/TOOLS/subfont-c/Makefile	Fri Nov 18 14:39:25 2005 +0000
+++ b/TOOLS/subfont-c/Makefile	Fri Nov 18 14:55:37 2005 +0000
@@ -1,6 +1,9 @@
-include ../../config.mak
+
+MPROOT=../..
 
-LDLIBS=-lm ../../osdep/timer-lx.o $(shell freetype-config --libs)
+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 @@
 
 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