It produces the obj/rt_com.o which is the module you will install using insmod.
To work this Makefile you can use
make clobber - to cleanup for a fresh rebuild
make install - to create a new module
or
make
Hope this helps.
#=======================================================
#
# DESCRIPTION:
# Makefile for rt_com tree.
#
# AUTHOR: R.D. Findlay
#
# Revision history:
#=======================================================
# $Log$
#=======================================================
#
#=======================================================
CC=cc
DE=NODEBUG
PROGRAM_NAME=
line1 = --------------------------------------------------------------------
line2 = ====================================================================
OBJ_DIR=obj
LOCAL_INCL_DIR=../include
RTCOM_OBJ = \
$(OBJ_DIR)/rt_com.o
CDFLAGS=\
-c \
-Wall \
-O2 \
-I $(LOCAL_INCL_DIR)\
-D$(DE)
HEADERS=\
$(LOCAL_INCL_DIR)/rt_com.h\
$(LOCAL_INCL_DIR)/rt_comP.h
THIS_TARGET="starting"
DO_END=make -s title THIS_TARGET="<$@> done"
#============================
# default target
#============================
all:\
title \
$(OBJ_DIR) \
$(OBJ_DIR)/rt_com.o
@$(DO_END)
title:
@echo "=============== rtcom $(THIS_TARGET) ================"
description:
@(\
echo;\
echo "$(line1)";\
echo "Compiling $(PROGRAM_NAME) module -> $(OBJ_NAME)";\
echo )
$(OBJ_DIR):
mkdir obj
chmod a+w obj
#==============================
# compiles
#==============================
$(OBJ_DIR)/rt_com.o: rt_com.c $(HEADERS)
@make -s description PROGRAM_NAME="$<" OBJ_NAME="$@"
$(CC) $(CDFLAGS) -o $(OBJ_DIR)/rt_com.o rt_com.c
#==============================
# prepare for clean rebuild
#==============================
clobber:
rm $(OBJ_DIR)/rt_com.o
#==============================
# install target
#==============================
install:\
title \
$(OBJ_DIR) \
$(OBJ_DIR)/rt_com.o
@$(DO_END)
At 03:57 PM 11/19/99 +0000, you wrote:
>
>
>I have now successfully downloaded rt_com-stable_tar.tar (which is rt_com-0.4).
>I have "un-tar-ed" it.
>In the README it states
>"There are some test-modules in test/*.c. "
>I have no test directory!!!!!!!!!!!
>I then tried to compile and install rt_com (again using the README instructions) :
>make -f Makefile.standalone install
>which generated :
>Makefile.standalone:5: /usr/include/rtlinux/rtl.mk: No such file or directory
>make: *** No rule to make target `/usr/include/rtlinux/rtl.mk'. Stop.
>
>Which is true! I have no such file! Where do I get one? Where is the test
>directory?
>
>(I'm running Linux 2.0.36.RTL1.2)
>
>Thanks
>
>Dan
>
>Jochen wrote:
>
>> On Fre, 19 Nov 1999 Dan Samber wrote:
>> >
>> >Could someone please direct me to a complete example
>> >of working code that uses rt_com? I have been trying
>> >to get something working for several days and (as always)
>> >a complete, simple example would solve most/all
>> >of my problems.
>>
>> Dan,
>> after so many mails within the last few days - have you thought about my
>> suggestions ? Have you looked at the test/ directory of the rt_com
>> distribution ? Have you looked at Rubini's book ? Have you written any
>> working kernel module - RT or not ?
>>
>> Cheers,
>> -- Jochen
>> Heinrich-Heine-Universität, Institut für Physikalische Chemie I
>> Universitätsstr. 1, Geb. 26.43.02.29, 40225 Düsseldorf, Germany
>> phone 02118113681 fax 02118115195 -- www-public.rz.uni-duesseldorf.de/~jochen
>> [EMAIL PROTECTED] -- [EMAIL PROTECTED] -- [EMAIL PROTECTED]
>> --- [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/
>
>--- [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/
>
> --- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl