LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-16-2004, 09:58 AM   #1
feetyouwell
Member
 
Registered: Dec 2003
Location: NC, US
Distribution: Novell Linux Eval (2.6.5)
Posts: 240

Rep: Reputation: 30
new system call, modify Makefile for .o


I am trying to add a new system call to my machine, after I wrote my new system call, for instance, mysyscall.c file and i place that under /usr/src/linux/ipc/ folder and I need to update the make file under that folder for it to compile correctly, there are the current lines in that Makefile,
Code:
 
#
# Makefile for the linux ipc.
#
                                                                                                                             
obj-y   := util.o
                                                                                                                             
obj-$(CONFIG_SYSVIPC_COMPAT) += compat.o
obj-$(CONFIG_SYSVIPC) += msg.o sem.o shm.o
I guess my question is how to modify this file, should I just add

Code:
 obj-$(MY_SYS_CALL) += mysyscall.o
if I create a new folder under /usr/src/linux say newsyscall folder and I put all my c and h files there, then how can i should I write a makefile for it and where else i need to modify in order to compile the files when compiling the kernel.

thanks in advance!!!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to modify makefile.in or makefile.am QiangWan Linux - Newbie 1 05-17-2005 11:07 AM
How to modify the system-wide PATH jayhel Slackware - Installation 8 04-22-2005 03:00 AM
look at how i modify the system call interrupt vector qqrilxk Programming 3 03-21-2005 01:13 AM
Makefile works on one system, but not another MS3FGX Programming 1 01-07-2005 04:17 AM
Is it possible to use system() and get the return value from the system call newguy21 Programming 1 08-11-2004 01:37 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration