Changeset 776 for trunk/geant4/config
- Timestamp:
- Apr 17, 2008, 11:32:32 AM (16 years ago)
- Location:
- trunk/geant4/config
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/config/G4VIS_USE.gmk
r766 r776 76 76 CPPFLAGS += -I$(G4BASE)/visualization/OpenGL/include 77 77 endif 78 VISLIBS += -l G4OpenGL78 VISLIBS += -lXX -lG4OpenGL -lXX 79 79 INC_GL = 1 80 80 LOAD_GL = 1 -
trunk/geant4/config/binmake.gmk
r689 r776 242 242 < $(G4LIB)/$(G4SYSTEM)/libname.map; fi) 243 243 else 244 LDLIBS2 = $(shell \244 LDLIBS2 = -DNO_G4INCLUDE_EXEC $(shell \ 245 245 G4TMP=$(G4TMP); export G4TMP; \ 246 246 if [ \( -f $(G4LIB)/$(G4SYSTEM)/liblist \ … … 282 282 else 283 283 # Again, do not use := or +=. See note on LDLIBS2 above. 284 LDLIBS_PREFINAL = $(LDLIBS1) $(LDLIBS2)$(LDLIBS2EXTRA) $(LDLIBS3)284 LDLIBS_PREFINAL = $(LDLIBS1) -DLDLIBS2_END $(LDLIBS2) -DLDLIBS2_END $(LDLIBS2EXTRA) $(LDLIBS3) 285 285 # Version leaving out EXTRALIBS 286 286 LDLIBS_KERNEL = $(LDLIBS2) $(LDLIBS2EXTRA) $(LDLIBS3) 287 287 endif 288 LDLIBS_PREFINAL += $(LDLIBS4)288 LDLIBS_PREFINAL += -DLDLIBS4 $(LDLIBS4) -DLDLIBS_END4 289 289 LDLIBS_KERNEL += $(LDLIBS4) 290 290 … … 308 308 else 309 309 # Unix 310 LDLIBS = $(TARGETLIB) $(LDLIBS_PREFINAL)310 LDLIBS = $(TARGETLIB) -DLDLIBS_PREFINAL $(LDLIBS_PREFINAL) -DLDLIBS_PREFINAL_END 311 311 OUT := -o 312 312 endif -
trunk/geant4/config/common.gmk
r766 r776 5 5 # Libraries are created according to G4SYSTEM. G.Cosmo, 11/6/96. 6 6 # Introduced G4LIBDIR and G4TMPDIR. G.Cosmo, 23/6/98. 7 # Introduced Qt moc rule, L.Garnier 15/2/08.8 7 9 8 ifndef G4LIBDIR … … 14 13 sources := $(wildcard src/*.cc) 15 14 16 ifneq ($(G4INTY_BUILD_QT),) 17 moc_inc = $(shell grep -l "Q_OBJECT" include/*.hh ) 18 moc_files := $(patsubst include/%.hh, src/%_moc.cc, $(moc_inc)) 19 sources += $(moc_files) 20 endif 15 #ifneq ($(G4INTY_BUILD_QT),) 16 sources += $(moc_sources) 17 #endif 21 18 22 19 objects := $(patsubst src/%.cc,$(G4TMPDIR)/%.o,$(sources)) 20 moc_tst := $(shell ls -al * >/Users/garnier/tst) 21 23 22 dependencies := $(patsubst src/%.cc,$(G4TMPDIR)/%.d,$(sources)) 24 23 … … 68 67 endif 69 68 70 ###############################################################################71 #72 # Actual moc files for Qt files73 #74 # moc sources and headers: used for Qt signal/slot75 # - all headers which use signals/slots have the macro "Q_OBJECT" present76 # in the class definitions; these all need to be processed by the77 # "meta object compiler (moc)" which generates extra source code to78 # implement the signal/slots, i.e., if "foo.h" contains the token "Q_OBJECT"79 # it will be used by moc to generate the file "foo_moc.cpp" (the _moc. is80 # just an arbitrary extension to make it easier to identify sources81 # generated by moc).82 83 ifneq ($(G4INTY_BUILD_QT),)84 src/%_moc.cc: include/%.hh85 @echo Making moc file for $< ...86 @if [ `$(QTHOME)/bin/moc -v 2>&1 | grep "Qt 3" | wc -l ` -gt 0 ]; then \87 $(QTMOC) -o $@ $<;\88 else $(QTMOC) $(MOC_MACRO) -o $@ $<; \89 fi;90 endif91 69 92 70 ############################################################################### … … 105 83 # .PHONY targets are executed regardless of time-stamp of any file of 106 84 # same name. 107 .PHONY: all moc_incobj lib clean clean_libs includes85 .PHONY: all obj lib clean clean_libs includes 108 86 109 87 obj: $(G4TMPDIR)/obj.last -
trunk/geant4/config/interactivity.gmk
r766 r776 36 36 # Should be before X11. 37 37 ifdef LOAD_GLQT 38 INTYLIBS += $(GLQTLIBS)38 INTYLIBS += -D LOAD_GLQT $(GLQTLIBS) -D END_OF_LOAD_GLQT 39 39 endif 40 40 -
trunk/geant4/config/moc.gmk
r770 r776 42 42 src/%_moc.cc: ../$(dirMoc)/include/%.hh 43 43 @echo Making moc file for $< ... 44 @if [ `$(QT HOME)/bin/moc-v 2>&1 | grep "Qt 3" | wc -l ` -gt 0 ]; then \44 @if [ `$(QTMOC) -v 2>&1 | grep "Qt 3" | wc -l ` -gt 0 ]; then \ 45 45 $(QTMOC) -o $@ $<;\ 46 46 else $(QTMOC) $(MOC_MACRO) -o $@ $<; \ -
trunk/geant4/config/sys/Darwin-g++.gmk
r766 r776 79 79 ifndef QTLIBS 80 80 QT3LIBS := -L$(QTHOME)/lib -lqt -lqui 81 QT4LIBS := - F$(QTHOME)/lib -framework QtCore -framework QtGui82 QT4LIBS += -framework -frameworkQtSql -framework QtXml81 QT4LIBS := -D111 -F$(QTHOME)/lib -framework QtCore -framework QtGui -D111_END 82 QT4LIBS += -framework QtSql -framework QtXml 83 83 QTLIBS := $(shell test -f $(QTHOME)/Qt3Support.framework/Qt3Support && echo $(QT4LIBS) || echo $(QT3LIBS)) 84 84 endif … … 87 87 QT3LIBS := -L$(QTHOME)/lib -lqt -lqui 88 88 QT4LIBS := -F$(QTHOME) -framework QtCore -framework QtGui 89 QT4LIBS += - framework QtOpenGL -framework QtSql -framework QtXml90 QTLIBS := $(shell test -f $(QTHOME)/Qt3Support.framework/Qt3Support && echo $(QT4LIBS) || echo $(QT3LIBS))89 QT4LIBS += -D GLQTLIBS -framework QtOpenGL -framework QtSql -framework QtXml -D ENDOF_GLQTLIBS 90 GLQTLIBS := $(shell test -f $(QTHOME)/Qt3Support.framework/Qt3Support && echo $(QT4LIBS) || echo $(QT3LIBS)) 91 91 endif 92 92
Note: See TracChangeset
for help on using the changeset viewer.