From c54b332e8d96c1fef290418d5bb1502030fb3795 Mon Sep 17 00:00:00 2001 From: chacha Date: Mon, 9 Mar 2026 01:10:26 +0100 Subject: [PATCH] build in dedicated folder --- Makefile | 19 ++++++++++--------- OBJs/.gitkeep | 0 2 files changed, 10 insertions(+), 9 deletions(-) create mode 100644 OBJs/.gitkeep diff --git a/Makefile b/Makefile index ed72af2..5fd9540 100644 --- a/Makefile +++ b/Makefile @@ -1,23 +1,24 @@ CC=gcc -CFLAGS= -Wall -std=gnu99 -O6 -m32 -march=pentium3 -fomit-frame-pointer -funroll-loops \ +# -funroll-loops +CFLAGS= -Wall -std=gnu99 -O6 -m32 -march=pentium3 -fomit-frame-pointer \ -fexpensive-optimizations -ffast-math -fno-strict-aliasing \ -I. -I./glide/headers -I/usr/include/glide \ -DCVG LFLAGS=-L./glide/lib -lglide -OBJ=main.o \ - FaultSources.o \ - Utils.o \ - Draw.o \ - Test_Address.o \ - Test_Data.o \ - Test_Data_Huge.o +OBJ=OBJs/main.o \ + OBJs/FaultSources.o \ + OBJs/Utils.o \ + OBJs/Draw.o \ + OBJs/Test_Address.o \ + OBJs/Test_Data.o \ + OBJs/Test_Data_Huge.o HEADERS := $(notdir $(wildcard *.h)) -%.o: %.c $(HEADERS) +OBJs/%.o: %.c $(HEADERS) $(CC) -c -o $@ $< $(CFLAGS) v2-tmu-memtester : $(OBJ) diff --git a/OBJs/.gitkeep b/OBJs/.gitkeep new file mode 100644 index 0000000..e69de29