1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-22 12:30:41 +00:00

Autodetect the location of the compiler and tools.

git-svn-id: svn://svn.cc65.org/cc65/trunk@3288 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2004-11-07 11:33:30 +00:00
parent a939b2b7e9
commit f9abc154be

View File

@ -7,12 +7,30 @@
# Enter the target system here
SYS = c64
CRT0 = ../libsrc/$(SYS).o
CLIB = ../libsrc/$(SYS).lib
CC = ../src/cc65/cc65
CL = ../src/cl65/cl65
AS = ../src/ca65/ca65
LD = ../src/ld65/ld65
# Determine the path to the executables and libraries. If the samples
# directory is part of a complete source tree, use the stuff from this
# source tree, otherwise use the "official" directories.
ifeq "$(wildcard ../src)" ""
# No source tree
CRT0 = $(SYS).o
CLIB = $(SYS).lib
CL = cl65
CC = cc65
AS = as65
LD = ld65
else
# Samples is part of a complete source tree
CRT0 = ../libsrc/$(SYS).o
CLIB = ../libsrc/$(SYS).lib
CL = ../src/cl65/cl65
CC = ../src/cc65/cc65
AS = ../src/ca65/ca65
LD = ../src/ld65/ld65
export CC65_INC = ../include
endif
# This one comes with VICE
C1541 = c1541