author | kergoth <kergoth> | 2002-01-25 22:14:26 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2002-01-25 22:14:26 (UTC) |
commit | 15318cad33835e4e2dc620d033e43cd930676cdd (patch) (side-by-side diff) | |
tree | c2fa0399a2c47fda8e2cd0092c73a809d17f68eb /noncore/tools/calc2/binary/Makefile | |
download | opie-15318cad33835e4e2dc620d033e43cd930676cdd.zip opie-15318cad33835e4e2dc620d033e43cd930676cdd.tar.gz opie-15318cad33835e4e2dc620d033e43cd930676cdd.tar.bz2 |
Initial revision
Diffstat (limited to 'noncore/tools/calc2/binary/Makefile') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/tools/calc2/binary/Makefile | 146 |
1 files changed, 146 insertions, 0 deletions
diff --git a/noncore/tools/calc2/binary/Makefile b/noncore/tools/calc2/binary/Makefile new file mode 100644 index 0000000..93cc0d5 --- a/dev/null +++ b/noncore/tools/calc2/binary/Makefile @@ -0,0 +1,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 + |