1 | |
---|
2 | INC_DIR = . |
---|
3 | OBJ_DIR = . |
---|
4 | SRC_DIR = . |
---|
5 | |
---|
6 | CORIOLIS_TOP = /dsk/l1/jpc/coriolis-2.x/Linux.slsoc6x/Release.Shared/install |
---|
7 | CORIOLIS_INCLUDES = -I$(CORIOLIS_TOP)/include/coriolis2 |
---|
8 | CORIOLIS_LIBS = -L$(CORIOLIS_TOP)/lib \ |
---|
9 | -lcrlcore \ |
---|
10 | -lisobar \ |
---|
11 | -lviewer \ |
---|
12 | -lhurricane \ |
---|
13 | -lconfiguration |
---|
14 | QT_INCLUDES = -DQT_DLL -DQT_GUI_LIB -DQT_XML_LIB -DQT_CORE_LIB -DQT_NO_DEBUG \ |
---|
15 | -I/usr/include/QtGui \ |
---|
16 | -I/usr/include/QtXml \ |
---|
17 | -I/usr/include/QtCore |
---|
18 | QT_LIBS = -lQtGui -lpng -lSM -lICE -lXi -lXrender -lXrandr -lXcursor \ |
---|
19 | -lXinerama -lXfixes -lfreetype -lfontconfig -lXext -lX11 -lm \ |
---|
20 | -lQtXml -lQtCore -lz -lgthread-2.0 -lglib-2.0 -lrt -lpthread -ldl |
---|
21 | |
---|
22 | VIEWER_INCLUDES = $(CORIOLIS_INCLUDES) $(QT_INCLUDES) |
---|
23 | VIEWER_INCS = $(INC_DIR)/MbkBridge.h $(INC_DIR)/RawViewer.h |
---|
24 | VIEWER_OBJS = $(OBJ_DIR)/MbkBridge.o $(OBJ_DIR)/moc_RawViewer.o $(OBJ_DIR)/RawViewer.o |
---|
25 | VIEWER_LIBS = $(CORIOLIS_LIBS) $(QT_LIBS) |
---|
26 | |
---|
27 | |
---|
28 | $(OBJ_DIR)/MbkBridge.o: $(INC_DIR)/Lofig.h $(SRC_DIR)/MbkBridge.cpp |
---|
29 | g++ $(CPPFLAGS) $(CORIOLIS_INCLUDES) $(QT_INCLUDES) -c $(SRC_DIR)/MbkBridge.cpp -o $@ |
---|
30 | |
---|
31 | $(OBJ_DIR)/RawViewer.o: $(INC_DIR)/RawViewer.h $(SRC_DIR)/RawViewer.cpp |
---|
32 | g++ $(CPPFLAGS) $(CORIOLIS_INCLUDES) $(QT_INCLUDES) -c $(SRC_DIR)/RawViewer.cpp -o $@ |
---|
33 | |
---|
34 | $(OBJ_DIR)/moc_RawViewer.o: $(SRC_DIR)/RawViewer.cxx |
---|
35 | g++ $(CPPFLAGS) $(CORIOLIS_INCLUDES) $(QT_INCLUDES) -c $(SRC_DIR)/RawViewer.cxx -o $@ |
---|
36 | |
---|
37 | $(SRC_DIR)/%.cxx: $(INC_DIR)/%.h |
---|
38 | moc-qt4 $(CORIOLIS_INCLUDES) $(QT_INCLUDES) -o $(SRC_DIR)/$*.cxx $(INC_DIR)/$*.h |
---|