From dca7a781545c1b16af76bbbcbd45f6d735c02587 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Thu, 4 May 2023 23:03:46 +0100 Subject: Make the stb_image implementation a C module --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 2bc7a3b..c83ded3 100644 --- a/Makefile +++ b/Makefile @@ -12,12 +12,15 @@ all: tr8as tr8vm 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) -std=c99 $(CFLAGS) -DDO_MAIN $< -o $@ -lm +tr8as: tr8as.c stb_image.o + $(CC) -std=c99 $(CFLAGS) -DDO_MAIN $< stb_image.o -o $@ -lm vm.o: vm.c vm.h $(CC) -c -std=c89 $(CFLAGS) $< -o $@ +stb_image.o: stb_image.c stb_image.h + $(CC) -c -std=c99 $(CFLAGS) $< -o $@ + example: example.tr8 tr8vm ./tr8vm example.tr8 @@ -25,7 +28,7 @@ example.tr8: example.asm tr8as ./tr8as example.asm example.tr8 clean: - rm -f tr8as tr8vm example.tr8 + rm -f tr8as tr8vm example.tr8 *.o .PHONY: clean all example -- cgit v1.2.3