1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-11 20:29:36 +00:00

fix grc example, fix makefiles to compile grc example correctly

This commit is contained in:
mrdudz 2020-10-15 18:41:17 +02:00
parent f60af0301a
commit a0dc7cd9e4
5 changed files with 23 additions and 22 deletions

View File

@ -33,11 +33,20 @@ else
SP := $(if $(wildcard ../../bin/sp65*),../../bin/sp65,sp65)
endif
DIRLIST = grc
define SUBDIR_recipe
@$(MAKE) -C $(dir) --no-print-directory $@
endef # SUBDIR_recipe
# omitted: dialog.c grphstr.c inittab.c menu.c
# TODO: geosconio.cvt rmvprot.cvt
samples: bitmap-demo.cvt filesel.cvt geosver.cvt getid.cvt hello1.cvt hello2.cvt \
overlay-demo.cvt vector-demo.cvt yesno.cvt
$(foreach dir,$(DIRLIST),$(SUBDIR_recipe))
bitmap.c: logo.pcx
$(SP) -r logo.pcx -c geos-bitmap -w bitmap.c,ident=bitmap
@ -77,6 +86,8 @@ yesno.cvt: yesnores.grc yesno.c
clean:
$(RM) overlay-demores.h
$(RM) bitmap.c
$(RM) *.cvt
$(RM) *.map
$(foreach dir,$(DIRLIST),$(SUBDIR_recipe))

View File

@ -29,16 +29,7 @@ else
GRC := $(if $(wildcard ../../../bin/grc65*),../../../bin/grc65,grc65)
endif
DIRLIST = grc
define SUBDIR_recipe
@$(MAKE) -C $(dir) --no-print-directory $@
endef # SUBDIR_recipe
samples: test.s vlir.cvt
$(foreach dir,$(DIRLIST),$(SUBDIR_recipe))
test.s: test.grc
$(GRC) -s test.s test.grc
@ -59,4 +50,3 @@ clean:
$(RM) test.s test.h
$(RM) vlir.s vlir.cvt vlir.c vlir.h
$(RM) *.o
$(foreach dir,$(DIRLIST),$(SUBDIR_recipe))

View File

@ -5,10 +5,10 @@
; include some GEOS defines
.include "../../libsrc/geos-common/const.inc"
.include "../../libsrc/geos-cbm/jumptab.inc"
.include "../../libsrc/geos-cbm/geossym.inc"
.include "../../libsrc/geos-common/geosmac.inc"
.include "../../../libsrc/geos-common/const.inc"
.include "../../../libsrc/geos-cbm/jumptab.inc"
.include "../../../libsrc/geos-cbm/geossym.inc"
.include "../../../libsrc/geos-common/geosmac.inc"
; import load addresses for all VLIR chains
; these labels are defined upon linking with ld65

View File

@ -5,10 +5,10 @@
; include some GEOS defines
.include "../../libsrc/geos-common/const.inc"
.include "../../libsrc/geos-cbm/jumptab.inc"
.include "../../libsrc/geos-cbm/geossym.inc"
.include "../../libsrc/geos-common/geosmac.inc"
.include "../../../libsrc/geos-common/const.inc"
.include "../../../libsrc/geos-cbm/jumptab.inc"
.include "../../../libsrc/geos-cbm/geossym.inc"
.include "../../../libsrc/geos-common/geosmac.inc"
; export names of functions that will be used in the main program

View File

@ -5,10 +5,10 @@
; similar to vlir1.s except the fact that this is chain #2
.include "../../libsrc/geos-common/const.inc"
.include "../../libsrc/geos-cbm/jumptab.inc"
.include "../../libsrc/geos-cbm/geossym.inc"
.include "../../libsrc/geos-common/geosmac.inc"
.include "../../../libsrc/geos-common/const.inc"
.include "../../../libsrc/geos-cbm/jumptab.inc"
.include "../../../libsrc/geos-cbm/geossym.inc"
.include "../../../libsrc/geos-common/geosmac.inc"
.export OVERLAY2_Function1
.export OVERLAY2_Function2