mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-18 18:51:53 +00:00
7f69f593d3
define default include and lib paths for qfcc ruamoko: {cl_menu,game}/Makefile.am: conform to the new qfcc library linking rules lib/Makefile.am: install the libs to ${prefix}/lib/ruamoko qfcc: linker.[ch]: support path searching for -llib and make linker_add_lib search for libfoo.a for -lfoo in the paths, or just a single dir search for the libname otherwise. options.c: support -L libpath and setup the default include and lib paths also change most strdup calls to save_string qfcc.c: check for foo.a as well as -lfoo when deciding whether the file is an object file or lib file.
41 lines
1.1 KiB
C
41 lines
1.1 KiB
C
/*
|
|
link.h
|
|
|
|
qc object file linking
|
|
|
|
Copyright (C) 2002 Bill Currie <bill@taniwha.org>
|
|
|
|
Author: Bill Currie <bill@taniwha.org>
|
|
Date: 2002/7/3
|
|
|
|
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:
|
|
|
|
Free Software Foundation, Inc.
|
|
59 Temple Place - Suite 330
|
|
Boston, MA 02111-1307, USA
|
|
|
|
$Id$
|
|
*/
|
|
|
|
#ifndef __linker_h
|
|
#define __linker_h
|
|
|
|
void linker_begin (void);
|
|
int linker_add_object_file (const char *filename);
|
|
int linker_add_lib (const char *libname);
|
|
void linker_add_path (const char *path);
|
|
struct qfo_s *linker_finish (void);
|
|
|
|
#endif//__linker_h
|