Problem in Makefile: Can't Find 'atsmake-post.mk' and Other Probelms

29 views
Skip to first unread message

d4v3y_5c0n3s

unread,
Nov 16, 2019, 9:27:33 PM11/16/19
to ats-lang-users
    First off, I would like to say that I am new to ATS, and have been beginning to learn it.  I've really been enjoying it so far, and I decided to start a long-term project in order to help me get better at ATS.  So, I found the Corange game engine (https://github.com/orangeduck/Corange) and decided to reimplement it in ATS (https://github.com/d4v3y5c0n3s/Goldelish-Engine).  Unfortunately, I am having issues figuring out how to get the Makefile properly set up.  I've looked at examples provided in ATS2-Postiats and ATS-Postiats-contrib.  Basically, I'm trying to take Corange's Makefile and make it work with ATS.  I'm trying to figure out how Make works, and I'm starting to understand it, but I've been stuck due to having trouble finding answers online.  Currently, when I try to call 'make' on the command line I get the following:
Makefile:74: warning: overriding recipe for target 'testall'
Makefile:72: warning: ignoring old recipe for target 'testall'
Makefile:76: warning: overriding recipe for target 'testall'
Makefile:74: warning: ignoring old recipe for target 'testall'
Makefile:78: :/home/d4v3y/ATS2-Postiats/share/atsmake-post.mk: No such file or directory
make: *** No rule to make target ':/home/d4v3y/ATS2-Postiats/share/atsmake-post.mk'.  Stop
.
You can find my Makefile in the repo for the engine I'm working on here: (https://github.com/d4v3y5c0n3s/Goldelish-Engine/blob/master/Makefile)
And the Makefile for Corange is here: (https://github.com/orangeduck/Corange/blob/master/Makefile)

Thank you for any help!

Hongwei Xi

unread,
Nov 17, 2019, 11:29:53 AM11/17/19
to ats-lan...@googlegroups.com
First, 'testall:' should be changed to 'testall::'

atsmake-pre.mk can be found here:


atsmake-post.mk can be found here:


I rarely use these two files when constructing Makefiles for my own use.
I think all you need from these files is just some basic definitions. E.g.,

PATSCC=$(PATSHOMEQ)/bin/patscc
PATSOPT=$(PATSHOMEQ)/bin/patsopt
PATSLIB=$(PATSHOMEQ)/ccomp/atslib/lib


--
You received this message because you are subscribed to the Google Groups "ats-lang-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ats-lang-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/ac6c96e9-b1d7-4d53-a90f-f93a906f4d00%40googlegroups.com.

d4v3y_5c0n3s

unread,
Nov 17, 2019, 4:03:09 PM11/17/19
to ats-lang-users
Thank you for the fast reply. This is really helpful. :)
Reply all
Reply to author
Forward
0 new messages