Merge pull request #2804 from mrdudz/geossample
add a geos resource file to the "ascii" sample
This commit is contained in:
@@ -40,11 +40,13 @@ ifdef CC65_HOME
|
|||||||
CC = $(CC65_HOME)/bin/cc65
|
CC = $(CC65_HOME)/bin/cc65
|
||||||
CL = $(CC65_HOME)/bin/cl65
|
CL = $(CC65_HOME)/bin/cl65
|
||||||
LD = $(CC65_HOME)/bin/ld65
|
LD = $(CC65_HOME)/bin/ld65
|
||||||
|
GRC = $(CC65_HOME)/bin/grc65
|
||||||
else
|
else
|
||||||
AS := $(if $(wildcard ../bin/ca65*),../bin/ca65,ca65)
|
AS := $(if $(wildcard ../bin/ca65*),../bin/ca65,ca65)
|
||||||
CC := $(if $(wildcard ../bin/cc65*),../bin/cc65,cc65)
|
CC := $(if $(wildcard ../bin/cc65*),../bin/cc65,cc65)
|
||||||
CL := $(if $(wildcard ../bin/cl65*),../bin/cl65,cl65)
|
CL := $(if $(wildcard ../bin/cl65*),../bin/cl65,cl65)
|
||||||
LD := $(if $(wildcard ../bin/ld65*),../bin/ld65,ld65)
|
LD := $(if $(wildcard ../bin/ld65*),../bin/ld65,ld65)
|
||||||
|
GRC := $(if $(wildcard ../bin/grc65*),../bin/grc65,grc65)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(SILENT),s)
|
ifeq ($(SILENT),s)
|
||||||
@@ -176,6 +178,7 @@ else
|
|||||||
$(LD) $(LDFLAGS_$(@F)_$(SYS)) $(LDFLAGS) -o $@ -t $(SYS) -m $@.map $^ $(SYS).lib
|
$(LD) $(LDFLAGS_$(@F)_$(SYS)) $(LDFLAGS) -o $@ -t $(SYS) -m $@.map $^ $(SYS).lib
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
# Lists of subdirectories
|
# Lists of subdirectories
|
||||||
|
|
||||||
@@ -345,10 +348,10 @@ EXELIST_gamate = \
|
|||||||
hello
|
hello
|
||||||
|
|
||||||
EXELIST_geos-cbm = \
|
EXELIST_geos-cbm = \
|
||||||
ascii
|
ascii.cvt
|
||||||
|
|
||||||
EXELIST_geos-apple = \
|
EXELIST_geos-apple = \
|
||||||
ascii
|
ascii.cvt
|
||||||
|
|
||||||
EXELIST_lunix = \
|
EXELIST_lunix = \
|
||||||
notavailable
|
notavailable
|
||||||
@@ -565,6 +568,26 @@ tgidemo: tgidemo.o
|
|||||||
$(LD) -D __HIMEM__=0x6000 $(LDFLAGS) -o $@ -C vic20-tgi.cfg -m $@.map $^ $(SYS).lib
|
$(LD) -D __HIMEM__=0x6000 $(LDFLAGS) -o $@ -C vic20-tgi.cfg -m $@.map $^ $(SYS).lib
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# GEOS programs need a resource file linked to them
|
||||||
|
ifeq ($(SYS),geos-cbm)
|
||||||
|
asciires.o: asciires.grc
|
||||||
|
$(GRC) -t $(SYS) $<
|
||||||
|
$(AS) $(<:.grc=.s)
|
||||||
|
ascii.cvt: ascii.o asciires.o
|
||||||
|
$(if $(QUIET),echo $(SYS):$@)
|
||||||
|
$(LD) $(LDFLAGS_$(@F)_$(SYS)) $(LDFLAGS) -o $@ -t $(SYS) -m $@.map $^ $(SYS).lib
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(SYS),geos-apple)
|
||||||
|
asciires.o: asciires.grc
|
||||||
|
$(GRC) -t $(SYS) $<
|
||||||
|
$(AS) $(<:.grc=.s)
|
||||||
|
ascii.cvt: ascii.o asciires.o
|
||||||
|
$(if $(QUIET),echo $(SYS):$@)
|
||||||
|
$(LD) $(LDFLAGS_$(@F)_$(SYS)) $(LDFLAGS) -o $@ -t $(SYS) -m $@.map $^ $(SYS).lib
|
||||||
|
endif
|
||||||
|
|
||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
# some programs link against getsp.o
|
# some programs link against getsp.o
|
||||||
|
|
||||||
|
|||||||
7
samples/asciires.grc
Normal file
7
samples/asciires.grc
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
; this is the resource file for ascii.c, a GEOS application example
|
||||||
|
|
||||||
|
HEADER APPLICATION "ascii" "ascii" "V0.1" {
|
||||||
|
dostype USR
|
||||||
|
author "cc65 team"
|
||||||
|
info "This is a cc65 sample."
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user