forked from trevisan/SCL_Bind
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
198 lines (156 loc) · 4.38 KB
/
Makefile
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
#############################################################################
# Makefile for building: SCL_Bind
# Generated by qmake (1.07a) (Qt 3.3.8b) on: Tue Jul 19 22:46:16 2011
# Project: SCL_Bind.pro
# Template: app
# Command: $(QMAKE) -o Makefile SCL_Bind.pro
#############################################################################
####### Compiler, tools and options
CC = gcc
CXX = g++
LEX = flex
YACC = yacc
CFLAGS = -pipe -g -Wall -W -O2 -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT
CXXFLAGS = -pipe -g -Wall -W -O2 -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT
LEXFLAGS =
YACCFLAGS= -d
INCPATH = -I/usr/share/qt3/mkspecs/default -I. -I/usr/include/xsd -I/usr/include/qt3
LINK = g++
LFLAGS =
LIBS = $(SUBLIBS) -L/usr/share/qt3/lib -L/usr/X11R6/lib -L/usr/lib -lxerces-c -lqt-mt -lXext -lX11 -lm -lpthread
AR = ar cqs
RANLIB =
MOC = /usr/share/qt3/bin/moc
UIC = /usr/share/qt3/bin/uic
QMAKE = qmake
TAR = tar -cf
GZIP = gzip -9f
COPY = cp -f
COPY_FILE= $(COPY)
COPY_DIR = $(COPY) -r
INSTALL_FILE= $(COPY_FILE)
INSTALL_DIR = $(COPY_DIR)
DEL_FILE = rm -f
SYMLINK = ln -sf
DEL_DIR = rmdir
MOVE = mv -f
CHK_DIR_EXISTS= test -d
MKDIR = mkdir -p
####### Output directory
OBJECTS_DIR = ./
####### Files
HEADERS = SCL_Substation.hxx \
SCL_IED.hxx \
SCL_Enums.hxx \
SCL_DataTypeTemplates.hxx \
SCL_Communication.hxx \
SCL_BaseTypes.hxx \
SCL_BaseSimpleTypes.hxx \
SCL.hxx
SOURCES = main.cpp \
SCL_Substation.cxx \
SCL_IED.cxx \
SCL_Enums.cxx \
SCL_DataTypeTemplates.cxx \
SCL_Communication.cxx \
SCL_BaseTypes.cxx \
SCL_BaseSimpleTypes.cxx \
SCL.cxx
OBJECTS = main.o \
SCL_Substation.o \
SCL_IED.o \
SCL_Enums.o \
SCL_DataTypeTemplates.o \
SCL_Communication.o \
SCL_BaseTypes.o \
SCL_BaseSimpleTypes.o \
SCL.o
FORMS =
UICDECLS =
UICIMPLS =
SRCMOC =
OBJMOC =
DIST = SCL_Bind.pro
QMAKE_TARGET = SCL_Bind
DESTDIR =
TARGET = SCL_Bind
first: all
####### Implicit rules
.SUFFIXES: .c .o .cpp .cc .cxx .C
.cpp.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.cc.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.cxx.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.C.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.c.o:
$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
####### Build rules
all: Makefile $(TARGET)
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC)
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(OBJCOMP) $(LIBS)
mocables: $(SRCMOC)
uicables: $(UICDECLS) $(UICIMPLS)
$(MOC):
( cd $(QTDIR)/src/moc && $(MAKE) )
Makefile: SCL_Bind.pro /usr/share/qt3/mkspecs/default/qmake.conf /usr/share/qt3/lib/libqt-mt.prl
$(QMAKE) -o Makefile SCL_Bind.pro
qmake:
@$(QMAKE) -o Makefile SCL_Bind.pro
dist:
@mkdir -p .tmp/SCL_Bind && $(COPY_FILE) --parents $(SOURCES) $(HEADERS) $(FORMS) $(DIST) .tmp/SCL_Bind/ && ( cd `dirname .tmp/SCL_Bind` && $(TAR) SCL_Bind.tar SCL_Bind && $(GZIP) SCL_Bind.tar ) && $(MOVE) `dirname .tmp/SCL_Bind`/SCL_Bind.tar.gz . && $(DEL_FILE) -r .tmp/SCL_Bind
mocclean:
uiclean:
yaccclean:
lexclean:
clean:
-$(DEL_FILE) $(OBJECTS)
-$(DEL_FILE) *~ core *.core
####### Sub-libraries
distclean: clean
-$(DEL_FILE) $(TARGET) $(TARGET)
FORCE:
####### Compile
main.o: main.cpp SCL.hxx \
SCL_IED.hxx \
SCL_Substation.hxx \
SCL_Communication.hxx \
SCL_DataTypeTemplates.hxx \
SCL_BaseTypes.hxx \
SCL_Enums.hxx \
SCL_BaseSimpleTypes.hxx
SCL_Substation.o: SCL_Substation.cxx SCL_Substation.hxx \
SCL_BaseTypes.hxx \
SCL_Enums.hxx \
SCL_BaseSimpleTypes.hxx
SCL_IED.o: SCL_IED.cxx SCL_IED.hxx \
SCL_BaseTypes.hxx \
SCL_Enums.hxx \
SCL_BaseSimpleTypes.hxx
SCL_Enums.o: SCL_Enums.cxx SCL_Enums.hxx \
SCL_BaseSimpleTypes.hxx
SCL_DataTypeTemplates.o: SCL_DataTypeTemplates.cxx SCL_DataTypeTemplates.hxx \
SCL_BaseTypes.hxx \
SCL_Enums.hxx \
SCL_BaseSimpleTypes.hxx
SCL_Communication.o: SCL_Communication.cxx SCL_Communication.hxx \
SCL_BaseTypes.hxx \
SCL_Enums.hxx \
SCL_BaseSimpleTypes.hxx
SCL_BaseTypes.o: SCL_BaseTypes.cxx SCL_BaseTypes.hxx \
SCL_Enums.hxx \
SCL_BaseSimpleTypes.hxx
SCL_BaseSimpleTypes.o: SCL_BaseSimpleTypes.cxx SCL_BaseSimpleTypes.hxx
SCL.o: SCL.cxx SCL.hxx \
SCL_Substation.hxx \
SCL_IED.hxx \
SCL_Communication.hxx \
SCL_DataTypeTemplates.hxx \
SCL_BaseTypes.hxx \
SCL_Enums.hxx \
SCL_BaseSimpleTypes.hxx
####### Install
install:
uninstall: