From 50f7a12f52ea8d71b8cb8c29803d88d6ffb947a5 Mon Sep 17 00:00:00 2001 From: neauoire Date: Thu, 10 Aug 2023 21:49:38 -0700 Subject: [PATCH] Added tests to makefile --- makefile | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/makefile b/makefile index 1e97104..695520e 100644 --- a/makefile +++ b/makefile @@ -6,6 +6,12 @@ RELEASE_flags=-DNDEBUG -O2 -g0 -s DEBUG_flags=-std=c89 -D_POSIX_C_SOURCE=199309L -DDEBUG -Wall -Wno-unknown-pragmas -Wpedantic -Wshadow -Wextra -Werror=implicit-int -Werror=incompatible-pointer-types -Werror=int-conversion -Wvla -g -Og -fsanitize=address -fsanitize=undefined all: dest uxnasm uxncli uxn11 +debug: dest uxnasm-debug uxncli-debug uxn11-debug + +dest: + mkdir -p bin +rom: + ./bin/uxnasm etc/polycat.tal bin/polycat.rom uxnasm: cc ${RELEASE_flags} src/uxnasm.c -o bin/uxnasm @@ -14,8 +20,6 @@ uxncli: uxn11: gcc ${RELEASE_flags} ${EMU_src} src/uxn11.c -lX11 -o bin/uxn11 -debug: dest uxnasm-debug uxncli-debug uxn11-debug - uxnasm-debug: cc ${DEBUG_flags} src/uxnasm.c -o bin/uxnasm uxncli-debug: @@ -23,13 +27,10 @@ uxncli-debug: uxn11-debug: gcc ${DEBUG_flags} ${EMU_src} src/uxn11.c -lX11 -o bin/uxn11 -dest: - mkdir -p bin -rom: - ./bin/uxnasm etc/polycat.tal bin/polycat.rom - run: uxnasm uxncli uxn11 rom ./bin/uxn11 bin/polycat.rom +test: uxnasm uxncli uxn11 + ./bin/uxnasm && ./bin/uxncli && ./bin/uxn11 && ./bin/uxnasm -v && ./bin/uxncli -v && ./bin/uxn11 -v install: uxnasm uxncli uxn11 cp bin/uxn11 bin/uxnasm bin/uxncli ~/bin/ uninstall: