> I have the entry in my all: section of:
>
> int_module: int_test.c
> gcc ${INCLUDE} ${CFLAGS} -c -o int_module int_test.c
>
> I would like to break up int_test.c into
> int_test.c, rt-pcdio.c, rt-pcdio.h, rt-pcl722.c, rt-pcl722.h , ...
>
> Where int_test.c includes the header files of all other c files. How do I
> modify the Makefile to do this?
Something like this should work:
.c.o:
gcc ${INCLUDE} ${CFLAGS} -c $*.c
int_module: int_test.o rt-pcdio.o rt-pc1722.o
ld -r -o int_module int_test.o rt-pcdio.o rt-pc1722.o
int_test.o rt-pcdio.o rt-pc1722.o: rt-pcdio.h rt-pc1722.h
Marko
--
Marko Rauhamaa [EMAIL PROTECTED] (818) 878-6314
Sr Project Engineer http://www.tekelec.com/ Tekelec Inc
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/