File: Makefile

package info (click to toggle)
qps 1.9.3-3.1
  • links: PTS
  • area: contrib
  • in suites: potato
  • size: 456 kB
  • ctags: 1,282
  • sloc: cpp: 8,565; makefile: 98; sh: 1
file content (110 lines) | stat: -rw-r--r-- 3,343 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# Makefile for qps

#
# First, make sure INCLUDES and LDPATHS lines contain paths to the include
# and library directories for Qt.
#
QTDIR=/usr/local/qt
INCLUDES=-I$(QTDIR)/include
LDPATHS=-L$(QTDIR)/lib

#
# Then, uncomment the right LIBS line for your architecture below:
#

# Linux: (You may have to add -lX11, in case your linker complains)
LIBS=-lqt -lm

# Solaris:
#LIBS=-lqt -lm -lkstat -lposix4 -lnsl -lsocket -L/usr/openwin/lib -lX11 -lXext

#
# if moc (the Qt meta object compiler) is not in your $PATH, you might need
# to specify its location here.
#
MOC=$(QTDIR)/bin/moc

#
# Your C++-compiler here.
#
CXX=g++

# You may need -fno-rtti in CXXFLAGS to compile with recent gcc/egcs versions.
CXXFLAGS=-g -O2 -Wall -W -Wconversion -pipe $(INCLUDES)
LDFLAGS=-g $(LDPATHS) $(LIBS)


####### You should not need to modify anything below this line. #######


SOURCES=qps.C pstable.C proc.C uidstr.C ttystr.C dialogs.C \
	checkmenu.C infobar.C fieldsel.C crossbox.C scheddlg.C \
	wchan.C prefs.C htable.C lookup.C details.C command.C
HEADERS=$(SOURCES:.C=.h)
OBJECTS=$(SOURCES:.C=.o)
SRCMETA=moc_qps.C moc_pstable.C moc_dialogs.C \
        moc_fieldsel.C moc_scheddlg.C \
	moc_prefs.C moc_infobar.C \
        moc_htable.C moc_lookup.C moc_details.C moc_command.C
OBJMETA=$(SRCMETA:.C=.o)
TARGET=qps

# Build rules

all: $(TARGET)

$(TARGET): $(OBJECTS) $(OBJMETA)
	$(CXX) $(OBJECTS) $(OBJMETA) -o $(TARGET) $(LDFLAGS)

$(OBJECTS): config.h

clean:
	rm -f *.o *.bak *%
	rm -f $(SRCMETA) $(TARGET)

dist: $(TARGET)
	rm -f *.o *~ #*
	rm -f $(SRCMETA)

# Meta objects

moc_%.C: %.h
	$(MOC) $< -o $@

# dependancy generator: gcc required
depend:
	sed '/^# DO NOT DELETE/,$$d' < Makefile > Makefile.new
	echo '# DO NOT DELETE THIS LINE' >> Makefile.new
	gcc $(INCLUDES) -MM $(SOURCES) >> Makefile.new
	mv Makefile.new Makefile

# DO NOT DELETE THIS LINE
qps.o: qps.C qps.h svec.h pstable.h htable.h proc.h config.h \
 checkmenu.h infobar.h fieldsel.h crossbox.h details.h lookup.h \
 prefs.h command.h dialogs.h scheddlg.h icon.xpm svec.C
pstable.o: pstable.C pstable.h htable.h svec.h proc.h config.h
proc.o: proc.C qps.h svec.h pstable.h htable.h proc.h config.h \
 checkmenu.h infobar.h fieldsel.h crossbox.h details.h lookup.h \
 prefs.h command.h svec.C uidstr.h ttystr.h wchan.h
uidstr.o: uidstr.C uidstr.h
ttystr.o: ttystr.C ttystr.h config.h
dialogs.o: dialogs.C dialogs.h warn.xpm
checkmenu.o: checkmenu.C checkmenu.h
infobar.o: infobar.C infobar.h proc.h config.h svec.h qps.h pstable.h \
 htable.h checkmenu.h fieldsel.h crossbox.h details.h lookup.h prefs.h \
 command.h
fieldsel.o: fieldsel.C fieldsel.h crossbox.h proc.h config.h svec.h
crossbox.o: crossbox.C crossbox.h
scheddlg.o: scheddlg.C scheddlg.h dialogs.h
wchan.o: wchan.C config.h wchan.h
prefs.o: prefs.C prefs.h crossbox.h qps.h svec.h pstable.h htable.h \
 proc.h config.h checkmenu.h infobar.h fieldsel.h details.h lookup.h \
 command.h
htable.o: htable.C htable.h svec.h svec.C
lookup.o: lookup.C lookup.h svec.h svec.C
details.o: details.C details.h config.h htable.h svec.h proc.h \
 lookup.h qps.h pstable.h checkmenu.h infobar.h fieldsel.h crossbox.h \
 prefs.h command.h svec.C
command.o: command.C command.h qps.h svec.h pstable.h htable.h proc.h \
 config.h checkmenu.h infobar.h fieldsel.h crossbox.h details.h \
 lookup.h prefs.h uidstr.h svec.C dialogs.h