You've already forked gitified_old_clb_svn
44 lines
899 B
Makefile
44 lines
899 B
Makefile
# Alessandro Rubini for CERN, 2011 -- public domain
|
|
|
|
CFLAGS += -ffreestanding -Os \
|
|
-ffunction-sections -fdata-sections \
|
|
-mmultiply-enabled -mbarrel-shift-enabled \
|
|
-Itools
|
|
|
|
ARCH_LDFLAGS = -nostdlib -static -T $(ARCH).lds
|
|
|
|
# Root of wrpc-sw project
|
|
WRPCSW_ROOT ?= ..
|
|
|
|
CFLAGS += -I$(WRPCSW_ROOT)/include -I$(WRPCSW_ROOT)/softpll \
|
|
-I$(WRPCSW_ROOT)/boards/spec \
|
|
|
|
# FIXME ptp-noposix root; used temporarily until we clean up
|
|
PTPNOPOSIX_ROOT = $(WRPCSW_ROOT)/ptp-noposix
|
|
|
|
CFLAGS += -I$(PTPNOPOSIX_ROOT)/PTPWRd/dep -I$(PTPNOPOSIX_ROOT)/PTPWRd
|
|
|
|
|
|
|
|
# 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-socket.o \
|
|
$A/wrpc-io.o \
|
|
$A/wrpc-time.o \
|
|
$A/wrpc-spll.o \
|
|
$A/wrpc-calibration.o \
|
|
$A/wrc_ptp_ppsi.o \
|
|
lib/dump-funcs.o \
|
|
lib/div64.o
|
|
|
|
$(LIBARCH): $(OBJ-libarch)
|
|
$(AR) r $@ $^
|
|
|
|
$(TARGET).o: $(LIBARCH)
|