diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-05-01 21:44:35 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-05-01 21:44:35 +0100 |
commit | ef84fb6fcb45a86fce97acda58606a76a937a1da (patch) | |
tree | a3e049b858724837cc9ce0106e30c9e1c028ddc6 /Makefile | |
parent | c081dfe226c6e92865cbb97d8e9a2ef86d8c6acb (diff) | |
download | tr8vm-ef84fb6fcb45a86fce97acda58606a76a937a1da.tar.gz tr8vm-ef84fb6fcb45a86fce97acda58606a76a937a1da.zip |
Added the VM player using SDL
- Wired basic functionality (fram-buffer, frame interrupt)
- Bug fixes in the assembler
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 20 |
1 files changed, 14 insertions, 6 deletions
@@ -1,14 +1,22 @@ -CC := gcc -CFLAGS := -std=c89 -Wpedantic -s -O2 -Wall -I. -LDFLAGS := +# common +CC := gcc +CFLAGS := -Wpedantic -s -O2 -Wall -I. +LDFLAGS := + +# only for the vm +SDL2_CONFIG := sdl2-config +LIBS := `$(SDL2_CONFIG) --libs` -lSDL2_mixer all: tr8as tr8vm -tr8vm: vm.c vm.h - $(CC) $(CFLAGS) -DDO_MAIN $< -o $@ +tr8vm: tr8vm.c vm.o vm.h + $(CC) -std=c99 $(CFLAGS) `$(SDL2_CONFIG) --cflags` $< vm.o `$(SDL2_CONFIG) --libs` $(LIBS) -o $@ tr8as: tr8as.c - $(CC) $(CFLAGS) -DDO_MAIN $< -o $@ + $(CC) -std=c89 $(CFLAGS) -DDO_MAIN $< -o $@ + +vm.o: vm.c vm.h + $(CC) -c -std=c89 $(CFLAGS) $< -o $@ example: example.tr8 tr8vm ./tr8vm example.tr8 |