Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
TimeManager
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
CI / CD
CI / CD
Pipelines
Schedules
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
linux-tools
TimeManager
Commits
6f15f85e
Commit
6f15f85e
authored
Jun 12, 2019
by
Carit Zhu
🎱
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify Makefile for adding MACRO of CROSS_COMPILE and modify gitignore.
parent
9f5cc878
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
5 deletions
+20
-5
.gitignore
.gitignore
+2
-0
Makefile
Makefile
+18
-5
timemanager
timemanager
+0
-0
No files found.
.gitignore
View file @
6f15f85e
### Temp files ###
*.*~
*.o
timemanager
### VS Code ###
/.vscode/
Makefile
View file @
6f15f85e
CC
=
gcc
CFLAGS
=
`
pkg-config
--cflags
gtk+-3.0
`
LIBS
=
`
pkg-config
--libs
gtk+-3.0
`
# Set CROSS_COMPILE
CROSS_COMPILE
?=
# Make variables (CC, etc...)
CC
=
$(CROSS_COMPILE)
gcc
CFLAGS
=
`
pkg-config
--cflags
gtk+-3.0
`
LIBS
=
`
pkg-config
--libs
gtk+-3.0
`
# Objects
objects
=
main.o
# Default target
all
:
timemanager
timemanager
:
main.c
# Build objects
timemanager
:
$(objects)
# Temp objects
%.o
:
%.c
$(CC)
$(CFLAGS)
$<
-o
$@
$(LIBS)
# Clean
.PHONY
:
clean
clean
:
rm
*
.o timemanager
rm
-f
*
.o timemanager
timemanager
deleted
100755 → 0
View file @
9f5cc878
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