Hi Ivan, I did that, But GNUstep makefile doesn't seems to like it.
libCoCoStep_OBJC_FILES += Support/EAGLView.m resulted in Making all for library libCoCoStep... Compiling file Support/EAGLView.m ... Support/EAGLView.m:457: fatal error: opening dependency file obj/Support/EAGLView.m.d: No such file or directory compilation terminated. make[3]: *** [obj/Support/EAGLView.m.o] Error 1 make[2]: *** [internal-library-all_] Error 2 make[1]: *** [libCoCoStep.all.library.variables] Error 2 make: *** [internal-all] Error 2 I believe static lib approach could work. But I am not knowing how to do it using GNUstep makefile. All I know is, I can specify that whether a library should be static/shared by using shared=no/yes on makefile of particular directory. Can anybody put light on this one, thanks, Indie AN. On Tue, 2011-01-25 at 16:24 +0100, Ivan Vučica wrote: > Shouldn't you be able to just reference the files in subdirectories by > specifying the relative path? > > support/file.m > support/file.h > > I had some issues with same-name files in multiple directories when > using autotools (not the gnustep build system) in another project. You > might want to avoid having files with identical names. > > Alternatively, consider building support/ library as a static library > and then linking it into the main shared library. > > Regards, > > Ivan Vučica > via phone > > On 24. sij. 2011., at 19:20, Indie AN <[email protected]> wrote: > > > Hi Everybody, > > I am new to GNUstep makefile build system . I am creating a shared > > library named libCoCostep. > > Folder cocostep contains majority of the files, however for > > understandability some files are put in sub folder called Support. > > Whenever building shared lib I want build all files with it. > > Currently I > > am using two separate shared libs one for cocostep folder another for > > Support folder (libCoCostepSupport). How can I avoid using separate > > libs > > without restructuring files. > > > > Thanks > > indie AN > > > > > > > > > > ----------------------------- > > https://github.com/ANindie/cocos2d-GNUstep > > > > _______________________________________________ > > Discuss-gnustep mailing list > > [email protected] > > http://lists.gnu.org/mailman/listinfo/discuss-gnustep _______________________________________________ Discuss-gnustep mailing list [email protected] http://lists.gnu.org/mailman/listinfo/discuss-gnustep
