blob: 93cc0d5f288cc223b3e361e411f1155ba418e3b9 (
plain)
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
|
#############################################################################
# Makefile for building libbinary.so.1.0.0
# Generated by tmake at 12:03, 2001/11/22
# Project: binary
# Template: lib
#############################################################################
####### Compiler, tools and options
CC = gcc
CXX = g++
CFLAGS = -pipe -Wall -W -O2 -fPIC -DNO_DEBUG
CXXFLAGS= -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -fPIC -DNO_DEBUG
INCPATH = -I$(QPEDIR)/include -I$(QPEDIR)/calc2 -I$(QTDIR)/include
LINK = gcc
LFLAGS = -shared -Wl,-soname,libbinary.so.1
LIBS = $(SUBLIBS) -L$(QTDIR)/lib -lqte
AR = ar cqs
RANLIB =
MOC = $(QTDIR)/bin/moc
UIC = $(QTDIR)/bin/uic
TAR = tar -cf
GZIP = gzip -9f
####### Files
HEADERS = binaryimpl.h \
binaryfactory.h
SOURCES = binaryimpl.cpp \
binaryfactory.cpp
OBJECTS = binaryimpl.o \
binaryfactory.o \
binary.o
INTERFACES = binary.ui
UICDECLS = binary.h
UICIMPLS = binary.cpp
SRCMOC = moc_binaryimpl.cpp \
moc_binary.cpp
OBJMOC = moc_binaryimpl.o \
moc_binary.o
DIST =
TARGET = libbinary.so.1.0.0
TARGETA = $(QPEDIR)/plugins/calculator/libbinary.a
TARGETD = libbinary.so.1.0.0
TARGET0 = libbinary.so
TARGET1 = libbinary.so.1
TARGET2 = libbinary.so.1.0
INTERFACE_DECL_PATH = .
####### Implicit rules
.SUFFIXES: .cpp .cxx .cc .C .c
.cpp.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.cxx.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.cc.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.C.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.c.o:
$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
####### Build rules
all: $(QPEDIR)/plugins/calculator/libbinary.so.1.0.0
$(QPEDIR)/plugins/calculator/libbinary.so.1.0.0: $(OBJECTS) $(OBJMOC) $(SUBLIBS)
-rm -f $(TARGET) $(TARGET0) $(TARGET1) $(TARGET2)
$(LINK) $(LFLAGS) -o $(TARGETD) $(OBJECTS) $(OBJMOC) $(LIBS)
-ln -s $(TARGET) $(TARGET0)
-ln -s $(TARGET) $(TARGET1)
-ln -s $(TARGET) $(TARGET2)
-rm -f $(QPEDIR)/plugins/calculator/$(TARGET)
-rm -f $(QPEDIR)/plugins/calculator/$(TARGET0)
-rm -f $(QPEDIR)/plugins/calculator/$(TARGET1)
-rm -f $(QPEDIR)/plugins/calculator/$(TARGET2)
-mv $(TARGET) $(TARGET0) $(TARGET1) $(TARGET2) $(QPEDIR)/plugins/calculator/
staticlib: $(TARGETA)
$(TARGETA): $(UICDECLS) $(OBJECTS) $(OBJMOC)
-rm -f $(TARGETA)
$(AR) $(TARGETA) $(OBJECTS) $(OBJMOC)
moc: $(SRCMOC)
tmake:
tmake binary.pro
dist:
$(TAR) binary.tar binary.pro $(SOURCES) $(HEADERS) $(INTERFACES) $(DIST)
$(GZIP) binary.tar
clean:
-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET)
-rm -f $(TARGET0) $(TARGET1) $(TARGET2) $(TARGETA)
-rm -f *~ core
####### Sub-libraries
###### Combined headers
####### Compile
binaryimpl.o: binaryimpl.cpp \
binaryimpl.h \
binary.h
binaryfactory.o: binaryfactory.cpp \
binaryfactory.h \
binaryimpl.h \
binary.h
binary.h: binary.ui
$(UIC) binary.ui -o $(INTERFACE_DECL_PATH)/binary.h
binary.cpp: binary.ui
$(UIC) binary.ui -i binary.h -o binary.cpp
binary.o: binary.cpp \
binary.h \
binary.ui
moc_binaryimpl.o: moc_binaryimpl.cpp \
binaryimpl.h \
binary.h
moc_binary.o: moc_binary.cpp \
binary.h
moc_binaryimpl.cpp: binaryimpl.h
$(MOC) binaryimpl.h -o moc_binaryimpl.cpp
moc_binary.cpp: binary.h
$(MOC) binary.h -o moc_binary.cpp
|