URL
https://opencores.org/ocsvn/ion/ion/trunk
[/] [ion/] [trunk/] [src/] [common/] [libsoc/] [makefile] - Diff between revs 172 and 178
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 172 |
Rev 178 |
Line 14... |
Line 14... |
|
|
CFLAGS = -O2 -Wall -c -s -fno-builtin -nostdlib -nodefaultlibs \
|
CFLAGS = -O2 -Wall -c -s -fno-builtin -nostdlib -nodefaultlibs \
|
-msoft-float -mips1 -G0
|
-msoft-float -mips1 -G0
|
|
|
#-- IMPORTANT: List of object files to be included in the library
|
#-- IMPORTANT: List of object files to be included in the library
|
OBJS = hw_ion_mpu.o soc.o syscalls.o printf-stdarg.o
|
OBJS = hw_ion_mpu.o soc.o syscalls.o printf-stdarg.o \
|
|
fp-bit-float.o fp-bit-double.o
|
|
|
SRC = ./src
|
SRC = ./src
|
|
|
#-- Targets & rules ------------------------------------------------------------
|
#-- Targets & rules ------------------------------------------------------------
|
|
|
Line 29... |
Line 30... |
soc.o: $(SRC)/soc.h
|
soc.o: $(SRC)/soc.h
|
printf-stdarg.o:
|
printf-stdarg.o:
|
syscalls.o: $(SRC)/soc.h
|
syscalls.o: $(SRC)/soc.h
|
hw_ion_mpu.o: $(SRC)/soc.h $(SRC)/hw.h
|
hw_ion_mpu.o: $(SRC)/soc.h $(SRC)/hw.h
|
|
|
|
fp-bit-float.o: $(SRC)/fp-bit.c
|
|
$(CC) $(CFLAGS) -DFLOAT=1 $(SRC)/fp-bit.c -o fp-bit-float.o
|
|
fp-bit-double.o:
|
|
$(CC) $(CFLAGS) $(SRC)/fp-bit.c -o fp-bit-double.o
|
|
|
#-- Let's make some implicit rules explicit for clarity (well, 'clarity')
|
#-- Let's make some implicit rules explicit for clarity (well, 'clarity')
|
|
|
%.o: $(SRC)/%.c
|
%.o: $(SRC)/%.c
|
$(CC) $(CFLAGS) $< -o $@
|
$(CC) $(CFLAGS) $< -o $@
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.