diff --git a/bsnes/Makefile b/bsnes/Makefile index 497f591..3f46c88 100644 --- a/bsnes/Makefile +++ b/bsnes/Makefile @@ -70,6 +70,7 @@ endif # implicit rules compile = \ + @echo Compiling $<... &&\ $(strip \ $(if $(filter %.c,$<), \ $(c) $(flags) $1 -c $< -o $@, \ @@ -91,15 +92,17 @@ objects := $(patsubst %,$(objdir)/%.o,$(objects)) # targets build: ui_build $(objects) ifeq ($(platform),osx) - test -d $(osxbundle) || mkdir -p $(osxbundle)/Contents/MacOS - $(strip $(cpp) -o $(osxbundle)/Contents/MacOS/$(out) $(objects) $(link)) - mkdir -p $(osxbundle)/Contents/Resources - cp -f data/bsnes.icns $(osxbundle)/Contents/Resources/AppIcon.icns - sed 's/@VERSION/v$(version)/g' data/Info.plist > $(osxbundle)/Contents/Info.plist + @echo Linking $(osxbundle)... + @test -d $(osxbundle) || mkdir -p $(osxbundle)/Contents/MacOS + @$(strip $(cpp) -o $(osxbundle)/Contents/MacOS/$(out) $(objects) $(link)) + @mkdir -p $(osxbundle)/Contents/Resources + @cp -f data/bsnes.icns $(osxbundle)/Contents/Resources/AppIcon.icns + @sed 's/@VERSION/v$(version)/g' data/Info.plist > $(osxbundle)/Contents/Info.plist else + @echo Linking out/$(out)... # $(foreach qtdll,$(qtdlls),xcopy $(winqtpath)\bin\$(qtdll) .\out\ /D /Y &) # $(foreach qtplatformdll,$(qtplatformdlls),xcopy $(winqtpath)\$(qtplatformdll) .\out\platforms\ /D /Y &) - $(strip $(cpp) -o out/$(out) $(objects) $(link)) + @$(strip $(cpp) -o out/$(out) $(objects) $(link)) endif install: build plugins diff --git a/snesfilter/Makefile b/snesfilter/Makefile index 623b8ec..dad3996 100644 --- a/snesfilter/Makefile +++ b/snesfilter/Makefile @@ -36,6 +36,7 @@ endif objects := snesfilter compile = \ + @echo Compiling $<... &&\ $(strip \ $(if $(filter %.c,$<), \ $(c) $(flags) $1 -c $< -o $@, \ @@ -76,13 +77,16 @@ obj/snesfilter.o: snesfilter.cpp * build: $(moc_objects) $(objects) ifeq ($(platform),x) - ar rcs libsnesfilter.a $(objects) - $(cpp) $(link) -o libsnesfilter.so -shared -Wl,-soname,libsnesfilter.so.1 $(objects) $(qtlib) + @echo Linking libsnesfilter.so... + @ar rcs libsnesfilter.a $(objects) + @$(cpp) $(link) -o libsnesfilter.so -shared -Wl,-soname,libsnesfilter.so.1 $(objects) $(qtlib) else ifeq ($(platform),osx) - ar rcs libsnesfilter.a $(objects) - $(cpp) $(link) -o libsnesfilter.dylib -shared -dynamiclib $(objects) $(qtlib) + @echo Linking libsnesfilter.dylib... + @ar rcs libsnesfilter.a $(objects) + @$(cpp) $(link) -o libsnesfilter.dylib -shared -dynamiclib $(objects) $(qtlib) else ifeq ($(platform),$(filter $(platform),win msys)) - $(cpp) $(link) -o snesfilter.dll -shared -Wl,--out-implib,libsnesfilter.a $(objects) $(qtlib) + @echo Linking snesfilter.dll... + @$(cpp) $(link) -o snesfilter.dll -shared -Wl,--out-implib,libsnesfilter.a $(objects) $(qtlib) endif install: diff --git a/snesmusic/Makefile b/snesmusic/Makefile index df232db..2736a41 100644 --- a/snesmusic/Makefile +++ b/snesmusic/Makefile @@ -32,6 +32,7 @@ objects += bitmap_font objects += adler32 crc32 inffast inflate inftrees zutil compile = \ + @echo Compiling $<... &&\ $(strip \ $(if $(filter %.c,$<), \ $(c) $(flags) $1 -c $< -o $@, \ @@ -76,13 +77,16 @@ obj/zutil.o : $(zlib)/zutil.c $(zlib)/* build: $(objects) ifeq ($(platform),$(filter $(platform),win msys)) - $(cpp) $(link) -o snesmusic.dll -shared -Wl,--out-implib,libsnesmusic.a $(objects) $(qtlib) + @echo Linking snesmusic.dll... + @$(cpp) $(link) -o snesmusic.dll -shared -Wl,--out-implib,libsnesmusic.a $(objects) $(qtlib) else ifeq ($(platform),osx) - ar rcs libsnesmusic.a $(objects) - $(cpp) $(link) -o libsnesmusic.dylib -shared -dynamiclib $(objects) $(qtlib) + @echo Linking libsnesfilter.dylib... + @ar rcs libsnesmusic.a $(objects) + @$(cpp) $(link) -o libsnesmusic.dylib -shared -dynamiclib $(objects) $(qtlib) else - ar rcs libsnesmusic.a $(objects) - $(cpp) $(link) -o libsnesmusic.so -shared -Wl,-soname,libsnesmusic.so.1 $(objects) $(qtlib) + @echo Linking libsnesfilter.so... + @ar rcs libsnesmusic.a $(objects) + @$(cpp) $(link) -o libsnesmusic.so -shared -Wl,-soname,libsnesmusic.so.1 $(objects) $(qtlib) endif install: diff --git a/snesreader/Makefile b/snesreader/Makefile index 65c9089..704045a 100644 --- a/snesreader/Makefile +++ b/snesreader/Makefile @@ -44,6 +44,7 @@ objects += micro-bunzip objects += jma jcrc32 lzmadecode 7zlzma iiostrm inbyte lzma winout compile = \ + @echo Compiling $<... &&\ $(strip \ $(if $(filter %.c,$<), \ $(c) $(flags) $1 -c $< -o $@, \ @@ -176,13 +177,16 @@ obj/winout.o : libjma/winout.cpp libjma/* build: $(moc_objects) $(objects) ifeq ($(platform),x) - ar rcs libsnesreader.a $(objects) - $(cpp) $(link) -o libsnesreader.so -shared -Wl,-soname,libsnesreader.so.1 $(objects) $(qtlib) + @echo Linking libsnesreader.so... + @ar rcs libsnesreader.a $(objects) + @$(cpp) $(link) -o libsnesreader.so -shared -Wl,-soname,libsnesreader.so.1 $(objects) $(qtlib) else ifeq ($(platform),osx) - ar rcs libsnesreader.a $(objects) - $(cpp) $(link) -o libsnesreader.dylib -shared -dynamiclib $(objects) $(qtlib) + @echo Linking libsnesreader.dylib... + @ar rcs libsnesreader.a $(objects) + @$(cpp) $(link) -o libsnesreader.dylib -shared -dynamiclib $(objects) $(qtlib) else ifeq ($(platform),$(filter $(platform),win msys)) - $(cpp) $(link) -o snesreader.dll -shared -Wl,--out-implib,libsnesreader.a $(objects) $(qtlib) + @echo Linking snesreader.dll... + @$(cpp) $(link) -o snesreader.dll -shared -Wl,--out-implib,libsnesreader.a $(objects) $(qtlib) endif install: diff --git a/supergameboy/Makefile b/supergameboy/Makefile index 0c3fbb8..5e2e709 100644 --- a/supergameboy/Makefile +++ b/supergameboy/Makefile @@ -24,6 +24,7 @@ objects += ly_counter lyc_irq next_m0_time ppu sprite_mapper objects += file compile = \ + @echo Compiling $<... &&\ $(strip \ $(if $(filter %.c,$<), \ $(c) $(flags) $1 -c $< -o $@, \ @@ -90,13 +91,16 @@ obj/file.o: libgambatte/src/file/file.cpp $(call rwildcard,common/) $(call rwild build: $(objects) ifeq ($(platform),$(filter $(platform),win msys)) - $(cpp) $(link) -o supergameboy.dll -shared -Wl,--out-implib,libsupergameboy.a $(objects) $(qtlib) + @echo Linking supergameboy.dll... + @$(cpp) $(link) -o supergameboy.dll -shared -Wl,--out-implib,libsupergameboy.a $(objects) $(qtlib) else ifeq ($(platform),osx) - ar rcs libsupergameboy.a $(objects) - $(cpp) $(link) -o libsupergameboy.dylib -shared -dynamiclib $(objects) $(qtlib) + @echo Linking libsupergameboy.dylib... + @ar rcs libsupergameboy.a $(objects) + @$(cpp) $(link) -o libsupergameboy.dylib -shared -dynamiclib $(objects) $(qtlib) else - ar rcs libsupergameboy.a $(objects) - $(cpp) $(link) -o libsupergameboy.so -shared -Wl,-soname,libsupergameboy.so.1 $(objects) $(qtlib) + @echo Linking libsupergameboy.so... + @ar rcs libsupergameboy.a $(objects) + @$(cpp) $(link) -o libsupergameboy.so -shared -Wl,-soname,libsupergameboy.so.1 $(objects) $(qtlib) endif install: