Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
G
gdut-drcom
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
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
nanahira
gdut-drcom
Commits
b72f30c7
Commit
b72f30c7
authored
Dec 12, 2016
by
chenhaowen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modified Makefile
parent
8e45b106
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
src/Makefile
src/Makefile
+11
-9
No files found.
src/Makefile
View file @
b72f30c7
#CC:=gcc
VERSION
:=
1.6.7
NAME
=
gdut-drcom
CFLAGS
+=
-Wall
-fPIC
-DDEBUG
-DVERSION
=
$(VERSION)
...
...
@@ -10,12 +11,13 @@ ifeq ($(OS), Windows_NT)
# windows
LIBS
+=
-lws2_32
CFLAGS
+=
-DWIN32
#CFLAGS+=-m32
DLLNAME
=
gdut-drcom.dll.
$(VERSION)
DLLNAME
=
$(NAME)
.dll.
$(VERSION)
BINNAME
=
$(NAME)
.exe
RM
=
del
else
# unix like
DLLNAME
=
gdut-drcom.so.
$(VERSION)
DLLNAME
=
$(NAME)
.so.
$(VERSION)
BINNAME
=
$(NAME)
RM
=
rm
-f
endif
...
...
@@ -34,14 +36,14 @@ else
objects
+=
md5.o md4.o sha1.o
endif
all
:
gdut-drcom
@
echo
gdut-drcom
all
:
$(BINNAME)
@
echo
$(BINNAME)
gdut-drcom
:
$(objects) gdut-drcom.o
$(CC)
*
.o
-o
gdut-drcom
$(CFLAGS)
$(LIBS)
$(BINNAME)
:
$(objects) gdut-drcom.o
$(CC)
*
.o
-o
$(BINNAME)
$(CFLAGS)
$(LIBS)
dll
:
$(objects)
@
echo
gdut-drcom
shared library
@
echo
$(NAME)
shared library
$(CC)
-shared
$(objects)
-o
$(DLLNAME)
$(CFLAGS)
$(LIBS)
gdut-drcom.o
:
gdut-drcom.c
...
...
@@ -57,4 +59,4 @@ md5.o md4.o sha1.o:
.PHONY
:
clean
clean
:
$(RM)
gdut-drcom
$(DLLNAME)
*
.o
$(RM)
$(BINNAME)
$(DLLNAME)
*
.o
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