File tree 4 files changed +25
-8
lines changed
4 files changed +25
-8
lines changed Original file line number Diff line number Diff line change 33
33
* .db
34
34
35
35
# Others
36
- Makefile
37
36
bin /
38
37
lib /
39
38
obj /
Original file line number Diff line number Diff line change 3
3
GCC =gcc
4
4
GPP =g++
5
5
6
- TARGET = endecmd
7
- LFLAGS+ =-O2 -s
8
- LFLAGS+ =-static -mtune=native -lpthread
6
+ TARGET = endecmd
7
+ LFLAGS += -O2
8
+ LFLAGS += -mtune=native -lpthread
9
9
10
10
DIRSRC =src
11
11
DIRINC =src
@@ -18,6 +18,24 @@ CFLAGS+=-I${DIRLEDT}
18
18
LFLAGS+ =-L${DIRLEDT}
19
19
LFLAGS+ =-lendetool
20
20
21
+ # Automatic detecting architecture.
22
+ KRNL := $(shell uname -s)
23
+ KVER := $(shell uname -r | cut -d . -f1)
24
+ ARCH := $(shell uname -m)
25
+
26
+ ifeq ($(KRNL ) ,Darwin)
27
+ ifeq ($(shell test $(KVER) -gt 19; echo $$?),0)
28
+ CFLAGS += -arch x86_64 -arch arm64
29
+ endif
30
+ else
31
+ SUBSYS := $(shell uname | grep -q ^MINGW)
32
+ ifeq ($(SUBSYS),MINGW)
33
+ LFLAGS += -mwindows -static -s
34
+ else
35
+ LFLAGS += -s
36
+ endif
37
+ endif
38
+
21
39
SRCS =$(wildcard ${DIRSRC}/* .cpp)
22
40
OBJS=$(SRCS:${DIRSRC}/%.cpp =${DIROBJ}/%.o)
23
41
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ using namespace std;
22
22
23
23
string me_path;
24
24
string me_name;
25
- string me_version = " 0.2.5.12 " ;
25
+ string me_version = " 0.2.5.13 " ;
26
26
string ende_key;
27
27
string ende_data;
28
28
string ende_file_src;
@@ -190,7 +190,7 @@ void printAbout()
190
190
me_name.c_str (),
191
191
TARGET_PF,
192
192
me_version.c_str () );
193
- printf ( " (C)Copyrighted 2013 - 2018 Raphael Kim\n " );
193
+ printf ( " (C)Copyrighted 2013 - 2021 Raphael Kim\n " );
194
194
printf ( " \n " );
195
195
}
196
196
}
@@ -199,7 +199,7 @@ void printArgsHelp()
199
199
{
200
200
if ( opt_verbose_off == false )
201
201
{
202
- printf ( " \t usage : %s [ options ] ( string or source filename ) ( out filename )\n " , me_name.c_str () );
202
+ printf ( " \t usage : %s [ options ] (string or source file ) (out file )\n " , me_name.c_str () );
203
203
printf ( " \n " );
204
204
printf ( " \t _options_\n " );
205
205
printf ( " \n " );
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
KEY=" 12345678901234567890123456789012"
3
- SRC=" Testing_source_words_for_libendetool_and_endecmd."
3
+ SRC=" Testing_source_words_for_libendetool_and_endecmd... "
4
4
ENDECMD=bin/endecmd
5
5
# TESTRUN=$(shell ${ENDECMD} --help)
6
6
TESTRUN=$( ${ENDECMD} --help)
You can’t perform that action at this time.
0 commit comments