Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
29
Issues
29
List
Board
Labels
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Software for White Rabbit PTP Core
Commits
9ff8a130
Commit
9ff8a130
authored
Apr 12, 2011
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new make
parent
c215a7c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
6 deletions
+29
-6
Makefile
Makefile
+29
-6
No files found.
Makefile
View file @
9ff8a130
...
...
@@ -2,8 +2,29 @@ PLATFORM = lm32
OBJS_WRC
=
wrc_main.o dev/uart.o dev/endpoint.o dev/minic.o dev/pps_gen.o dev/timer.o dev/softpll.o lib/mprintf.o
D
=
ptpd-noposix
PTPD_CFLAGS
=
-ffreestanding
-DPTPD_FREESTANDING
-DWRPC_EXTRA_SLIM
-DPTPD_MSBF
-DPTPD_DBG
PTPD_CFLAGS
+=
-Wall
-ggdb
-I
$D
/wrsw_hal
\
-I
$D
/libptpnetif
-I
$D
/PTPWRd
\
-include
$D
/compat.h
-include
$D
/libposix/ptpd-wrappers.h
PTPD_CFLAGS
+=
-DPTPD_NO_DAEMON
-DNEW_SINGLE_WRFSM
#-DPTPD_DBGMSG
OBJS_PTPD
=
$D
/PTPWRd/arith.o
OBJS_PTPD
+=
$D
/PTPWRd/bmc.o
OBJS_PTPD
+=
$D
/PTPWRd/dep/msg.o
OBJS_PTPD
+=
$D
/PTPWRd/dep/net.o
OBJS_PTPD
+=
$D
/PTPWRd/dep/servo.o
OBJS_PTPD
+=
$D
/PTPWRd/dep/sys.o
OBJS_PTPD
+=
$D
/PTPWRd/dep/timer.o
OBJS_PTPD
+=
$D
/PTPWRd/dep/wr_servo.o
OBJS_PTPD
+=
$D
/PTPWRd/protocol.o
OBJS_PTPD
+=
$D
/PTPWRd/wr_protocol.o
OBJS_PTPD_FREE
=
$D
/libposix/freestanding-startup.o
OBJS_PTPD_FREE
+=
$D
/libposix/freestanding-display.o
OBJS_PTPD_FREE
+=
$D
/libposix/wr_nolibs.o
OBJS_PTPD_FREE
+=
$D
/libposix/freestanding-wrapper.o
ifeq
($(PLATFORM),
zpu)
CROSS_COMPILE
?=
/opt/gcc-zpu/bin/zpu-elf-
CFLAGS_PLATFORM
=
-abel
-Wl
,--relax
-Wl
,--gc-sections
LDFLAGS_PLATFORM
=
-abel
-Wl
,--relax
-Wl
,--gc-sections
OBJS_PLATFORM
=
...
...
@@ -11,29 +32,31 @@ else
CROSS_COMPILE
?=
/opt/gcc-lm32/bin/lm32-elf-
CFLAGS_PLATFORM
=
-mmultiply-enabled
-mbarrel-shift-enabled
LDFLAGS_PLATFORM
=
-mmultiply-enabled
-mbarrel-shift-enabled
-nostdlib
-T
target/lm32/ram.ld
OBJS_PLATFORM
=
target/lm32/crt0.o
OBJS_PLATFORM
=
target/lm32/crt0.o
target/lm32/irq.o
endif
CC
=
$(CROSS_COMPILE)
gcc
OBJCOPY
=
$(CROSS_COMPILE)
objcopy
OBJDUMP
=
$(CROSS_COMPILE)
objdump
CFLAGS
=
$(CFLAGS_PLATFORM)
-ffunction-sections
-fdata-sections
-Os
-Iinclude
CFLAGS
=
$(CFLAGS_PLATFORM)
-ffunction-sections
-fdata-sections
-Os
-Iinclude
-include
include/trace.h
$(PTPD_CFLAGS)
LDFLAGS
=
$(LDFLAGS_PLATFORM)
-ffunction-sections
-fdata-sections
-Os
-Iinclude
OBJS
=
$(OBJS_PLATFORM)
$(OBJS_WRC)
SIZE
=
$(CROSS_COMPILE)
size
OBJS
=
$(OBJS_PLATFORM)
$(OBJS_WRC)
$(OBJS_PTPD)
$(OBJS_PTPD_FREE)
OUTPUT
=
wrc
all
:
$(OBJS)
$(SIZE)
-t
$(OBJS)
${
CC
}
-o
$(OUTPUT)
.elf
$(OBJS)
$(LDFLAGS)
${
OBJCOPY
}
-O
binary
$(OUTPUT)
.elf
$(OUTPUT)
.bin
${
OBJDUMP
}
-d
$(OUTPUT)
.elf
>
$(OUTPUT)
_disasm.S
./tools/genraminit
$(OUTPUT)
.bin 0
>
$(OUTPUT)
.ram
clean
:
rm
-f
$(OBJS)
$(OUTPUT)
.elf
$(OUTPUT)
.bin
$(OUTPUT)
.ram
%.o
:
%.c
${
CC
}
$(CFLAGS)
$(INCLUDE_DIR)
$(LIB_DIR)
-c
$^
-o
$@
${
CC
}
$(CFLAGS)
$(
PTPD_CFLAGS)
$(
INCLUDE_DIR)
$(LIB_DIR)
-c
$^
-o
$@
load
:
all
./tools/zpu-loader
$(OUTPUT)
.bin
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment