Results 1 to 3 of 3
Hi,
The following is my Makefile, I wanted to add a staic library named libtimer.a. I'm using the following Makefile. Please let me know how to add this static library:
...
- 02-10-2010 #1Just Joined!
- Join Date
- Aug 2009
- Posts
- 23
Adding a static library (libtimer.a) to the Linux Makefile
Hi,
The following is my Makefile, I wanted to add a staic library named libtimer.a. I'm using the following Makefile. Please let me know how to add this static library:
Makefile:-
It produces "usbserial" executable.all:
gcc -Wall -lrt -lm -pthread usbserialapp.c usbserialinit.c environ.c -o usbserial
Thanks,
S
- 02-11-2010 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
Code:all: gcc -Wall -lrt -lm -pthread usbserialapp.c usbserialinit.c environ.c -Bstatic -l timer -o usbserial
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 02-11-2010 #3Just Joined!
- Join Date
- Aug 2009
- Posts
- 23


Reply With Quote
