Cleaned up the make output to be less noisy.

This commit is contained in:
Pietro Gagliardi 2015-05-07 18:46:19 -04:00
parent 817e13ae61
commit e6b33aafd0
3 changed files with 11 additions and 10 deletions

View File

@ -31,23 +31,27 @@ xLDFLAGS = \
OUT = $(OUTDIR)/$(OUTBASE)$(baseSUFFIX)
$(OUT): $(OFILES) | $(OUTDIR)/.phony
$(CC) -o $(OUT) $(OFILES) $(xLDFLAGS)
@$(CC) -o $(OUT) $(OFILES) $(xLDFLAGS)
@echo ====== Linked $(OUT)
.SECONDEXPANSION:
$(OBJDIR)/%.o: %.c $(xHFILES) | $$(dir $$@).phony
$(CC) -o $@ -c $< $(xCFLAGS)
@$(CC) -o $@ -c $< $(xCFLAGS)
@echo ====== Compiled $<
$(OBJDIR)/%.o: %.m $(xHFILES) | $$(dir $$@).phony
$(CC) -o $@ -c $< $(xCFLAGS)
@$(CC) -o $@ -c $< $(xCFLAGS)
@echo ====== Compiled $<
# see http://www.cmcrossroads.com/article/making-directories-gnu-make
%/.phony:
mkdir -p $(dir $@)
touch $@
@mkdir -p $(dir $@)
@touch $@
.PRECIOUS: %/.phony
ui.h: ui.idl
idl2h -extern _UI_EXTERN -guard __UI_UI_H__ < ui.idl > ui.h
@idl2h -extern _UI_EXTERN -guard __UI_UI_H__ < ui.idl > ui.h
@echo ====== Generated ui.h
clean:
rm -rf $(OUTDIR) $(OBJDIR) ui.h

View File

@ -39,5 +39,5 @@ baseSUFFIX = $(osLIBSUFFIX)
include GNUbase.mk
test: $(OUT)
$(MAKE) -f GNUmaketest.mk osLIB=$(OUT) osEXESUFFIX=$(osEXESUFFIX) CC=$(CC) archmflag=$(archmflag)
@$(MAKE) -f GNUmaketest.mk osLIB=$(OUT) osEXESUFFIX=$(osEXESUFFIX) CC=$(CC) archmflag=$(archmflag)
.PHONY: test

View File

@ -1,6 +1,3 @@
- add the visibility stuff to the Windows makefile
- figure out visibility on mac os x
- hide command lines in the makefile
- rename newcontrol.[cm] to control.[cm] or something else?
- use _UI_EXPORT on OS-specific functions
- make their headers generated by an IDL