1 /*
2    GNUstep ProjectCenter - http://www.gnustep.org/experience/ProjectCenter.html
3 
4    Copyright (C) 2002-2004 Free Software Foundation
5 
6    Authors: Philippe C.D. Robert
7             Serg Stoyan
8 
9    This file is part of GNUstep.
10 
11    This application is free software; you can redistribute it and/or
12    modify it under the terms of the GNU General Public
13    License as published by the Free Software Foundation; either
14    version 2 of the License, or (at your option) any later version.
15 
16    This application is distributed in the hope that it will be useful,
17    but WITHOUT ANY WARRANTY; without even the implied warranty of
18    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19    Library General Public License for more details.
20 
21    You should have received a copy of the GNU General Public
22    License along with this library; if not, write to the Free
23    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
24 */
25 
26 #ifndef _PCMakefileFactory_h_
27 #define _PCMakefileFactory_h_
28 
29 #import <Foundation/Foundation.h>
30 
31 @class PCProject;
32 
33 @interface PCMakefileFactory : NSObject
34 {
35   NSMutableString *mfile;
36   NSString        *pnme;
37 }
38 
39 + (PCMakefileFactory *)sharedFactory;
40 
41 - (void)createMakefileForProject:(PCProject *)project;
42 - (BOOL)createPreambleForProject:(PCProject *)project;
43 - (BOOL)createPostambleForProject:(PCProject *)project;
44 
45 - (void)appendString:(NSString *)aString;
46 
47 - (void)appendLibraries:(NSArray *)array;
48 - (void)appendHeaders:(NSArray *)array;
49 - (void)appendHeaders:(NSArray *)array forTarget:(NSString *)target;
50 - (void)appendClasses:(NSArray *)array;
51 - (void)appendClasses:(NSArray *)array forTarget:(NSString *)target;
52 - (void)appendOtherSources:(NSArray *)array;
53 - (void)appendOtherSources:(NSArray *)array forTarget:(NSString *)target;
54 - (void)appendResources:(NSArray *)array inDir:(NSString *)dir;
55 - (void)appendLocalizedResources:(NSArray *)resources
56 		    forLanguages:(NSArray *)languages;
57 - (void)appendSubprojects:(NSArray*)array;
58 
59 - (NSData *)encodedMakefile;
60 
61 @end
62 
63 #endif
64 
65