defs.mk, exe.mk, rules.mk: Add support for QT ui generation from .ui files

This commit is contained in:
Jan Lindemann 2005-01-18 19:18:58 +00:00 committed by Jan Lindemann
commit a4079714c3
3 changed files with 31 additions and 4 deletions

View file

@ -27,6 +27,12 @@ $(LIBDIR):
moc_%.cpp: %.h
$(MOC) -o $@ $<
%.h: %.ui
$(UIC) $< -o $@
uic_%.cpp: %.h %.ui
$(UIC) $*.ui -i $< -o $@
ifeq ($(LIBTYPE),shared)
lib%.so: %.o $(LIB_SO)
else
@ -55,6 +61,10 @@ $(TOPDIR)/bin/%.sh: %.sh
timers_%.h: %.h $(GENERATE_FUNC_TIMERS)
sh $(GENERATE_FUNC_TIMERS) $< $@
ifneq ($(USE_QT),)
$(OBJ): $(UIC_H) $(MOC_H) $(UIC_CPP) $(MOC_CPP)
endif
ifeq ($(USE_PROJECT_LIB),true)
ifeq ($(LIBTYPE),shared)
$(EXE) $(EXE_BIN): $(OBJ) $(LIB_SO)
@ -159,7 +169,13 @@ tmpclean:
rm -rf *.tmp *.rep
objclean:
rm -rf core core.* .*.o *.o *.a *.so *.so.* $(MOC_CPP)
rm -rf core core.* .*.o *.o *.a *.so *.so.*
mocclean:
rm -rf $(MOC_CPP)
uicclean:
rm -rf $(UIC_CPP) $(UIC_H)
textclean: doneclean
rm -rf $(TEXTCLEAN) \#*\# .kdbgrc.* .\#*