From e227059121f709c33cb298011706eb9163f8fe47 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 10 Mar 2008 23:12:39 +0000 Subject: [PATCH] - Makefile for MinGW svn path=/trunk/boinc/; revision=14883 --- api/Makefile.mingw | 36 ++++++++++++++++++++++++++++++++++++ checkin_notes | 8 ++++++++ lib/proc_control.h | 19 +++++++++++++++++++ 3 files changed, 63 insertions(+) create mode 100644 api/Makefile.mingw diff --git a/api/Makefile.mingw b/api/Makefile.mingw new file mode 100644 index 0000000000..3440e6710a --- /dev/null +++ b/api/Makefile.mingw @@ -0,0 +1,36 @@ +BOINCDIR = ./boinc +DEBUG = -D__DEBUG__ -g3 +OBJ = boinc_api.o util.o win_util.o app_ipc.o diagnostics.o diagnostics_win.o filesys.o hostinfo.o md5.o md5_file.o mem_usage.o mfile.o miofile.o parse.o prefs.o proxy_info.o str_util.o shmem.o stackwalker_win.o base64.o +LINKOBJ = $(OBJ) +LDFLAGS = -lwinmm -march=i386 +INCS = -I"$(BOINCDIR)" -I"$(BOINCDIR)/db" -I"$(BOINCDIR)" -I"$(BOINCDIR)/lib" -I"$(BOINCDIR)/api" +CXXINCS = $(INCS) +BIN = libboinc.a +# +CXXFLAGS = $(CXXINCS) $(DEBUG) --include $(BOINCDIR)/version.h -DWIN32 -D_WIN32 -D_WIN32_WINDOWS=0x0501 -D_MT -DNDEBUG -D_WINDOWS -DBOINC -DCLIENT -DNODB -D_CONSOLE -Wall -mtune=pentium-m -fexceptions -march=i386 -O1 +CFLAGS = $(INCS) $(DEBUG) --include $(BOINCDIR)/version.h -DWIN32 -D_WIN32 -D_WIN32_WINDOWS=0x0501 -D_MT -DNDEBUG -D_WINDOWS -DBOINC -DCLIENT -DNODB -D_CONSOLE -Wall -mtune=pentium-m -fexceptions -march=i386 -O1 + + +.PHONY: all all-before all-after clean clean-custom + +all: all-before $(BIN) all-after + + +clean: clean-custom + ${RM} $(OBJ) $(BIN) + +$(BIN): $(LINKOBJ) + $(AR) rc $@ $(LINKOBJ) + ranlib $@ + +%.o: $(BOINCDIR)/api/%.C + $(CXX) -c $< -o $@ $(CXXFLAGS) + +%.o: $(BOINCDIR)/lib/%.C + $(CXX) -c $< -o $@ $(CXXFLAGS) + +md5.o: $(BOINCDIR)/lib/md5.c + $(CXX) -c $(BOINCDIR)/lib/md5.c -o md5.o $(CXXFLAGS) + +stackwalker_win.o: $(BOINCDIR)/lib/stackwalker_win.cpp + $(CXX) -c $(BOINCDIR)/lib/stackwalker_win.cpp -o stackwalker_win.o $(CXXFLAGS) diff --git a/checkin_notes b/checkin_notes index 743138dfe9..34f1d96225 100644 --- a/checkin_notes +++ b/checkin_notes @@ -2194,3 +2194,11 @@ David Mar 10 2008 Makefile.am proc_control.C,h util.C,h + +David Mar 10 2008 + - Added API makefile for MinGW (from Pasquale Tricarico) + + api/ + Makefile.mingw + lilb/ + proc_control.h diff --git a/lib/proc_control.h b/lib/proc_control.h index 49abbff714..efeb643e1b 100644 --- a/lib/proc_control.h +++ b/lib/proc_control.h @@ -1,3 +1,22 @@ +// Berkeley Open Infrastructure for Network Computing +// http://boinc.berkeley.edu +// Copyright (C) 2008 University of California +// +// This is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; +// either version 2.1 of the License, or (at your option) any later version. +// +// This software 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 Lesser General Public License for more details. +// +// To view the GNU Lesser General Public License visit +// http://www.gnu.org/copyleft/lesser.html +// or write to the Free Software Foundation, Inc., +// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + extern HANDLE sandbox_account_token; extern PSID sandbox_account_sid; extern void get_sandbox_account_token();