build in dedicated folder
This commit is contained in:
19
Makefile
19
Makefile
@@ -1,23 +1,24 @@
|
|||||||
CC=gcc
|
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 \
|
-fexpensive-optimizations -ffast-math -fno-strict-aliasing \
|
||||||
-I. -I./glide/headers -I/usr/include/glide \
|
-I. -I./glide/headers -I/usr/include/glide \
|
||||||
-DCVG
|
-DCVG
|
||||||
|
|
||||||
LFLAGS=-L./glide/lib -lglide
|
LFLAGS=-L./glide/lib -lglide
|
||||||
|
|
||||||
OBJ=main.o \
|
OBJ=OBJs/main.o \
|
||||||
FaultSources.o \
|
OBJs/FaultSources.o \
|
||||||
Utils.o \
|
OBJs/Utils.o \
|
||||||
Draw.o \
|
OBJs/Draw.o \
|
||||||
Test_Address.o \
|
OBJs/Test_Address.o \
|
||||||
Test_Data.o \
|
OBJs/Test_Data.o \
|
||||||
Test_Data_Huge.o
|
OBJs/Test_Data_Huge.o
|
||||||
|
|
||||||
HEADERS := $(notdir $(wildcard *.h))
|
HEADERS := $(notdir $(wildcard *.h))
|
||||||
|
|
||||||
%.o: %.c $(HEADERS)
|
OBJs/%.o: %.c $(HEADERS)
|
||||||
$(CC) -c -o $@ $< $(CFLAGS)
|
$(CC) -c -o $@ $< $(CFLAGS)
|
||||||
|
|
||||||
v2-tmu-memtester : $(OBJ)
|
v2-tmu-memtester : $(OBJ)
|
||||||
|
|||||||
0
OBJs/.gitkeep
Normal file
0
OBJs/.gitkeep
Normal file
Reference in New Issue
Block a user