Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ITS - Intelligent Transport Systems
ITS
Commits
7ad6a338
Commit
7ad6a338
authored
Jan 28, 2021
by
ASN.1 Documenter
Browse files
use build dir per ATS
parent
690cf35d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
12 deletions
+6
-12
Makefile
Makefile
+5
-11
config.mk
config.mk
+1
-1
No files found.
Makefile
View file @
7ad6a338
...
...
@@ -12,12 +12,6 @@ ifeq (,$(TTCN3_DIR))
$(error
TTCN3_DIR
shall
be
defined
in
config.mk)
endif
ifeq
(Windows_NT,$(OS))
ifeq
(,$(OPENSSL_DIR))
$(error
OPENSSL_DIR
shall
be
defined
in
config.mk)
endif
endif
define
IncludeModule
undefine
sources
undefine
modules
...
...
@@ -52,7 +46,7 @@ outdir := $(TOPDIR)/build/$(ATS)
bindir
:=
$(TOPDIR)
/bin
sources
:=
$(
sort
$(all_sources)
)
includes
:=
$(outdir)
$(outdir)
/../asn1
$(all_includes)
$(NPCAP_INCLUDE)
includes
:=
$(outdir)
$(outdir)
/..
$(outdir)
/../asn1
$(all_includes)
$(NPCAP_INCLUDE)
EXE
=
.exe
ttcn_sources
:=
$(
filter
%.ttcn ,
$(sources)
)
...
...
@@ -94,7 +88,7 @@ echo: echo_sources
@
echo
-e
"defines:
$(
addsuffix
\n
,
$(defines)
)
"
clean
:
rm
-f
$(outdir)
/
$(ATS)$(EXE)
$(gen_objects)
$(gen_sources)
$(gen_headers)
$(cc_objects)
$(outdir)
/
$(ATS)
/
.generate
$(outdir)
/libItsAsn.so
rm
-f
$(outdir)
/
$(ATS)$(EXE)
$(gen_objects)
$(gen_sources)
$(gen_headers)
$(cc_objects)
$(outdir)
/.generate
$(outdir)
/
../
libItsAsn.so
# rm -f $(outdir)/asn1/*.so $(outdir)/asn1/*.o $(outdir)/asn1/*.c $(outdir)/asn1/*.h $(outdir)/asn1/Makefile.am.libasncodec
regen
:
force_regen $(outdir)/.generate
...
...
@@ -105,7 +99,7 @@ $(outdir) $(bindir):
mkdir
-p
$@
$(bindir)/$(ATS)$(EXE)
:
$(outdir)/../asn1/libItsAsn.a $(gen_objects) $(cc_objects)
g++
-g
-O0
-o
$@
$(LDFLAGS)
$(gen_objects)
$(cc_objects)
$(outdir)
/asn1/libItsAsn.a
$(libs)
g++
-g
-O0
-o
$@
$(LDFLAGS)
$(gen_objects)
$(cc_objects)
$(outdir)
/
../
asn1/libItsAsn.a
$(libs)
$(gen_objects)
:
%.o :%.cc
g++
-g
-O0
-c
$(
addprefix
-D
,
$(defines)
)
$(
addprefix
-I
,
$(includes)
)
-o
$@
$<
...
...
@@ -117,9 +111,9 @@ $(cc_objects) : $(outdir)/%.o : %.cc
#$(gen_sources):
# $(TTCN3_DIR)/bin/compiler -n -e -L -R -U none -o $(outdir) $(tt_sources)
$(gen_sources)
:
$(outdir)/.generate
-$(ATS)
$(gen_sources)
:
$(outdir)/.generate
$(outdir)/.generate
-$(ATS)
:
Makefile $(tt_sources)
$(outdir)/.generate
:
Makefile $(tt_sources)
$(TTCN3_DIR)
/bin/compiler
-n
-e
-L
-R
-U
none
-o
$(outdir)
$(tt_sources)
touch
$@
...
...
config.mk
View file @
7ad6a338
TTCN3_DIR
:
= /cygdrive/c/Tools/Titan
WPCAP_DLL_PATH
:=
/cygdrive/c/windows/system32/npcap/wpcap.dll
NPCAP_INCLUDE
:=
/cygdrive/c/PROGRA~1/Npcap/sdk/include
\ No newline at end of file
NPCAP_INCLUDE
:=
/cygdrive/c/PROGRA~1/Npcap/sdk/include
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