Search found 2 matches

by rcracer
Mon Nov 03, 2008 9:47 pm
Forum: PS2 Development
Topic: Makefile -lm
Replies: 3
Views: 2914

i have tried each position and with this: $(CC) $(CFLAGS) -Tlinkfile -o demo1.elf $(C_OBJ) $(S_OBJ) -lm -Wl,-Map,demo1.map it seems math is linked but new errors: ee-gcc -Wall -W -EL -G0 -O0 -mips3 -nostdlib -DPS2_EE -Tlinkfile -o demo1...
by rcracer
Mon Nov 03, 2008 10:20 am
Forum: PS2 Development
Topic: Makefile -lm
Replies: 3
Views: 2914

Makefile -lm

Short question: Where exactly in this makefile do i have to add the -lm to link the math libary CC=ee-gcc AS=ee-as LD=ee-elf-ld OBJ_DIR = obj CFLAGS = -Wall -W -EL -G0 -O0 -mips3 -nostdlib -DPS2_EE C_SRC = g2.c demo1.c S_SRC = crt0.s ps2_asm.s dma_asm.s gs_asm.s C_OBJ = $(addprefix $&#40...