mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 08:08:42 +00:00
should all build now
This commit is contained in:
31
Makefile
Normal file
31
Makefile
Normal file
@@ -0,0 +1,31 @@
|
||||
#
|
||||
# $Id: Makefile,v 1.11 2006/09/06 23:23:03 srhea Exp $
|
||||
#
|
||||
# Copyright (c) 2006 Sean C. Rhea (srhea@srhea.net)
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by the Free
|
||||
# Software Foundation; either version 2 of the License, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
# more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License along
|
||||
# with this program; if not, write to the Free Software Foundation, Inc., 51
|
||||
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
#
|
||||
|
||||
SUBDIRS=doc src
|
||||
|
||||
all: subdirs
|
||||
.PHONY: all subdirs clean
|
||||
|
||||
clean:
|
||||
@for dir in $(SUBDIRS); do $(MAKE) -wC $$dir clean; done
|
||||
|
||||
subdirs:
|
||||
@for dir in $(SUBDIRS); do $(MAKE) -wC $$dir; done
|
||||
|
||||
31
src/Makefile
Normal file
31
src/Makefile
Normal file
@@ -0,0 +1,31 @@
|
||||
#
|
||||
# $Id: Makefile,v 1.11 2006/09/06 23:23:03 srhea Exp $
|
||||
#
|
||||
# Copyright (c) 2006 Sean C. Rhea (srhea@srhea.net)
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by the Free
|
||||
# Software Foundation; either version 2 of the License, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
# more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License along
|
||||
# with this program; if not, write to the Free Software Foundation, Inc., 51
|
||||
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
#
|
||||
|
||||
SUBDIRS=lib cmd gui # order is important!
|
||||
|
||||
all: subdirs
|
||||
.PHONY: all subdirs clean
|
||||
|
||||
clean:
|
||||
@for dir in $(SUBDIRS); do $(MAKE) -wC $$dir clean; done
|
||||
|
||||
subdirs:
|
||||
@for dir in $(SUBDIRS); do $(MAKE) -wC $$dir; done
|
||||
|
||||
@@ -20,34 +20,31 @@
|
||||
|
||||
CC=gcc
|
||||
CFLAGS=-g -W -Wall -Werror -ansi -pedantic
|
||||
CXXFLAGS=-g -W -Wall -Werror
|
||||
CMDS=ptdl ptpk ptunpk cpint
|
||||
LIBS=../lib/libgc.a
|
||||
INCLUDES=-I../lib
|
||||
|
||||
all: ptdl ptpk ptunpk cpint subdirs
|
||||
.PHONY: all clean subdirs
|
||||
all: $(CMDS)
|
||||
.PHONY: all clean
|
||||
|
||||
clean:
|
||||
rm -f *.o ptdl ptpk ptunpk cpint
|
||||
$(MAKE) -wC gui clean
|
||||
rm -f *.o $(CMDS)
|
||||
|
||||
subdirs:
|
||||
@if test -d gui; \
|
||||
then \
|
||||
if ! test -f gui/Makefile; then cd gui; qmake; cd -; fi; \
|
||||
$(MAKE) -wC gui; \
|
||||
fi
|
||||
%.o: %.c
|
||||
$(CC) -c $(CFLAGS) $(INCLUDES) $<
|
||||
|
||||
cpint: cpint-cmd.o cpint.o pt.o
|
||||
cpint: cpint.o $(LIBS)
|
||||
$(CXX) -o $@ $^
|
||||
|
||||
ptdl: ptdl.o pt.o
|
||||
ptdl: ptdl.o $(LIBS)
|
||||
$(CC) -o $@ $^
|
||||
|
||||
ptunpk: ptunpk.o pt.o
|
||||
ptunpk: ptunpk.o $(LIBS)
|
||||
$(CC) -o $@ $^
|
||||
|
||||
ptpk: ptpk.o pt.o
|
||||
ptpk: ptpk.o $(LIBS)
|
||||
$(CC) -o $@ $^
|
||||
|
||||
ptdl.o: pt.h
|
||||
ptunpk.o: pt.h
|
||||
ptdl.o: ../lib/pt.h
|
||||
ptunpk.o: ../lib/pt.h
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
#include <QtGui>
|
||||
extern "C" {
|
||||
#include "../pt.h"
|
||||
#include "pt.h"
|
||||
}
|
||||
|
||||
class MainWindow;
|
||||
|
||||
@@ -5,10 +5,9 @@
|
||||
TEMPLATE = app
|
||||
TARGET +=
|
||||
DEPENDPATH += .
|
||||
INCLUDEPATH += ../qwt-20060130/include
|
||||
INCLUDEPATH += /usr/local/include/qwt ../lib
|
||||
CONFIG += static
|
||||
OBJECTS += ../pt.o
|
||||
LIBS += /usr/local/lib/libqwt.a
|
||||
LIBS += /usr/local/lib/libqwt.a ../lib/libgc.a
|
||||
LIBS += -lz -framework Carbon
|
||||
|
||||
# Input
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#include "RawFile.h"
|
||||
#include <QMessageBox>
|
||||
extern "C" {
|
||||
#include "../pt.h"
|
||||
#include "pt.h"
|
||||
}
|
||||
|
||||
struct RawFileReadState
|
||||
|
||||
33
src/lib/Makefile
Normal file
33
src/lib/Makefile
Normal file
@@ -0,0 +1,33 @@
|
||||
#
|
||||
# $Id: Makefile,v 1.11 2006/09/06 23:23:03 srhea Exp $
|
||||
#
|
||||
# Copyright (c) 2006 Sean C. Rhea (srhea@srhea.net)
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by the Free
|
||||
# Software Foundation; either version 2 of the License, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
# more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License along
|
||||
# with this program; if not, write to the Free Software Foundation, Inc., 51
|
||||
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
#
|
||||
|
||||
CC=gcc
|
||||
CFLAGS=-g -W -Wall -Werror -ansi -pedantic
|
||||
LIBTOOL=libtool
|
||||
|
||||
all: libgc.a
|
||||
.PHONY: all clean
|
||||
|
||||
clean:
|
||||
rm -f *.o libgc.a
|
||||
|
||||
libgc.a: pt.o cpint.o
|
||||
$(LIBTOOL) -static -o $@ $^
|
||||
|
||||
Reference in New Issue
Block a user