[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compiling C++ in GNUSTEP
From: |
Rene Cornils |
Subject: |
Re: Compiling C++ in GNUSTEP |
Date: |
Fri, 9 Feb 2001 15:43:16 +0100 (MET) |
Don't know if there is a 'clean' way to do that but the following hack did
it for me:
Append the following lines to Makefile.preamble:
.SUFFIXES: .cc
$(GNUSTEP_OBJ_DIR)/%${OEXT} : %.cc
$(CC) -c $(ALL_CPPFLAGS) $(ALL_CFLAGS) -o $@ $<
In GNUmakefile specify C++ files as follows (remember extension '.o'):
progName_C_FILES = file1.o file2.o ...
Don't forget to include Makefile.preamble in GNUmakefile:
-include Makefile.preamble
Hope that helps
Rene
On Fri, 9 Feb 2001, Martin Durkac wrote:
> I need to port an important C++ source code to my GNUSTEP project.
> Unfortunately, makefiles in GNUSTEP do not contain rules for compiling
> C++.
>
> Would it be possible to add these rules to my projects GNUmakefiles ?
> How can I do this ?