Skip to content

Commit

Permalink
okameron: Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ry755 committed May 7, 2023
1 parent 0bf42ec commit d2f9739
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions okameron/Fox32Demo.okm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ MODULE Fox32Demo;
OKMNextWinEvent, save_state_and_yield_task, start_dragging_window, handle_widget_click: LONG;
EXTERN eventArgs: ARRAY 8 OF LONG;
EXTERN EVENT_TYPE_MOUSE_CLICK, EVENT_TYPE_BUTTON_CLICK, WIDGET_TYPE_BUTTON: LONG;

TYPE Fox32OSButtonWidget = RECORD
next, id, type, text, fgColor, bgColor, width: INT;
x, y: SHORT;
Expand Down Expand Up @@ -44,4 +44,4 @@ MODULE Fox32Demo;
save_state_and_yield_task();
END;
END;
END.
END.
13 changes: 8 additions & 5 deletions okameron/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
VOS := ../../okameron/okameron.lua
OKAMERON := ../../okameron/okameron.lua
FOX32ASM := ../../fox32asm/target/release/fox32asm

build:
lua $(VOS) -arch=fox32 Fox32Demo.okm > out.asm
$(FOX32ASM) out.asm OkameronDemo.fxf
# rm out.asm
all: Fox32Demo.fxf

%.fxf: %.asm
$(FOX32ASM) $< $@

%.asm: %.okm
lua $(OKAMERON) -arch=fox32 $< > $@

0 comments on commit d2f9739

Please sign in to comment.