Search Results

Search: Posts Made By: bacpp
15,008
Posted By bacpp
thanks mirni, yes, it has been generated and...
thanks mirni,
yes, it has been generated and just got that fixed....I had to rename Makefile.am to Makefile, and it worked.
here's what I have in my Makefile:

AM_LDFLAGS = -L/usr/lib...
15,008
Posted By bacpp
I am obviously not doing something right...
I am obviously not doing something right then....I basically followed the steps for automake from
Automake - Wikipedia, the free encyclopedia (http://en.wikipedia.org/wiki/Automake)
after creating...
15,008
Posted By bacpp
Is there a reason you are using automake? for...
Is there a reason you are using automake? for learning-sake...I have setup configure.ac, and my Makefile.in file has also been created, so I wanted to test it out.

When invoking 'make test', you...
15,008
Posted By bacpp
thanks mirni, but it still ain't working...
thanks mirni, but it still ain't working :confused:....I think I will go and study the Libtool and try it again :wall:....if it works, I'll post the code here.
15,008
Posted By bacpp
hi mirni, thanks for the correction. I was...
hi mirni,
thanks for the correction.
I was getting an error message with LD_FLAGS, wherein automake warned me to use AM_LDFLAGS since LD_FLAGS is a user defined variable. then I got warned to use =...
15,008
Posted By bacpp
hi mirni, thx. for your response. I edited my...
hi mirni, thx. for your response.
I edited my Makefile with that code, but it still gives me the undefined reference errors.
Makefile.am

LDFLAGS+ = -L/usr/lib
bin_PROGRAMS = test...
15,008
Posted By bacpp
including libraries in Makefile.am
hi,
I have the following code in my Makefile.am that works fine for simple programs:
bin_PROGRAMS=test
test_SOURCES=test.cpp

so, when I run 'make test', it runs the following command:
g++ -o...
2,750
Posted By bacpp
Passing variable to child instance of make
hi,
I am trying to export a variable from the parent makefile to a child instance of my makefile within the same directory.

the relevant code in my parent makefile is:

libvar := $(notdir...
10,204
Posted By bacpp
thanks Shahul, that worked :)
thanks Shahul,

that worked :)
10,204
Posted By bacpp
thanks, maybe this is a basic q? but do I...
thanks,
maybe this is a basic q? but do I assign this statement to a variable...
also, do I need to write a separate sed to change the file extension from .c to .o
10,204
Posted By bacpp
patsubst in makefile
hi,
I have .cpp files in 2 subdirectories within my ../src directory,
so the file structure is:
../src/subdir1/file1.cpp
../src/subdir2/file2.cpp

I am trying to use patsubst as follows:
...
1,410
Posted By bacpp
making subdirectory within makefile
hi,
I am trying to create subdirectories under my ../objs directory within a make file.

my ../src directory has the following subdirectories:
source-a
source.1.1

so, I want to label the...
2,069
Posted By bacpp
using automake and autoconf with C++
hi,
I have written the Makefile.am and autoconf.ac files and am looking to build my project by providing the following commands:
$autoreconf -f -i -m
$./configure
both of the above work fine, but...
Forum: Linux 05-26-2011
12,555
Posted By bacpp
okidoki, thx....will work it out that way.
okidoki, thx....will work it out that way.
Forum: Linux 05-23-2011
12,555
Posted By bacpp
foreach function in makefile
hi,

I have 2 directories (../src/dir_a and ../src/dir_b) each with its own .cpp files.

I have written the below foreach function, but the problem is that it is reading the .cpp files from...
1,303
Posted By bacpp
yes indeed, I am working on a makefile - sorry...
yes indeed, I am working on a makefile - sorry for not having mentioned that earlier.
I actually replaced $@.$$$$ with $@.tmp and it did work, so you're right. but I was stuck upon understanding why...
1,303
Posted By bacpp
thanks. I'll try that and let you know if it...
thanks.
I'll try that and let you know if it works!
1,303
Posted By bacpp
Creating dependency file using rule
hi,
I am trying to create dependency files using this rule, and I am having trouble with the $@.$$$$

%.d: %.cpp
$(CC) -MM $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@;...
Showing results 1 to 18 of 18

 
All times are GMT -4. The time now is 10:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy