mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2015-04-27, 02:43   #1
Explorer09
 
May 2014

3×11 Posts
Default (patch) 'distclean' rule & allow customizing 'ar' in gwnum makefiles

I tweaked the makefiles in 'gwnum' subdirectory to ease my build work.
Two changes:
1. Use $(AR) variable, which allows me to specify which ar program to use. Useful when I build prime95/mprime with a cross-toolchain, e.g.
Code:
make AR=i486-linux-gnu-ar CC=i486-linux-gnu-gcc CPP=i486-linux-gnu-g++
2. Add a 'distclean' rule to also remove the generated gwnum.a files. (Because I think `make clean` keeps them for a reason.)

Patch is attached. Opinions are welcome.
Attached Files
File Type: txt p95-ar-distclean.patch.txt (5.2 KB, 66 views)

Last fiddled with by Explorer09 on 2015-04-27 at 02:44
Explorer09 is offline   Reply With Quote
Old 2015-04-28, 01:29   #2
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

2×53×71 Posts
Default

I don't see how it can hurt. Patch applied.
Prime95 is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Grammar rule-breaking ftw jasong Lounge 71 2013-10-15 03:39
What to do about the false-start rule? (Athletics) Flatlander Hobbies 9 2011-08-30 02:29
Customizing Ubuntu ISO flouran Linux 3 2009-06-07 08:48
Rule for ECM curve and Factor? roger Factoring 1 2007-07-19 07:07
Rule for all galaxies. mfgoode Science & Technology 3 2007-03-20 06:02

All times are UTC. The time now is 08:04.


Sat Jul 17 08:04:30 UTC 2021 up 50 days, 5:51, 1 user, load averages: 2.17, 1.45, 1.36

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.