compiling libs inside of libs
From: Pat Ford (pat.ford_at_nrc.ca)
Date: 01/27/05
- Previous message: adityavasishth_at_gmail.com: "Re: main() function in the Kernel source code"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 27 Jan 2005 09:35:13 -0500
Hi All;
In an app I'm writting I have a lib that does some compatability things
( provides PDP asm opcodes and memory space mapping). recently I've had to
add support for a multifunction dio board, that to the base app looks like
mem mapped io ( so bis 2, dio1 will work, sort of like it would on a pdp11).
Logicaly I don't think the diowrite function should go into the compat
library, style issues aside the function is used elsewhere.
So, how do I link a library into another? No matter where I put the $(LIBS)
macro I get "linker input file not used because linking not done messages.
Any ideas?
Thanks
Pat
here is the Makefile
OBJS = bic.o bis.o clr.o vax_to_ieee.o bit.o mov.o validate.o
PDPLIB=../libpdp.a
CFLAGS=-Wall
IPTH=-I../../include
LPTH=-L../ -L../../daq
LIBS=-ldaq -ldaqbase
.c.o: ; cc -c $(CFLAGS) $(IPTH) $<
$(PDPLIB): $(OBJS)
ar -rvs $(PDPLIB) $(OBJS)
rm -f *.o
clean:
rm -f *.o
rm -f ../libpdp.so
- Previous message: adityavasishth_at_gmail.com: "Re: main() function in the Kernel source code"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|