forums.xandros.com Forum Index forums.xandros.com
Xandros User Forums
 
 FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

makefile how to

 
Post new topic   Reply to topic    forums.xandros.com Forum Index -> Linux Devel 101
View previous topic :: View next topic  
Author Message
scott
Xandrosianding
Xandrosianding


Joined: 24 Jan 2003
Posts: 786
Location: West Chicago,Il

PostPosted: Sat Apr 28, 2007 7:11 pm    Post subject: makefile how to Reply with quote

This will be my first attempt at doing a makefile. Here's a copy from kate
CONFIG_INPUT_WACOMPROXY=m
wacomproxy-objs := wacomproxy_mod.o wacomproxy_utils.o
obj-$(CONFIG_INPUT_WACOMPROXY) += wacomproxy.o

all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules

clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) cleanCONFIG_INPUT_WACOMPROXY=m
wacomproxy-objs := wacomproxy_mod.o wacomproxy_utils.o
obj-$(CONFIG_INPUT_WACOMPROXY) += wacomproxy.o


Do I do this from shell or can I do it with a text editor? What to I put here (shell uname -r)?
Any other help would be great. I'm getting brave in my old age
Thanks Scott
_________________
[img]http://img406.imag
eshack.us/img406/1995/tuxclockdp6.jpg[/img]

Dual booting Xandros 4.1 and Klikit 1.5a
http://www.scrollsawart.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
shengchieh
Xandrosianschwing


Joined: 11 Jan 2004
Posts: 2382
Location: Palo Alto, CA

PostPosted: Sat Apr 28, 2007 10:01 pm    Post subject: Reply with quote

Can you explain what you are trying to do? I (and probably others)
am confused on what you are trying to do.

Btw, you should be able to use text editor to change your script.

Sheng-Chieh
_________________
Back to top
View user's profile Send private message Visit poster's website
scott
Xandrosianding
Xandrosianding


Joined: 24 Jan 2003
Posts: 786
Location: West Chicago,Il

PostPosted: Sun Apr 29, 2007 8:18 am    Post subject: Reply with quote

I'm trying to get wacomproxy conifgured to work. This is one of many files that need to be done. I thought if someone could explain how to do this one then I could do the others. I'm a compete newbie at this.Here's a link to the package I hope this might explain things better. http://wacomproxy.sourceforge.net
_________________
[img]http://img406.imag
eshack.us/img406/1995/tuxclockdp6.jpg[/img]

Dual booting Xandros 4.1 and Klikit 1.5a
http://www.scrollsawart.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
scott
Xandrosianding
Xandrosianding


Joined: 24 Jan 2003
Posts: 786
Location: West Chicago,Il

PostPosted: Sun Apr 29, 2007 3:06 pm    Post subject: Reply with quote

I have gotten a little more info to help me understand things. My question is do I just save the info in text and what do I use for shell name?
Thanks
_________________
[img]http://img406.imag
eshack.us/img406/1995/tuxclockdp6.jpg[/img]

Dual booting Xandros 4.1 and Klikit 1.5a
http://www.scrollsawart.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
shengchieh
Xandrosianschwing


Joined: 11 Jan 2004
Posts: 2382
Location: Palo Alto, CA

PostPosted: Sun Apr 29, 2007 4:28 pm    Post subject: Reply with quote

Hopefully someone else more knowledgable comes as I'm not that
good with Makefile-s. You should be able to save any info as text file.
I believe you can save the text info inside the Makefile by using a
comment character (forgot syntax).

As for shell, default is bash shell (/bin/sh), but you can use any shell
you like. Add one of the below line as 1st line in your script to define
the shell

#!/bin/sh
#!/bin/csh
#!/bin/tcsh
#!/bin/ksh
.... (there are alot of shell languages) ...

Sheng-Chieh
_________________
Back to top
View user's profile Send private message Visit poster's website
scott
Xandrosianding
Xandrosianding


Joined: 24 Jan 2003
Posts: 786
Location: West Chicago,Il

PostPosted: Sun Apr 29, 2007 4:51 pm    Post subject: Reply with quote

Thanks Sheng-Chieh I'll see what happens.
_________________
[img]http://img406.imag
eshack.us/img406/1995/tuxclockdp6.jpg[/img]

Dual booting Xandros 4.1 and Klikit 1.5a
http://www.scrollsawart.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
scott
Xandrosianding
Xandrosianding


Joined: 24 Jan 2003
Posts: 786
Location: West Chicago,Il

PostPosted: Sun Apr 29, 2007 5:58 pm    Post subject: Reply with quote

This still very confused I'm going to put it side for now. I'll keep search the web to if I can't find a how to. The other thing is getting wacon-kernel-source complied, I get a number of errors when running dpkg reconfigure and I don't know how to correct them. It looks like Xandros does put things in a more standard directory. Just wally is trying to do this also with the same results as me.
_________________
[img]http://img406.imag
eshack.us/img406/1995/tuxclockdp6.jpg[/img]

Dual booting Xandros 4.1 and Klikit 1.5a
http://www.scrollsawart.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
shengchieh
Xandrosianschwing


Joined: 11 Jan 2004
Posts: 2382
Location: Palo Alto, CA

PostPosted: Sun Apr 29, 2007 9:52 pm    Post subject: Reply with quote

Why don't you post your error messages? Someone might be able to understand
quickly. Also, consider other forums if no response her. You can see a big list of
forums on my website (signature) -> forums.

Btw, you installed gcc (C/C++ development libraries)? That is a common missing
item when doing developments.

Sheng-Chieh
_________________
Back to top
View user's profile Send private message Visit poster's website
scott
Xandrosianding
Xandrosianding


Joined: 24 Jan 2003
Posts: 786
Location: West Chicago,Il

PostPosted: Mon Apr 30, 2007 7:31 am    Post subject: Reply with quote

shengchieh: thanks for trying to help me. I think I have you confuse and me too at this point. I'm trying to get my wacom tablet to fully function.
1. I need to configure the wacon-kernel-source. I get 2 error messages there, they are posted in building wacom kernel in this section. I didn't get any responses there.
2. Needed
to get wacomproxy to install. This is what this post is about. I don't know how to handle the different files to get them to install. wacomproxy will keep the driver active without the need to restart if it is unplugged, like going into VMware and then back to Xandros.
It looks like I need to get the wacom-kernel-source done before the rest can be done.
I'm now lloking for a how to in simple english on how to use dpkg, is there a way to change locations of files when running it.
Thnks Scott
_________________
[img]http://img406.imag
eshack.us/img406/1995/tuxclockdp6.jpg[/img]

Dual booting Xandros 4.1 and Klikit 1.5a
http://www.scrollsawart.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
shengchieh
Xandrosianschwing


Joined: 11 Jan 2004
Posts: 2382
Location: Palo Alto, CA

PostPosted: Mon Apr 30, 2007 12:41 pm    Post subject: Reply with quote

This topic is starting to go over my head. Maybe someone more knowledgable
can help. dpkg is a debian command - too geeky for most Xandros users.
You can get more info at

http://en.wikipedia.org/wiki/Dpkg

Also, debian has alot of good docs at

http://www.debian.org/doc/

Sheng-Chieh
_________________
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.xandros.com Forum Index -> Linux Devel 101 All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group