Added SILENT make option and some output comsmetics.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19455 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2008-12-16 08:57:57 +00:00
parent 5b9ddb746e
commit 680a5df6fe

View file

@ -1,3 +1,4 @@
SILENT = @
INCLUDE = -I../../firmware/export \ INCLUDE = -I../../firmware/export \
-I../../apps -I../../uisimulator/sdl -I/usr/include/SDL -I../../apps -I../../uisimulator/sdl -I/usr/include/SDL
FIRMINC = -I../../firmware/include -fno-builtin FIRMINC = -I../../firmware/include -fno-builtin
@ -22,16 +23,16 @@ VPATH = ../../apps ../../apps/metadata ../../firmware/common ../../firmware/ \
all: database all: database
%.o : ../../uisimulator/common/%.c %.o : ../../uisimulator/common/%.c
@echo $(<F) @echo CC $(<F)
@$(CC) $(CFLAGS) -c -o $@ $< $(SILENT)$(CC) $(CFLAGS) -c -o $@ $<
%.o : %.c $< %.o : %.c $<
@echo $(<F) @echo CC $(<F)
@$(CC) $(FIRMINC) $(CFLAGS) -c -o $@ $< $(SILENT)$(CC) $(FIRMINC) $(CFLAGS) -c -o $@ $<
database: $(OBJ) database: $(OBJ)
@echo Linking $@ @echo LD $@
@$(CC) -g -ldl -o $@ $+ $(SILENT)$(CC) -g -ldl -o $@ $+
clean: clean:
rm $(OBJ) rm $(OBJ)