nuclear@1: src = $(wildcard *.cc) moc_gui.cc moc_droplist.cc nuclear@1: obj = $(src:.cc=.o) nuclear@1: dep = $(obj:.o=.d) nuclear@1: bin = combjs-gui nuclear@1: nuclear@1: uihdr = ui_main.h nuclear@1: nuclear@1: CXX = g++ nuclear@1: CXXFLAGS = -Wall -g `pkg-config --cflags QtGui QtDesigner` nuclear@1: LDFLAGS = `pkg-config --libs QtGui QtDesigner` nuclear@1: MOC = moc nuclear@1: UIC = uic nuclear@1: nuclear@1: $(bin): $(uihdr) $(obj) nuclear@1: $(CXX) -o $@ $(obj) $(LDFLAGS) nuclear@1: nuclear@1: moc_%.cc: %.h nuclear@1: moc -o $@ $< nuclear@1: nuclear@1: ui_%.h: %.ui nuclear@1: uic -o $@ $< nuclear@1: nuclear@1: .PHONY: clean nuclear@1: clean: nuclear@1: rm -f $(obj) $(bin) ui_*.h moc_*.cc nuclear@1: nuclear@1: .PHONY: cleandep nuclear@1: cleandep: nuclear@1: rm -f $(dep)