Skip to content

Commit

Permalink
For #33: Extract new files.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Sep 5, 2022
1 parent 6085809 commit 24f5038
Show file tree
Hide file tree
Showing 6 changed files with 518 additions and 516 deletions.
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ Individual files contain the following tag instead of the full license text.

SPDX-License-Identifier: MPL-1.1 OR GPL-2.0-or-later

All source code in the "tools", "utest" and "porting" directory is
distributed under the MIT style license.
New source code and all source code in the "tools" and "utest" directory
is distributed under the MIT style license.

SPDX-License-Identifier: MIT

Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ DEFINES += -DMD_HAVE_KQUEUE -DMD_HAVE_SELECT
endif

ifeq ($(OS), LINUX)
EXTRA_OBJS = $(TARGETDIR)/md_linux.o
EXTRA_OBJS = $(TARGETDIR)/md_linux.o $(TARGETDIR)/md_linux2.o
SFLAGS = -fPIC
LDFLAGS = -shared -soname=$(SONAME) -lc
OTHER_FLAGS = -Wall
Expand Down Expand Up @@ -270,6 +270,9 @@ $(HEADER): public.h
$(TARGETDIR)/md_linux.o: md_linux.S
$(CC) $(CFLAGS) -c $< -o $@

$(TARGETDIR)/md_linux2.o: md_linux2.S
$(CC) $(CFLAGS) -c $< -o $@

$(TARGETDIR)/md_darwin.o: md_darwin.S
$(CC) $(CFLAGS) -c $< -o $@

Expand Down
2 changes: 2 additions & 0 deletions md_cygwin64.S
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
/* Copyright (c) 2021-2022 The SRS Authors */

/* If user disable the ASM, such as avoiding bugs in ASM, donot compile it. */
#if !defined(MD_ST_NO_ASM)
Expand Down
2 changes: 1 addition & 1 deletion md_darwin.S
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* SPDX-License-Identifier: MIT */
/* Copyright (c) 2021 Winlin */
/* Copyright (c) 2021-2022 The SRS Authors */

/* If user disable the ASM, such as avoiding bugs in ASM, donot compile it. */
#if !defined(MD_ST_NO_ASM)
Expand Down
Loading

0 comments on commit 24f5038

Please sign in to comment.