Diff of /gui/Makefile.in [de0c3c] .. [fb7fe6] Maximize Restore

  Switch to unified view

a/gui/Makefile.in b/gui/Makefile.in
1
ifneq "@have_qt2@" "yes"
2
all:
3
install:
4
uninstall:
5
clean:
6
else
7
8
include ../make.common
9
1
MOC=@MOC@
10
MOC=@MOC@
2
UIC=@UIC@
11
 
12
HEADERS=oprof_start.h oprof_start_config.h oprof_start_util.h persistent_config.h
13
SOURCES=oprof_start.cpp oprof_start_config.cpp oprof_start_util.cpp oprof_start_main.cpp
14
OBJECTS=ui/oprof_start.base.o ui/oprof_start.base.moc.o \
15
  oprof_start.o oprof_start_config.o oprof_start_util.o oprof_start_main.o \
16
  oprof_start.moc.o
17
TARGET=oprof_start
3
18
4
CXXFLAGS=-ansi -Wall -pedantic -W @CXXFLAGS@ @QT2_INCLUDES@
19
CXXFLAGS += -DBINDIR=\"$(BINDIR)\" -DKVERSION=\"@KVERS@\"
20
LDFLAGS += @QT2_LDFLAGS@
21
LIBS=-lutil++ -lutil -lop -lpopt -liberty @QT2_LIBS@
22
 
23
all: $(TARGET)
24
 
25
.deps/oprof_start_config.cpp.d .deps/oprof_start_util.cpp.d .deps/oprof_start_main.cpp.d .deps/oprof_start.cpp.d: .buildui
26
 
27
oprof_start.moc.cpp: oprof_start.h
28
  $(MOC) -o $@ oprof_start.h
29
oprof_start.moc.o: oprof_start.moc.cpp
5
30
6
.PHONY: all clean install uninstall
31
.buildui:
7
.SUFFIXES:
32
  $(MAKE) -C ui
33
  $(TOUCH) $@
8
34
9
ifeq "@have_qt2@" "yes"
35
INSTALL_LIST=oprof_start
10
all: oprof_start
36
install:
11
37
  $(INSTALL) $(INSTALL_LIST) $(BINDIR)
38
 
39
uninstall:
40
  rm -f $(INSTALL_LIST)
41
  @echo "---------------------------------------------------------------"
42
  @echo "The uninstall target does not remove your ~/.oprofile directory"
43
  @echo "---------------------------------------------------------------" 
44
 
12
clean:
45
clean:
13
    $(MAKE) -C ui clean
46
    $(MAKE) -C ui clean
14
  rm -rf *.o .deps *.moc.* oprof_start
47
  rm -rf .deps $(OBJECTS) $(TARGET) .buildui oprof_start.moc.cpp
15
48
16
install: all
49
$(TARGET): $(OBJECTS)
17
  -$(MKDIR_P) $(BINDIR)
50
  $(CXX) -o $@ $^ $(LDFLAGS) $(LIBS)
18
  cp oprof_start $(BINDIR)/oprof_start && chmod 755 $(BINDIR)/oprof_start
51
 
19
52
include ../make.deps
20
uninstall:
53
 
21
  -rm -f $(BINDIR)/oprof_start
22
  @echo "---------------------------------------------------------------"
23
  @echo "The uninstall target does not remove your ~/.oprofile directory"
24
  @echo "---------------------------------------------------------------"
25
26
# application oprof_start
27
OP_START_UI_OBJS=ui/oprof_start.base.o ui/oprof_start.base.moc.o
28
OP_START_OBJS=oprof_start.o oprof_start.moc.o ../events/op_events.o \
29
 ../events/op_events_desc.o oprof_start_config.o oprof_start_main.o \
30
 oprof_start_util.o ../util/string_manip.o ../util/child_reader.o \
31
 ../util/file_manip.o
32
33
# We do not put $(OP_START_UI_OBJS) as dependency of oprof_start (make don't
34
# know how to rebuild it at this point) but it works due to side effect between
35
# Makefile, dependency file and ui/oprof_start.base.h
36
oprof_start: $(OP_START_OBJS)
37
  $(MAKE) -C ui
38
  $(CXX) $(CXXFLAGS) -o $@ $^ $(OP_START_UI_OBJS) @QT2_LDFLAGS@ @QT2_LIBS@ -liberty
39
40
# we need explicit dependencies and build rules here else after a make clean
41
# dependencies can not be regenerated. This also have the side effect to
42
# implicitly put dependencies to oprof_start on *all* ui files because if one
43
# ui is modified all ui files are modified.
44
ui/oprof_start.base.h: ui/oprof_start.base.ui
45
  $(MAKE) -C ui oprof_start.base.h
46
ui/oprof_start.base.moc.cpp: ui/oprof_start.base.h
47
  $(MAKE) -C ui oprof_start.base.h
48
49
oprof_start.moc.o: oprof_start.moc.cpp
50
  $(CXX) $(CXXFLAGS) -c $< -o $@
51
oprof_start.o: oprof_start.cpp
52
  $(CXX) $(CXXFLAGS) -DBINDIR=\"$(BINDIR)\" -c $< -o $@
53
oprof_start_config.o: oprof_start_config.cpp
54
  $(CXX) $(CXXFLAGS) -DKVERSION=\"@KVERS@\" -c $< -o $@
55
oprof_start_util.o: oprof_start_util.cpp
56
  $(CXX) $(CXXFLAGS) -c $< -o $@
57
oprof_start_main.o: oprof_start_main.cpp
58
  $(CXX) $(CXXFLAGS) -c $< -o $@
59
60
# generate qt moc code for subclass
61
oprof_start.moc.cpp: oprof_start.h ui/oprof_start.base.h
62
  $(MOC) -o oprof_start.moc.cpp oprof_start.h
63
64
# dependencies
65
ALL_SOURCES = oprof_start_util.cpp oprof_start_config.cpp \
66
 oprof_start_main.cpp oprof_start.cpp oprof_start.moc.cpp
67
68
include ../Rules.make
69
70
CPPFLAGS_DEPS += @QT2_INCLUDES@
71
72
else
73
all:
74
clean:
75
install:
76
uninstall:
77
endif
54
endif