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

@@ -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))