Skip to content

Commit cc7e8d5

Browse files
convert tilemap csv using convbin for examples
1 parent 3428df0 commit cc7e8d5

File tree

6 files changed

+21
-68
lines changed

6 files changed

+21
-68
lines changed

examples/library_examples/graphx/tilemap/makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ COMPRESSED = NO
1010
CFLAGS = -Wall -Wextra -Oz
1111
CXXFLAGS = -Wall -Wextra -Oz
1212

13+
EXTRA_C_SOURCES = src/tilemap/tilemap.c
14+
1315
# ----------------------------
1416

1517
include $(shell cedev-config --makefile)
18+
19+
# rule to convert CSV tilemap to C source file
20+
src/tilemap/tilemap.c: src/tilemap/tilemap.csv
21+
@convbin -j csv -i $< -k c -o $@ -n tilemap_map
22+

examples/library_examples/graphx/tilemap/src/tilemap/tilemap.c

Lines changed: 0 additions & 28 deletions
This file was deleted.

examples/library_examples/graphx/tilemap_appvar/makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ COMPRESSED = NO
1010
CFLAGS = -Wall -Wextra -Oz
1111
CXXFLAGS = -Wall -Wextra -Oz
1212

13+
EXTRA_C_SOURCES = src/tilemap/tilemap.c
14+
1315
# ----------------------------
1416

1517
include $(shell cedev-config --makefile)
18+
19+
# rule to convert CSV tilemap to C source file
20+
src/tilemap/tilemap.c: src/tilemap/tilemap.csv
21+
@convbin -j csv -i $< -k c -o $@ -n tilemap_map
22+

examples/library_examples/graphx/tilemap_appvar/src/tilemap/tilemap.c

Lines changed: 0 additions & 28 deletions
This file was deleted.

examples/library_examples/graphx/tilemap_compressed/makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ COMPRESSED = NO
1010
CFLAGS = -Wall -Wextra -Oz
1111
CXXFLAGS = -Wall -Wextra -Oz
1212

13+
EXTRA_C_SOURCES = src/tilemap/tilemap.c
14+
1315
# ----------------------------
1416

1517
include $(shell cedev-config --makefile)
18+
19+
# rule to convert CSV tilemap to C source file
20+
src/tilemap/tilemap.c: src/tilemap/tilemap.csv
21+
@convbin -j csv -i $< -k c -c zx7 -o $@ -n tilemap_map_compressed
22+

examples/library_examples/graphx/tilemap_compressed/src/tilemap/tilemap.c

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)