You've already forked gitified_old_clb_svn
41 lines
767 B
Makefile
41 lines
767 B
Makefile
|
|
CFLAGS += -ffreestanding -Os \
|
|
-ffunction-sections -fdata-sections \
|
|
-mmultiply-enabled -mbarrel-shift-enabled \
|
|
-Itools
|
|
|
|
# Root of wrpc-sw project
|
|
WRPCSW_ROOT ?= ..
|
|
|
|
CFLAGS += -I$(WRPCSW_ROOT)/include -I$(WRPCSW_ROOT)/include/std -I$(WRPCSW_ROOT)/softpll
|
|
|
|
PPSI_O_LDFLAGS = -u wrc_ptp_init
|
|
|
|
# Let's use the pp_printf we already have in wrpc-sw
|
|
CONFIG_NO_PRINTF = y
|
|
|
|
# All files are under A (short for ARCH): I'm lazy
|
|
A := arch-$(ARCH)
|
|
|
|
LIBARCH := $A/libarch.a
|
|
|
|
LIBS += -L$A -larch
|
|
|
|
|
|
OBJ-libarch := \
|
|
$A/wrpc-io.o \
|
|
$A/wrpc-spll.o \
|
|
$A/wrpc-calibration.o \
|
|
$A/wrc_ptp_ppsi.o \
|
|
lib/dump-funcs.o \
|
|
lib/div64.o
|
|
|
|
# We only support "wrpc" time operations
|
|
TIME := wrpc
|
|
include time-wrpc/Makefile
|
|
|
|
$(LIBARCH): $(OBJ-libarch)
|
|
$(AR) r $@ $^
|
|
|
|
$(TARGET).o: $(LIBARCH)
|