RTLinux Makefile for multiple sources

Allan Barredo <[email protected]> Wed, 26 Jan 2005 18:06:32 +0800
Newsgroups gmane.linux.real-time.rtlinux.general
Message-ID <[email protected]>
Hi,

Does someone have a simple makefile for compiling and linking an
RTLinux application involving multiple source files? I have been
trying in vain to create a simple application (file1.c) that calls
some functions in another file (file2.c).

My makefile looks like:

#start of makefile
include /usr/src/rtlinux/rtl.mk

LDFLAGS += -lm
TARGET := main.o

LIBRARY_OBJS := file1.o file2.o
  
LDFLAGS_$(TARGET) := $(LIBRARY_OBJS)

$(TARGET): $(LIBRARY_OBJS)

all: $(TARGET)

%.o: %.o

clean:

include /usr/src/rtlinux/Rules.make
#end of makefile

The system complains about unresolved symbols (functions in file2.c)
whenever I try to load main.o

Please help. Thank you very much.
_______________________________________________
Rtl mailing list
[email protected]
http://www2.fsmlabs.com/mailman/listinfo/rtl