From b723d43bc11f7a258c161a394a4a250e55dc7e49 Mon Sep 17 00:00:00 2001 From: "Sean C. Rhea" Date: Mon, 17 Sep 2007 20:32:19 +0000 Subject: [PATCH] moved cpint code into gui dir --- src/Makefile | 2 +- src/cmd/Makefile | 11 ++++++++--- src/cpint/cpint.pro | 16 ---------------- src/gui/GoldenCheetah.pro | 8 +++++--- src/{cpint => gui}/cpint.cpp | 0 src/{cpint => gui}/cpint.h | 0 6 files changed, 14 insertions(+), 23 deletions(-) delete mode 100644 src/cpint/cpint.pro rename src/{cpint => gui}/cpint.cpp (100%) rename src/{cpint => gui}/cpint.h (100%) diff --git a/src/Makefile b/src/Makefile index c7673d1e9..eaa0a3c3c 100644 --- a/src/Makefile +++ b/src/Makefile @@ -18,7 +18,7 @@ # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # -SUBDIRS=lib cpint cmd srm gui # order is important! +SUBDIRS=lib srm gui cmd # order is important! all: qmakefiles subdirs .PHONY: all qmakefiles subdirs clean diff --git a/src/cmd/Makefile b/src/cmd/Makefile index e011f3d88..9b7ac22d5 100644 --- a/src/cmd/Makefile +++ b/src/cmd/Makefile @@ -23,14 +23,19 @@ QT=$(subst /bin/qmake,,$(shell which qmake)) CC=gcc CFLAGS=-g -W -Wall -Werror -ansi -pedantic -std=c99 CMDS=ptdl ptpk ptunpk cpint -LIBS=../lib/libgc.a ../cpint/libcpint.a ../srm/libsrm.a +GUIOBJ=../gui/cpint.o \ + ../gui/RideFile.o \ + ../gui/CsvRideFile.o \ + ../gui/SrmRideFile.o \ + ../gui/RawRideFile.o +LIBS=../lib/libgc.a ../srm/libsrm.a LIBRARIES=-lm ifeq ($(OS),Darwin) LIBRARIES+=-lm -F$(QT)/lib -framework QtCore else LIBRARIES+=-L$(QT)/lib -lQtCore endif -INCLUDES=-I../lib -I../cpint +INCLUDES=-I../lib -I../gui all: $(CMDS) .PHONY: all clean @@ -42,7 +47,7 @@ clean: $(CC) -c $(CFLAGS) $(INCLUDES) $< cpint: cpint.o $(LIBS) - $(CXX) -o $@ $^ $(LIBS) $(LIBRARIES) + $(CXX) -o $@ $^ $(GUIOBJ) $(LIBS) $(LIBRARIES) ptdl: ptdl.o $(LIBS) $(CC) -o $@ $^ $(LIBRARIES) diff --git a/src/cpint/cpint.pro b/src/cpint/cpint.pro deleted file mode 100644 index 2e63625c3..000000000 --- a/src/cpint/cpint.pro +++ /dev/null @@ -1,16 +0,0 @@ -###################################################################### -# Automatically generated by qmake (2.01a) Sun Apr 8 17:19:06 2007 -###################################################################### - -TEMPLATE = lib -TARGET = -DEPENDPATH += . ../gui -INCLUDEPATH += . ../lib ../srm ../gui - -CONFIG += static debug -LIBS += -lm - -# Input -HEADERS += cpint.h -SOURCES += cpint.cpp - diff --git a/src/gui/GoldenCheetah.pro b/src/gui/GoldenCheetah.pro index 0207a7ec5..62b395abc 100644 --- a/src/gui/GoldenCheetah.pro +++ b/src/gui/GoldenCheetah.pro @@ -5,10 +5,10 @@ TEMPLATE = app TARGET += DEPENDPATH += . -INCLUDEPATH += /usr/local/qwt/include ../lib ../srm ../cpint +INCLUDEPATH += /usr/local/qwt/include ../lib ../srm CONFIG += static debug LIBS += /usr/local/qwt/lib/libqwt.a -LIBS += ../lib/libgc.a ../cpint/libcpint.a ../srm/libsrm.a +LIBS += ../lib/libgc.a ../srm/libsrm.a LIBS += -lm -lz macx { LIBS += -framework Carbon @@ -33,7 +33,8 @@ HEADERS += \ RideItem.h \ SrmRideFile.h \ TimeUtils.h \ - Zones.h + Zones.h \ + cpint.h SOURCES += \ AllPlot.cpp \ @@ -53,5 +54,6 @@ SOURCES += \ SrmRideFile.cpp \ TimeUtils.cpp \ Zones.cpp \ + cpint.cpp \ \ main.cpp diff --git a/src/cpint/cpint.cpp b/src/gui/cpint.cpp similarity index 100% rename from src/cpint/cpint.cpp rename to src/gui/cpint.cpp diff --git a/src/cpint/cpint.h b/src/gui/cpint.h similarity index 100% rename from src/cpint/cpint.h rename to src/gui/cpint.h