English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 15 November 2006, 17:10   #1
girv
Mostly Harmless
 
girv's Avatar
 
Join Date: Aug 2004
Location: Northern Ireland
Posts: 1,149
SAS/C included makefiles ?

Is it possible using smake to "include" another makefile from your current makefile?
girv is offline  
Old 19 November 2006, 21:20   #2
Kalms
Registered User
 
Join Date: Nov 2006
Location: Stockholm, Sweden
Posts: 237
I never figured this out myself back when I was using smake. As a workaround, I concatenated the various pieces together myself and then ran smake on the result.

Let's say you have one makefile called "smakefile", and you wish it to include "smakefile.common" when making the target named "all".

Then do the following:

* Rename "smakefile" into "smakefile.local"

Create a new "smakefile" which contains the following lines:

Code:
.PHONY : all
 
all :
        @type smakefile.common >t:smakefile.tmp
        @type smakefile.local >>t:smakefile.tmp
        @smake -f t:smakefile.tmp
It's not proper "include", but it worked well enough for me.
Kalms is offline  
Old 19 November 2006, 23:25   #3
girv
Mostly Harmless
 
girv's Avatar
 
Join Date: Aug 2004
Location: Northern Ireland
Posts: 1,149
Good idea, I'll try that!

Thanks
girv is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
100 Demo Compilation - 6 ADFs included sdaonline Nostalgia & memories 5 28 March 2013 10:18
Playing CD32 Games that have Wav files Included? Kitty New to Emulation or Amiga scene 4 04 October 2009 11:55
Its here ! (Pr0n Included, lots of it) asm1 Hardware pics 21 27 February 2009 14:22
Wings of Fury (uncompressed savestate included) hipoonios project.Sprites 3 29 September 2008 07:51

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 On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 19:07.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07065 seconds with 15 queries