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
126b0141
Commit
126b0141
authored
Apr 08, 2020
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add arm executable for server side
parent
84ff303b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
7 deletions
+16
-7
simple-server/build/Makefile
simple-server/build/Makefile
+15
-6
simple-server/build/main_arm
simple-server/build/main_arm
+0
-0
simple-server/src/main.c
simple-server/src/main.c
+1
-1
No files found.
simple-server/build/Makefile
View file @
126b0141
ARM_CC
=
arm-linux-gnueabihf-gcc
ARM_PROG
=
main_arm
PROG
=
main
SRCDIR
=
../src
SRCS
=
main.c
SRCS
=
main.c
OBJS
=
$(SRCS:%.c=%.o)
DEPS
=
$(SRCS:%.c=%.d)
CFLAGS
=
-O1
-g
-Wall
-Werror
-Wextra
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
$(
DEPS
)
-include
$(
subst .c,.d,$(SRCS)
)
run
:
$(PROG)
./
$^
clean
:
$(RM)
$(
PROG)
$(OBJS)
$(DEPS
)
$(RM)
$(
OBJS)
$(PROG)
$(
subst
.c,.d,
$(SRCS)
)
.PHONY
:
clean
,
run
.PHONY
:
clean
FORCE
simple-server/build/main_arm
0 → 100755
View file @
126b0141
File added
simple-server/src/main.c
View file @
126b0141
...
...
@@ -21,7 +21,7 @@ static void *get_in_addr(struct sockaddr *sa) {
int
main
()
{
int
status
;
int
sockfd
;
int
sockfd
=
0
;
struct
addrinfo
hints
,
*
servinfo
,
*
servinfo_it
;
int
bytes_received
=
0
;
...
...
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