Cleaned up the make output to be less noisy.
This commit is contained in:
parent
817e13ae61
commit
e6b33aafd0
16
GNUbase.mk
16
GNUbase.mk
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
3
TODO.md
3
TODO.md
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue