combjs

view 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
line source
1 src = $(wildcard *.cc) moc_gui.cc moc_droplist.cc
2 obj = $(src:.cc=.o)
3 dep = $(obj:.o=.d)
4 bin = combjs-gui
6 uihdr = ui_main.h
8 CXX = g++
9 CXXFLAGS = -Wall -g `pkg-config --cflags QtGui QtDesigner`
10 LDFLAGS = `pkg-config --libs QtGui QtDesigner`
11 MOC = moc
12 UIC = uic
14 $(bin): $(uihdr) $(obj)
15 $(CXX) -o $@ $(obj) $(LDFLAGS)
17 moc_%.cc: %.h
18 moc -o $@ $<
20 ui_%.h: %.ui
21 uic -o $@ $<
23 .PHONY: clean
24 clean:
25 rm -f $(obj) $(bin) ui_*.h moc_*.cc
27 .PHONY: cleandep
28 cleandep:
29 rm -f $(dep)