FORCE: ;
clean:
- @$(MAKE) -f Makefile.qmake clean
- rm -f pykit Makefile.qmake
+ @[ ! -f Makefile.qmake ] || $(MAKE) -f Makefile.qmake clean
+ rm -rf pykit Makefile.qmake pykit.app
Makefile: ;
QMAKE_CXXFLAGS += $$system(python-config --cflags)
QMAKE_CFFLAGS += $$system(python-config --cflags)
LIBS += $$system(python-config --ldflags)
+mac {
+ # Qt is not available as univeral library and provides
+ # a correct -arch tag automatically
+ QMAKE_CXXFLAGS -= -arch ppc x86_64 i386
+ QMAKE_CFLAGS -= -arch ppc x86_64 i386
+}
# Input
HEADERS += MainWindow.hh \