Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.新增makefile编译文件 #2

Merged
merged 2 commits into from Oct 13, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
修改makefle变量问题
  • Loading branch information
xzchsia committed Oct 12, 2016
commit 857ba41e6a35a9fb07115ea07ee1d9857f84a2b7
4 changes: 2 additions & 2 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ DIRSRC = ./src
SRCS = $(wildcard ${DIRSRC}/*.c)
LIB_OBJS = $(SRCS:%.c=%.o)

CCFLAGS += -ansi -O3 -lssl -lcrypto -lpthread -Wall -g
CFLAGS += -ansi -O3 -lssl -lcrypto -lpthread -Wall -g

$(TARGET) : $(LIB_OBJS)
$(RM) $@;
$(CC) $^ -o $@ $(CCFLAGS)
$(CC) $^ -o $@ $(CFLAGS)

#编译规则
%.o : %.c
Expand Down