Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
tsn-measures
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
tsn-measures
Commits
50a950fd
Commit
50a950fd
authored
May 07, 2020
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move client and server files into a single folder
parent
7bd835d9
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
49 additions
and
77 deletions
+49
-77
packet-exchange/build/Makefile
packet-exchange/build/Makefile
+49
-0
packet-exchange/src/client.c
packet-exchange/src/client.c
+0
-1
packet-exchange/src/send_packet.c
packet-exchange/src/send_packet.c
+0
-0
packet-exchange/src/send_packet.h
packet-exchange/src/send_packet.h
+0
-0
packet-exchange/src/server.c
packet-exchange/src/server.c
+0
-0
simple-client/build/Makefile
simple-client/build/Makefile
+0
-40
simple-client/build/main_arm
simple-client/build/main_arm
+0
-0
simple-server/build/Makefile
simple-server/build/Makefile
+0
-36
simple-server/build/main_arm
simple-server/build/main_arm
+0
-0
No files found.
packet-exchange/build/Makefile
0 → 100644
View file @
50a950fd
ARM_CC
=
arm-linux-gnueabihf-gcc
SERVER_ARM_PROG
=
server_arm
CLIENT_ARM_PROG
=
client_arm
SERVER_PROG
=
server
CLIENT_PROG
=
client
SRCDIR
=
../src
SERVER_SRCS
=
server.c
CLIENT_SRCS
=
client.c
CLIENT_SRCS
+=
send_packet.c
SERVER_OBJS
=
$(SERVER_SRCS:%.c=%.o)
CLIENT_OBJS
=
$(CLIENT_SRCS:%.c=%.o)
CFLAGS
=
-Og
-g
-Wall
-Werror
-Wextra
CFLAGS
+=
-MD
-MP
CFLAGS
+=
-I
$(SRCDIR)
CFLAGS
+=
-std
=
gnu99
LDFLAGS
=
-pthread
vpath
%.c
$(SRCDIR)
$(SERVER_ARM_PROG)
:
FORCE
make clean
make
-e
CC:
=
$(ARM_CC)
$(SERVER_PROG)
mv
$(SERVER_PROG)
$(SERVER_ARM_PROG)
$(CLIENT_ARM_PROG)
:
FORCE
make clean
make
-e
CC:
=
$(ARM_CC)
$(CLIENT_PROG)
mv
$(CLIENT_PROG)
$(CLIENT_ARM_PROG)
FORCE
:
$(SERVER_PROG)
:
$(SERVER_OBJS)
$(CC)
$(LDFLAGS)
$^
-o
$@
$(CLIENT_PROG)
:
$(CLIENT_OBJS)
$(CC)
$(LDFLAGS)
$^
-o
$@
-include
$(subst .c,.d,$(SERVER_SRCS))
-include
$(subst .c,.d,$(CLIENT_SRCS))
clean
:
$(RM)
$(SERVER_OBJS)
$(SERVER_PROG)
$(SERVER_ARM_PROG)
$(
subst
.c,.d,
$(SERVER_SRCS)
)
$(RM)
$(CLIENT_OBJS)
$(CLIENT_PROG)
$(CLIENT_ARM_PROG)
$(
subst
.c,.d,
$(CLIENT_SRCS)
)
.PHONY
:
clean FORCE
simple-client
/src/client.c
→
packet-exchange
/src/client.c
View file @
50a950fd
...
...
@@ -8,7 +8,6 @@
#include <time.h>
#include <unistd.h>
#include "getip.h"
#include "send_packet.h"
#define CLOCK_ID CLOCK_MONOTONIC
...
...
simple-client
/src/send_packet.c
→
packet-exchange
/src/send_packet.c
View file @
50a950fd
File moved
simple-client
/src/send_packet.h
→
packet-exchange
/src/send_packet.h
View file @
50a950fd
File moved
simple-server
/src/server.c
→
packet-exchange
/src/server.c
View file @
50a950fd
File moved
simple-client/build/Makefile
deleted
100644 → 0
View file @
7bd835d9
ARM_CC
=
arm-linux-gnueabihf-gcc
ARM_PROG
=
main_arm
PROG
=
main
SRCDIR
=
../src
SRCS
=
main.c
SRCS
+=
getip.c
SRCS
+=
send_packet.c
OBJS
=
$(SRCS:%.c=%.o)
CFLAGS
=
-Og
-g
-Wall
-Werror
-Wextra
CFLAGS
+=
-MD
-MP
CFLAGS
+=
-I
$(SRCDIR)
CFLAGS
+=
-std
=
gnu99
LDFLAGS
=
-pthread
vpath
%.c
$(SRCDIR)
$(ARM_PROG)
:
FORCE
make clean
make
-e
CC:
=
arm-linux-gnueabihf-gcc
$(PROG)
mv
$(PROG)
$(ARM_PROG)
FORCE
:
$(PROG)
:
$(OBJS)
$(CC)
$(LDFLAGS)
$^
-o
$@
-include
$(subst .c,.d,$(SRCS))
run
:
$(PROG)
./
$^
clean
:
$(RM)
$(OBJS)
$(PROG)
$(
subst
.c,.d,
$(SRCS)
)
.PHONY
:
clean FORCE
simple-client/build/main_arm
deleted
100755 → 0
View file @
7bd835d9
File deleted
simple-server/build/Makefile
deleted
100644 → 0
View file @
7bd835d9
ARM_CC
=
arm-linux-gnueabihf-gcc
ARM_PROG
=
main_arm
PROG
=
main
SRCDIR
=
../src
SRCS
=
main.c
OBJS
=
$(SRCS:%.c=%.o)
CFLAGS
=
-O1
-g
-Wall
-Werror
-Wextra
CFLAGS
+=
-MD
-MP
CFLAGS
+=
-I
$(SRCDIR)
CFLAGS
+=
-std
=
gnu99
vpath
%.c
$(SRCDIR)
$(ARM_PROG)
:
FORCE
make clean
make
-e
CC:
=
arm-linux-gnueabihf-gcc
$(PROG)
mv
$(PROG)
$(ARM_PROG)
FORCE
:
$(PROG)
:
$(OBJS)
$(CC)
$(LDFLAGS)
$^
-o
$@
-include
$(subst .c,.d,$(SRCS))
run
:
$(PROG)
./
$^
clean
:
$(RM)
$(OBJS)
$(PROG)
$(
subst
.c,.d,
$(SRCS)
)
.PHONY
:
clean FORCE
simple-server/build/main_arm
deleted
100755 → 0
View file @
7bd835d9
File deleted
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