Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
ec7e240b
Commit
ec7e240b
authored
Apr 09, 2013
by
Ben Straub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add rev-list example to makefiles
parent
1aa21fe3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
+4
-1
CMakeLists.txt
+3
-0
examples/Makefile
+1
-1
No files found.
CMakeLists.txt
View file @
ec7e240b
...
@@ -388,4 +388,7 @@ IF (BUILD_EXAMPLES)
...
@@ -388,4 +388,7 @@ IF (BUILD_EXAMPLES)
ADD_EXECUTABLE(git-showindex examples/showindex.c)
ADD_EXECUTABLE(git-showindex examples/showindex.c)
TARGET_LINK_LIBRARIES(git-showindex git2)
TARGET_LINK_LIBRARIES(git-showindex git2)
ADD_EXECUTABLE(git-rev-list examples/rev-list.c)
TARGET_LINK_LIBRARIES(git-rev-list git2)
ENDIF ()
ENDIF ()
examples/Makefile
View file @
ec7e240b
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
CC
=
gcc
CC
=
gcc
CFLAGS
=
-g
-I
../include
-I
../src
-Wall
-Wextra
-Wmissing-prototypes
-Wno-missing-field-initializers
CFLAGS
=
-g
-I
../include
-I
../src
-Wall
-Wextra
-Wmissing-prototypes
-Wno-missing-field-initializers
LFLAGS
=
-L
../build
-lgit2
-lz
LFLAGS
=
-L
../build
-lgit2
-lz
APPS
=
general showindex diff
APPS
=
general showindex diff
rev-list
all
:
$(APPS)
all
:
$(APPS)
...
...
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