combjs
annotate gui/Makefile @ 1:dd02002227a2
- added a few commandline arguments to combjs
- trying to make a gui frontend
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 14 Jul 2011 15:40:20 +0300 |
parents | |
children |
rev | line source |
---|---|
nuclear@1 | 1 src = $(wildcard *.cc) moc_gui.cc moc_droplist.cc |
nuclear@1 | 2 obj = $(src:.cc=.o) |
nuclear@1 | 3 dep = $(obj:.o=.d) |
nuclear@1 | 4 bin = combjs-gui |
nuclear@1 | 5 |
nuclear@1 | 6 uihdr = ui_main.h |
nuclear@1 | 7 |
nuclear@1 | 8 CXX = g++ |
nuclear@1 | 9 CXXFLAGS = -Wall -g `pkg-config --cflags QtGui QtDesigner` |
nuclear@1 | 10 LDFLAGS = `pkg-config --libs QtGui QtDesigner` |
nuclear@1 | 11 MOC = moc |
nuclear@1 | 12 UIC = uic |
nuclear@1 | 13 |
nuclear@1 | 14 $(bin): $(uihdr) $(obj) |
nuclear@1 | 15 $(CXX) -o $@ $(obj) $(LDFLAGS) |
nuclear@1 | 16 |
nuclear@1 | 17 moc_%.cc: %.h |
nuclear@1 | 18 moc -o $@ $< |
nuclear@1 | 19 |
nuclear@1 | 20 ui_%.h: %.ui |
nuclear@1 | 21 uic -o $@ $< |
nuclear@1 | 22 |
nuclear@1 | 23 .PHONY: clean |
nuclear@1 | 24 clean: |
nuclear@1 | 25 rm -f $(obj) $(bin) ui_*.h moc_*.cc |
nuclear@1 | 26 |
nuclear@1 | 27 .PHONY: cleandep |
nuclear@1 | 28 cleandep: |
nuclear@1 | 29 rm -f $(dep) |